#[non_exhaustive]pub struct UriInfoEntry {
pub data: String,
pub metadata: Vec<(String, String)>,
}Expand description
One <uri>;key=value;key=value entry from a URI-info-style header.
The data field contains the URI stripped of angle brackets. Metadata keys are stored lowercased; values are preserved as-is.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: StringThe URI or data inside the angle brackets, with brackets stripped.
metadata: Vec<(String, String)>Semicolon-delimited parameters as (key, value) pairs.
Keys are lowercased at parse time; values are preserved as-is.
A key with no = sign is stored with an empty string value.
Implementations§
Trait Implementations§
Source§impl Clone for UriInfoEntry
impl Clone for UriInfoEntry
Source§fn clone(&self) -> UriInfoEntry
fn clone(&self) -> UriInfoEntry
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 moreSource§impl Debug for UriInfoEntry
impl Debug for UriInfoEntry
Source§impl Display for UriInfoEntry
impl Display for UriInfoEntry
Source§impl PartialEq for UriInfoEntry
impl PartialEq for UriInfoEntry
impl Eq for UriInfoEntry
impl StructuralPartialEq for UriInfoEntry
Auto Trait Implementations§
impl Freeze for UriInfoEntry
impl RefUnwindSafe for UriInfoEntry
impl Send for UriInfoEntry
impl Sync for UriInfoEntry
impl Unpin for UriInfoEntry
impl UnsafeUnpin for UriInfoEntry
impl UnwindSafe for UriInfoEntry
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
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.