pub struct ExchangeConfig {
pub venue: Venue,
pub rest_url: SmartString,
pub ws_url: SmartString,
pub api_key: SmartString,
pub api_secret: SmartString,
pub timeout: Duration,
pub rate_limits: SmallVec<[RateLimit; 8]>,
pub reconnect_settings: ReconnectSettings,
}Expand description
Exchange configuration for connection management
Fields§
§venue: VenueExchange venue
rest_url: SmartStringREST API base URL
ws_url: SmartStringWebSocket API base URL
api_key: SmartStringAPI key
api_secret: SmartStringAPI secret
timeout: DurationConnection timeout
rate_limits: SmallVec<[RateLimit; 8]>Request rate limits per endpoint category
reconnect_settings: ReconnectSettingsReconnection parameters
Trait Implementations§
Source§impl Clone for ExchangeConfig
impl Clone for ExchangeConfig
Source§fn clone(&self) -> ExchangeConfig
fn clone(&self) -> ExchangeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeConfig
impl Debug for ExchangeConfig
Source§impl<'de> Deserialize<'de> for ExchangeConfig
impl<'de> Deserialize<'de> for ExchangeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExchangeConfig
impl RefUnwindSafe for ExchangeConfig
impl Send for ExchangeConfig
impl Sync for ExchangeConfig
impl Unpin for ExchangeConfig
impl UnwindSafe for ExchangeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more