Struct did_toolkit::url::URLParameters
source · pub struct URLParameters {
pub path: Option<Vec<u8>>,
pub fragment: Option<Vec<u8>>,
pub service: Option<String>,
pub relative_ref: Option<Vec<u8>>,
pub version_id: Option<String>,
pub version_time: Option<VersionTime>,
pub hash_link: Option<String>,
pub extra_query: Option<BTreeMap<Vec<u8>, Vec<u8>>>,
}Expand description
A struct to encapsulate URL parameters. All members of this struct are optional, liberal use of
..Default::default() is recommended to couch the extra fields.
Many parts of this struct are concatenated into the query string, which has unique escaping
rules for each special parameter (see https://www.w3.org/TR/did-core/#did-parameters). These
are handled according to spec and may take String or Vec<u8> depending on needs. Query members
that do not match a special field are stuffed in the extra_query bucket.
Fields§
§path: Option<Vec<u8>>§fragment: Option<Vec<u8>>§service: Option<String>§relative_ref: Option<Vec<u8>>§version_id: Option<String>§version_time: Option<VersionTime>§hash_link: Option<String>§extra_query: Option<BTreeMap<Vec<u8>, Vec<u8>>>Trait Implementations§
source§impl Clone for URLParameters
impl Clone for URLParameters
source§fn clone(&self) -> URLParameters
fn clone(&self) -> URLParameters
Returns a copy 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 URLParameters
impl Debug for URLParameters
source§impl Default for URLParameters
impl Default for URLParameters
source§fn default() -> URLParameters
fn default() -> URLParameters
Returns the “default value” for a type. Read more
source§impl Hash for URLParameters
impl Hash for URLParameters
source§impl Ord for URLParameters
impl Ord for URLParameters
source§fn cmp(&self, other: &URLParameters) -> Ordering
fn cmp(&self, other: &URLParameters) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<URLParameters> for URLParameters
impl PartialEq<URLParameters> for URLParameters
source§fn eq(&self, other: &URLParameters) -> bool
fn eq(&self, other: &URLParameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<URLParameters> for URLParameters
impl PartialOrd<URLParameters> for URLParameters
source§fn partial_cmp(&self, other: &URLParameters) -> Option<Ordering>
fn partial_cmp(&self, other: &URLParameters) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for URLParameters
impl StructuralEq for URLParameters
impl StructuralPartialEq for URLParameters
Auto Trait Implementations§
impl RefUnwindSafe for URLParameters
impl Send for URLParameters
impl Sync for URLParameters
impl Unpin for URLParameters
impl UnwindSafe for URLParameters
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.