pub struct Signer { /* private fields */ }Expand description
Signs REST requests (X-BAPI-SIGN) with HMAC-SHA256.
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn new(
api_key: SensitiveString,
api_secret: SensitiveString,
recv_window: Timestamp,
timer: Option<fn() -> Timestamp>,
) -> Self
pub fn new( api_key: SensitiveString, api_secret: SensitiveString, recv_window: Timestamp, timer: Option<fn() -> Timestamp>, ) -> Self
Create Signer instance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnsafeUnpin for Signer
impl UnwindSafe for Signer
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