Sign

Trait Sign 

Source
pub trait Sign {
    type Error: Send;

    // Required method
    fn sign(&self, signing_string: &str) -> Result<String, Self::Error>;
}
Expand description

Describe the operation of signing a string

This is used by downstream crates for creating HTTP Signatures.

Required Associated Types§

Source

type Error: Send

Errors that signing the request can produce

Required Methods§

Source

fn sign(&self, signing_string: &str) -> Result<String, Self::Error>

Sign the given string, producing a String

Implementations on Foreign Types§

Source§

impl<'a, T> Sign for &'a T
where T: Sign,

Source§

type Error = <T as Sign>::Error

Source§

fn sign(&self, signing_string: &str) -> Result<String, Self::Error>

Source§

impl<'a, T> Sign for &'a mut T
where T: Sign,

Source§

type Error = <T as Sign>::Error

Source§

fn sign(&self, signing_string: &str) -> Result<String, Self::Error>

Source§

impl<T> Sign for Box<T>
where T: Sign,

Source§

type Error = <T as Sign>::Error

Source§

fn sign(&self, signing_string: &str) -> Result<String, Self::Error>

Source§

impl<T> Sign for Rc<T>
where T: Sign,

Source§

type Error = <T as Sign>::Error

Source§

fn sign(&self, signing_string: &str) -> Result<String, Self::Error>

Source§

impl<T> Sign for Arc<T>
where T: Sign,

Source§

type Error = <T as Sign>::Error

Source§

fn sign(&self, signing_string: &str) -> Result<String, Self::Error>

Implementors§