pub struct SymbolConfig {
pub template: String,
pub default_quote: String,
pub case: SymbolCase,
}Expand description
How to format the trading pair symbol for a venue.
Fields§
§template: StringTemplate with {base} and {quote} placeholders.
Examples: "{base}{quote}" → BTCUSDT, "{base}_{quote}" → BTC_USDT.
default_quote: StringDefault quote currency when the user doesn’t specify one.
case: SymbolCaseCase transformation for the final symbol. Defaults to Upper.
Trait Implementations§
Source§impl Clone for SymbolConfig
impl Clone for SymbolConfig
Source§impl Debug for SymbolConfig
impl Debug for SymbolConfig
Source§impl<'de> Deserialize<'de> for SymbolConfig
impl<'de> Deserialize<'de> for SymbolConfig
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 SymbolConfig
impl RefUnwindSafe for SymbolConfig
impl Send for SymbolConfig
impl Sync for SymbolConfig
impl Unpin for SymbolConfig
impl UnsafeUnpin for SymbolConfig
impl UnwindSafe for SymbolConfig
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