pub struct BinanceAuth { /* private fields */ }Implementations§
Source§impl BinanceAuth
impl BinanceAuth
Sourcepub fn new_with_secret_key(
api_key: &str,
secret_key: &str,
) -> Result<Self, BinanceAuthError>
pub fn new_with_secret_key( api_key: &str, secret_key: &str, ) -> Result<Self, BinanceAuthError>
Create a new BinanceAuth with HMAC signing using the provided secret key
Sourcepub fn new_with_private_key_path(
api_key: &str,
private_key_path: &str,
passphrase: Option<&str>,
) -> Result<Self, BinanceAuthError>
pub fn new_with_private_key_path( api_key: &str, private_key_path: &str, passphrase: Option<&str>, ) -> Result<Self, BinanceAuthError>
Create a new BinanceAuth with RSA or ED25519 signing using the provided PEM file path
Sourcepub fn new_with_private_key_pem(
api_key: &str,
private_key_pem: &str,
passphrase: Option<&str>,
) -> Result<Self, BinanceAuthError>
pub fn new_with_private_key_pem( api_key: &str, private_key_pem: &str, passphrase: Option<&str>, ) -> Result<Self, BinanceAuthError>
Create a new BinanceAuth with RSA or ED25519 signing using the provided PEM data
Trait Implementations§
Source§impl Clone for BinanceAuth
impl Clone for BinanceAuth
Source§fn clone(&self) -> BinanceAuth
fn clone(&self) -> BinanceAuth
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for BinanceAuth
impl RefUnwindSafe for BinanceAuth
impl Send for BinanceAuth
impl Sync for BinanceAuth
impl Unpin for BinanceAuth
impl UnwindSafe for BinanceAuth
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