Struct httpsig_hyper::prelude::HttpSignatureBase
source · pub struct HttpSignatureBase { /* private fields */ }Expand description
Signature Base https://www.ietf.org/archive/id/draft-ietf-httpbis-message-signatures-19.html#section-2.5
Implementations§
source§impl HttpSignatureBase
impl HttpSignatureBase
sourcepub fn try_new(
component_lines: &Vec<HttpMessageComponent>,
signature_params: &HttpSignatureParams
) -> Result<HttpSignatureBase, Error>
pub fn try_new( component_lines: &Vec<HttpMessageComponent>, signature_params: &HttpSignatureParams ) -> Result<HttpSignatureBase, Error>
Creates a new signature base from component lines and signature params This should not be exposed to user and not used directly. Use wrapper functions generating SignatureBase from base HTTP request and Signer itself instead when newly generating signature When verifying signature, use wrapper functions generating SignatureBase from HTTP request containing signature params itself instead.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HttpSignatureBase
impl Send for HttpSignatureBase
impl Sync for HttpSignatureBase
impl Unpin for HttpSignatureBase
impl UnwindSafe for HttpSignatureBase
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