pub struct ComponentValues {
pub method: String,
pub scheme: String,
pub authority: String,
pub path: String,
pub query: String,
pub content_digest: String,
pub integrity_token: String,
}Expand description
The resolved value of every covered component.
Fields§
§method: String@method.
scheme: String@scheme.
@authority.
path: String@path, / when the request path is empty.
query: String@query, including the leading ?.
content_digest: Stringcontent-digest.
integrity_token: Stringintegrity-token.
Implementations§
Source§impl ComponentValues
impl ComponentValues
Sourcepub fn signature_base(&self, params: &SignatureParams) -> SignatureBase
pub fn signature_base(&self, params: &SignatureParams) -> SignatureBase
Builds the signature base (RFC 9421 §2.5): one line per covered component in signed
order, then @signature-params.
Every value comes from a parsed URI, a method token or a header value, none of which can hold a line break, so no value can add a line to the base.
Trait Implementations§
Source§impl Clone for ComponentValues
impl Clone for ComponentValues
Source§impl Debug for ComponentValues
impl Debug for ComponentValues
impl Eq for ComponentValues
Source§impl PartialEq for ComponentValues
impl PartialEq for ComponentValues
impl StructuralPartialEq for ComponentValues
Auto Trait Implementations§
impl Freeze for ComponentValues
impl RefUnwindSafe for ComponentValues
impl Send for ComponentValues
impl Sync for ComponentValues
impl Unpin for ComponentValues
impl UnsafeUnpin for ComponentValues
impl UnwindSafe for ComponentValues
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.