pub struct IndodaxConfig {
pub api_key: Option<SecretValue>,
pub api_secret: Option<SecretValue>,
pub callback_url: Option<String>,
pub paper_balances: Option<Value>,
}Fields§
§api_key: Option<SecretValue>§api_secret: Option<SecretValue>§callback_url: Option<String>§paper_balances: Option<Value>Implementations§
Source§impl IndodaxConfig
impl IndodaxConfig
pub fn config_path() -> PathBuf
pub fn config_dir() -> PathBuf
pub fn load() -> Result<Self, Error>
pub fn save(&self) -> Result<(), Error>
pub fn resolve_credentials( &self, cli_key: Option<String>, cli_secret: Option<String>, ) -> Result<Option<ResolvedCredentials>, Error>
Trait Implementations§
Source§impl Clone for IndodaxConfig
impl Clone for IndodaxConfig
Source§fn clone(&self) -> IndodaxConfig
fn clone(&self) -> IndodaxConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndodaxConfig
impl Debug for IndodaxConfig
Source§impl Default for IndodaxConfig
impl Default for IndodaxConfig
Source§fn default() -> IndodaxConfig
fn default() -> IndodaxConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndodaxConfig
impl<'de> Deserialize<'de> for IndodaxConfig
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 IndodaxConfig
impl RefUnwindSafe for IndodaxConfig
impl Send for IndodaxConfig
impl Sync for IndodaxConfig
impl Unpin for IndodaxConfig
impl UnsafeUnpin for IndodaxConfig
impl UnwindSafe for IndodaxConfig
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