pub struct ParsedHeader { /* private fields */ }
Expand description
The successful result of parsing a Signature or Authorization header
Implementations§
source§impl ParsedHeader
impl ParsedHeader
sourcepub fn into_unvalidated(
self,
method: &str,
path_and_query: &str,
headers: &mut BTreeMap<String, String>,
required_headers: HashSet<String>
) -> Result<Unvalidated, RequiredError>
pub fn into_unvalidated( self, method: &str, path_and_query: &str, headers: &mut BTreeMap<String, String>, required_headers: HashSet<String> ) -> Result<Unvalidated, RequiredError>
Generate a Signing String from the header
Trait Implementations§
source§impl Debug for ParsedHeader
impl Debug for ParsedHeader
source§impl FromStr for ParsedHeader
impl FromStr for ParsedHeader
§type Err = ParseSignatureError
type Err = ParseSignatureError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ParsedHeader, <ParsedHeader as FromStr>::Err>
fn from_str(s: &str) -> Result<ParsedHeader, <ParsedHeader as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreAuto Trait Implementations§
impl Freeze for ParsedHeader
impl RefUnwindSafe for ParsedHeader
impl Send for ParsedHeader
impl Sync for ParsedHeader
impl Unpin for ParsedHeader
impl UnwindSafe for ParsedHeader
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