pub enum SignatureMethod {
HmacSha1,
Plaintext,
}
Expand description
A signing method. RSA-SHA1 is not currently supported.
Variants§
Implementations§
Source§impl SignatureMethod
impl SignatureMethod
Sourcepub fn sign(self, data: &impl Signable, key: &SigningKey) -> String
pub fn sign(self, data: &impl Signable, key: &SigningKey) -> String
Sign data using this method and a key.
Trait Implementations§
Source§impl Clone for SignatureMethod
impl Clone for SignatureMethod
Source§fn clone(&self) -> SignatureMethod
fn clone(&self) -> SignatureMethod
Returns a copy 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 SignatureMethod
impl Debug for SignatureMethod
Source§impl<'de> Deserialize<'de> for SignatureMethod
impl<'de> Deserialize<'de> for SignatureMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SignatureMethod
impl Display for SignatureMethod
Source§impl Hash for SignatureMethod
impl Hash for SignatureMethod
Source§impl Ord for SignatureMethod
impl Ord for SignatureMethod
Source§fn cmp(&self, other: &SignatureMethod) -> Ordering
fn cmp(&self, other: &SignatureMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignatureMethod
impl PartialEq for SignatureMethod
Source§impl PartialOrd for SignatureMethod
impl PartialOrd for SignatureMethod
Source§impl Serialize for SignatureMethod
impl Serialize for SignatureMethod
impl Copy for SignatureMethod
impl Eq for SignatureMethod
impl StructuralPartialEq for SignatureMethod
Auto Trait Implementations§
impl Freeze for SignatureMethod
impl RefUnwindSafe for SignatureMethod
impl Send for SignatureMethod
impl Sync for SignatureMethod
impl Unpin for SignatureMethod
impl UnwindSafe for SignatureMethod
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