pub struct BinanceSigningStrategy { /* private fields */ }Expand description
Binance signing strategy implementing the generic SigningStrategy trait.
Handles Binance-specific signing requirements:
- Millisecond timestamp with server time offset
- HMAC-SHA256 signature (hex encoded)
- X-MBX-APIKEY header for authentication
Implementations§
Trait Implementations§
Source§impl SigningStrategy for BinanceSigningStrategy
impl SigningStrategy for BinanceSigningStrategy
Source§fn prepare_request<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut SigningContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn prepare_request<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut SigningContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Prepare the request for signing. Read more
Source§fn add_auth_headers(&self, headers: &mut HeaderMap, _ctx: &SigningContext)
fn add_auth_headers(&self, headers: &mut HeaderMap, _ctx: &SigningContext)
Add authentication headers to the request. Read more
Auto Trait Implementations§
impl Freeze for BinanceSigningStrategy
impl !RefUnwindSafe for BinanceSigningStrategy
impl Send for BinanceSigningStrategy
impl Sync for BinanceSigningStrategy
impl Unpin for BinanceSigningStrategy
impl !UnwindSafe for BinanceSigningStrategy
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