pub struct SignedHeader {
pub key_id: String,
// some fields omitted
}
The SignedHeader
struct is the direct reasult of reading in the Authorization or Signature
header from a given request.
It contains the keys to the request's headers in the correct order for recreating the signing
string, the algorithm used to create the signature, and the signature itself.
It also contains the key_id
.
Try to create an SignedHeader
from a given String.
Try to verify the current SignedHeader
.
Formats the value using the given formatter. Read more
type Err = DecodeError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static