Struct oauth1_request::signature_method::hmac_sha1::HmacSha1Sign
source · [−]pub struct HmacSha1Sign { /* private fields */ }
hmac-sha1
only.Expand description
A type that signs a signature base string with the HMAC-SHA1 signature algorithm.
Trait Implementations
sourceimpl Clone for HmacSha1Sign
impl Clone for HmacSha1Sign
sourcefn clone(&self) -> HmacSha1Sign
fn clone(&self) -> HmacSha1Sign
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HmacSha1Sign
impl Debug for HmacSha1Sign
sourceimpl Sign for HmacSha1Sign
impl Sign for HmacSha1Sign
type Signature = HmacSha1Signature
type Signature = HmacSha1Signature
The URL-encoded representation of oauth_signature
string the algorithm produces.
sourcefn 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. Read more
sourcefn 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.
sourcefn 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.
sourcefn 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 more
sourcefn end(self) -> HmacSha1Signature
fn end(self) -> HmacSha1Signature
Finalizes the signing process and returns the resulting signature.
sourcefn callback<V: Display>(&mut self, value: V)
fn callback<V: Display>(&mut self, value: V)
Feeds self
with the oauth_callback
parameter part of the signature base string. Read more
sourcefn consumer_key<V: Display>(&mut self, value: V)
fn consumer_key<V: Display>(&mut self, value: V)
Feeds self
with the oauth_consumer_key
parameter part of the signature base string. Read more
sourcefn nonce<V: Display>(&mut self, value: V)
fn nonce<V: Display>(&mut self, value: V)
Feeds self
with the oauth_nonce
parameter part of the signature base string. Read more
sourcefn use_nonce(&self) -> bool
fn use_nonce(&self) -> bool
Whether the signature method uses the oauth_nonce
parameter. Read more
sourcefn signature_method(&mut self)
fn signature_method(&mut self)
Feeds self
with the oauth_signature_method
parameter part of the
signature base string. Read more
sourcefn timestamp(&mut self, value: u64)
fn timestamp(&mut self, value: u64)
Feeds self
with the oauth_timestamp
parameter part of the
signature base string. Read more
sourcefn use_timestamp(&self) -> bool
fn use_timestamp(&self) -> bool
Whether the signature method uses the oauth_nonce
parameter. Read more
sourcefn token<V: Display>(&mut self, value: V)
fn token<V: Display>(&mut self, value: V)
Feeds self
with the oauth_token
parameter part of the signature base string. Read more
Auto Trait Implementations
impl RefUnwindSafe for HmacSha1Sign
impl Send for HmacSha1Sign
impl Sync for HmacSha1Sign
impl Unpin for HmacSha1Sign
impl UnwindSafe for HmacSha1Sign
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more