pub struct HttpSignatureHeaders { /* private fields */ }Expand description
Signature Headers derived from HttpSignatureBase
Implementations§
Source§impl HttpSignatureHeaders
impl HttpSignatureHeaders
Sourcepub fn try_parse(
signature_header: &str,
signature_input_header: &str,
) -> Result<IndexMap<String, HttpSignatureHeaders, BuildHasherDefault<FxHasher>>, HttpSigError>
pub fn try_parse( signature_header: &str, signature_input_header: &str, ) -> Result<IndexMap<String, HttpSignatureHeaders, BuildHasherDefault<FxHasher>>, HttpSigError>
Generates (possibly multiple) HttpSignatureHeaders from signature and signature-input header values
Sourcepub fn signature_name(&self) -> &str
pub fn signature_name(&self) -> &str
Returns the signature name
Sourcepub fn signature(&self) -> &HttpSignature
pub fn signature(&self) -> &HttpSignature
Returns the signature value without name
Sourcepub fn signature_params(&self) -> &HttpSignatureParams
pub fn signature_params(&self) -> &HttpSignatureParams
Returns the signature params value without name for signature-input header
Sourcepub fn signature_header_value(&self) -> String
pub fn signature_header_value(&self) -> String
Returns the signature value of “Signature” http header in the form of “<signature_name>=:<base64_signature>:”
Sourcepub fn signature_input_header_value(&self) -> String
pub fn signature_input_header_value(&self) -> String
Returns the signature input value of “Signature-Input” http header in the form of “<signature_name>=<signature_params>”
Trait Implementations§
Source§impl Clone for HttpSignatureHeaders
impl Clone for HttpSignatureHeaders
Source§fn clone(&self) -> HttpSignatureHeaders
fn clone(&self) -> HttpSignatureHeaders
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HttpSignatureHeaders
impl RefUnwindSafe for HttpSignatureHeaders
impl Send for HttpSignatureHeaders
impl Sync for HttpSignatureHeaders
impl Unpin for HttpSignatureHeaders
impl UnwindSafe for HttpSignatureHeaders
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