pub struct ExchangeConfig {
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub testnet_api_key: Option<String>,
pub testnet_api_secret: Option<String>,
pub use_testnet: bool,
}Expand description
Exchange-specific configuration.
Fields§
§api_key: Option<String>API key for production environment
api_secret: Option<String>API secret for production environment
testnet_api_key: Option<String>API key for testnet environment
testnet_api_secret: Option<String>API secret for testnet environment
use_testnet: boolWhether to use testnet
Implementations§
Source§impl ExchangeConfig
impl ExchangeConfig
Sourcepub fn has_credentials(&self) -> bool
pub fn has_credentials(&self) -> bool
Checks whether any credentials are available.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeConfig
impl Debug for ExchangeConfig
Source§impl Default for ExchangeConfig
impl Default for ExchangeConfig
Source§fn default() -> ExchangeConfig
fn default() -> ExchangeConfig
Returns the “default value” for a type. Read more
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