pub struct Signed { /* private fields */ }Expand description
The signed stage of creating a signature
From here, the Signature or Authorization headers can be generated as string
Implementations§
Source§impl Signed
impl Signed
Sourcepub fn signature_header(self) -> String
pub fn signature_header(self) -> String
Turn the Signed type into a String that can be used as the Signature Header
Done manually, it would look like format!("Signature: {}", signed.signature_header())
Turn the Signed type into a String that can be used as the Authorization Header
Done manually, it would look like format!("Authorization: {}", signed.authorization_header())
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signed
impl RefUnwindSafe for Signed
impl Send for Signed
impl Sync for Signed
impl Unpin for Signed
impl UnwindSafe for Signed
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