pub struct AuthenticationConfiguration {
pub api_key: SmartString,
pub secret_key: SmartString,
pub passphrase: Option<SmartString>,
}Expand description
Common authentication configuration
Fields§
§api_key: SmartStringThe API key for the exchange.
secret_key: SmartStringThe secret key for the exchange.
passphrase: Option<SmartString>The passphrase for the exchange, if applicable.
Implementations§
Source§impl AuthenticationConfiguration
impl AuthenticationConfiguration
Sourcepub const fn new(api_key: SmartString, secret_key: SmartString) -> Self
pub const fn new(api_key: SmartString, secret_key: SmartString) -> Self
Creates a new AuthenticationConfiguration with the given API and secret keys.
Sourcepub fn with_passphrase(self, passphrase: SmartString) -> Self
pub fn with_passphrase(self, passphrase: SmartString) -> Self
Sets the passphrase for the AuthenticationConfiguration.
Trait Implementations§
Source§impl Clone for AuthenticationConfiguration
impl Clone for AuthenticationConfiguration
Source§fn clone(&self) -> AuthenticationConfiguration
fn clone(&self) -> AuthenticationConfiguration
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 moreAuto Trait Implementations§
impl Freeze for AuthenticationConfiguration
impl RefUnwindSafe for AuthenticationConfiguration
impl Send for AuthenticationConfiguration
impl Sync for AuthenticationConfiguration
impl Unpin for AuthenticationConfiguration
impl UnwindSafe for AuthenticationConfiguration
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