pub struct Hmac256Sign { /* private fields */ }Available on crate feature
hmac-sha256 only.Expand description
A type that signs a signature base string with the HMAC-SHA256 signature algorithm.
Trait Implementations§
Source§impl Clone for Hmac256Sign
impl Clone for Hmac256Sign
Source§fn clone(&self) -> Hmac256Sign
fn clone(&self) -> Hmac256Sign
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 moreSource§impl Debug for Hmac256Sign
impl Debug for Hmac256Sign
Source§impl Sign for Hmac256Sign
impl Sign for Hmac256Sign
Source§type Signature = HmacSha256Signature
type Signature = HmacSha256Signature
The URL-encoded representation of
oauth_signature string the algorithm produces.Source§fn get_signature_method_name(&self) -> &'static str
fn get_signature_method_name(&self) -> &'static str
Returns the
oauth_signature_method string for the signature method associated with the
algorithm.Source§fn request_method(&mut self, method: &str)
fn request_method(&mut self, method: &str)
Feeds
self with the HTTP request method part of the signature base string.Source§fn uri<T: Display>(&mut self, uri: T)
fn uri<T: Display>(&mut self, uri: T)
Feeds
self with the base string URI part of the signature base string.Source§fn parameter<V: Display>(&mut self, key: &str, value: V)
fn parameter<V: Display>(&mut self, key: &str, value: V)
Feeds
self with a key-value parameter pair of the signature base string. Read moreSource§fn end(self) -> HmacSha256Signature
fn end(self) -> HmacSha256Signature
Finalizes the signing process and returns the resulting signature.
Source§fn consumer_key<V: Display>(&mut self, value: V)
fn consumer_key<V: Display>(&mut self, value: V)
Source§fn use_nonce(&self) -> bool
fn use_nonce(&self) -> bool
Whether the signature method uses the
oauth_nonce parameter. Read moreSource§fn signature_method(&mut self)
fn signature_method(&mut self)
Source§fn use_timestamp(&self) -> bool
fn use_timestamp(&self) -> bool
Whether the signature method uses the
oauth_nonce parameter. Read moreAuto Trait Implementations§
impl Freeze for Hmac256Sign
impl RefUnwindSafe for Hmac256Sign
impl Send for Hmac256Sign
impl Sync for Hmac256Sign
impl Unpin for Hmac256Sign
impl UnwindSafe for Hmac256Sign
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