pub struct Signer {
pub nonce: String,
pub timestamp: u64,
pub token: String,
pub secret: String,
pub consumer_key: String,
pub consumer_secret: String,
}Fields§
§nonce: String§timestamp: u64§token: String§secret: String§consumer_key: String§consumer_secret: StringTrait Implementations§
Source§impl OAuth1 for Signer
impl OAuth1 for Signer
type Error = SignerError
fn params(&self) -> BTreeMap<String, String>
fn signature( &self, method: &str, endpoint: &str, ) -> Result<String, <Signer as OAuth1>::Error>
fn signing_key(&self) -> String
fn sign(&self, method: &str, endpoint: &str) -> Result<String, Self::Error>
Source§impl TryFrom<Credentials> for Signer
impl TryFrom<Credentials> for Signer
Source§type Error = SignerError
type Error = SignerError
The type returned in the event of a conversion error.
Source§fn try_from(
credentials: Credentials,
) -> Result<Signer, <Signer as TryFrom<Credentials>>::Error>
fn try_from( credentials: Credentials, ) -> Result<Signer, <Signer as TryFrom<Credentials>>::Error>
Performs the conversion.
impl Eq for Signer
impl StructuralPartialEq for Signer
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.