pub struct HttpSignInput<'a> {
pub method: &'a str,
pub url: &'a str,
pub body: &'a [u8],
pub timestamp: Option<u64>,
pub nonce: Option<String>,
}Expand description
Input parameters for constructing an HTTP signature.
Fields§
§method: &'a strHTTP method (e.g. "POST"). Will be uppercased.
url: &'a strThe full request URL. Will be canonicalized.
body: &'a [u8]The raw request body bytes (empty slice for bodyless requests).
timestamp: Option<u64>Unix timestamp in seconds. If None, the current time is used.
nonce: Option<String>16-byte hex nonce. If None, a random one is generated.
Trait Implementations§
Source§impl<'a> Clone for HttpSignInput<'a>
impl<'a> Clone for HttpSignInput<'a>
Source§fn clone(&self) -> HttpSignInput<'a>
fn clone(&self) -> HttpSignInput<'a>
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<'a> Freeze for HttpSignInput<'a>
impl<'a> RefUnwindSafe for HttpSignInput<'a>
impl<'a> Send for HttpSignInput<'a>
impl<'a> Sync for HttpSignInput<'a>
impl<'a> Unpin for HttpSignInput<'a>
impl<'a> UnsafeUnpin for HttpSignInput<'a>
impl<'a> UnwindSafe for HttpSignInput<'a>
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