pub struct SigningContext {
pub method: HttpMethod,
pub endpoint: String,
pub params: BTreeMap<String, String>,
pub body: Option<Value>,
pub timestamp: String,
pub signature: Option<String>,
}Expand description
Context containing all data needed for request signing.
Fields§
§method: HttpMethodHTTP method for the request.
endpoint: StringAPI endpoint path (e.g., “/api/v3/account”).
params: BTreeMap<String, String>Request parameters (BTreeMap for deterministic ordering).
body: Option<Value>Optional JSON body for POST/PUT/DELETE.
timestamp: StringTimestamp string (format varies by exchange).
signature: Option<String>Computed signature (set by SigningStrategy).
Implementations§
Source§impl SigningContext
impl SigningContext
Sourcepub fn new(method: HttpMethod, endpoint: String) -> Self
pub fn new(method: HttpMethod, endpoint: String) -> Self
Create a new signing context.
Trait Implementations§
Source§impl Clone for SigningContext
impl Clone for SigningContext
Source§fn clone(&self) -> SigningContext
fn clone(&self) -> SigningContext
Returns a duplicate 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 SigningContext
impl RefUnwindSafe for SigningContext
impl Send for SigningContext
impl Sync for SigningContext
impl Unpin for SigningContext
impl UnwindSafe for SigningContext
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