pub struct AuthConfigBuilder { /* private fields */ }Expand description
Authentication configuration builder
Implementations§
Source§impl AuthConfigBuilder
impl AuthConfigBuilder
Sourcepub const fn exchange(self, exchange_type: ExchangeType) -> Self
pub const fn exchange(self, exchange_type: ExchangeType) -> Self
Set exchange type
Sourcepub fn exchange_str(self, exchange: &str) -> Result<Self>
pub fn exchange_str(self, exchange: &str) -> Result<Self>
Set exchange type from string
Sourcepub fn secret_key(self, secret_key: impl Into<SmartString>) -> Self
pub fn secret_key(self, secret_key: impl Into<SmartString>) -> Self
Set secret key
Sourcepub fn passphrase(self, passphrase: impl Into<SmartString>) -> Self
pub fn passphrase(self, passphrase: impl Into<SmartString>) -> Self
Set passphrase (for Coinbase HMAC)
Sourcepub const fn use_ed25519(self) -> Self
pub const fn use_ed25519(self) -> Self
Use Ed25519 authentication (Binance only)
Sourcepub fn build(self) -> Result<Arc<dyn AuthenticationManager>>
pub fn build(self) -> Result<Arc<dyn AuthenticationManager>>
Build the authentication adapter
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthConfigBuilder
impl RefUnwindSafe for AuthConfigBuilder
impl Send for AuthConfigBuilder
impl Sync for AuthConfigBuilder
impl Unpin for AuthConfigBuilder
impl UnwindSafe for AuthConfigBuilder
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