pub struct Signer { /* private fields */ }Implementations§
Source§impl Signer
impl Signer
pub fn new(api_key: &str, secret_key: &str) -> Self
pub fn api_key(&self) -> &str
pub fn next_nonce_str(&self) -> String
pub fn now_millis() -> u64
pub fn sign_v1(&self, payload: &str) -> Result<(String, String), IndodaxError>
pub fn sign_v2( &self, query_string: &str, _timestamp: u64, ) -> Result<String, IndodaxError>
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