pub struct AbsoluteUri(/* private fields */);Expand description
A schema-valid RFC 3986 URI with a required ASCII scheme.
This type deliberately preserves the original wire spelling. It does not fetch, normalize, lowercase, resolve, or otherwise authorize the URI.
Implementations§
Source§impl AbsoluteUri
impl AbsoluteUri
Sourcepub fn parse(value: impl Into<String>) -> Result<Self, CommonTypeError>
pub fn parse(value: impl Into<String>) -> Result<Self, CommonTypeError>
Parses an absolute URI without changing its bytes.
Sourcepub fn has_scheme(&self, scheme: &str) -> bool
pub fn has_scheme(&self, scheme: &str) -> bool
Tests a scheme with RFC 3986 ASCII-case-insensitive comparison.
Trait Implementations§
Source§impl Clone for AbsoluteUri
impl Clone for AbsoluteUri
Source§fn clone(&self) -> AbsoluteUri
fn clone(&self) -> AbsoluteUri
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbsoluteUri
impl Debug for AbsoluteUri
Source§impl<'de> Deserialize<'de> for AbsoluteUri
impl<'de> Deserialize<'de> for AbsoluteUri
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AbsoluteUri
Source§impl Hash for AbsoluteUri
impl Hash for AbsoluteUri
Source§impl Ord for AbsoluteUri
impl Ord for AbsoluteUri
Source§fn cmp(&self, other: &AbsoluteUri) -> Ordering
fn cmp(&self, other: &AbsoluteUri) -> Ordering
1.21.0 (const: unstable) · 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 for AbsoluteUri
impl PartialEq for AbsoluteUri
Source§impl PartialOrd for AbsoluteUri
impl PartialOrd for AbsoluteUri
Source§impl Serialize for AbsoluteUri
impl Serialize for AbsoluteUri
impl StructuralPartialEq for AbsoluteUri
Auto Trait Implementations§
impl Freeze for AbsoluteUri
impl RefUnwindSafe for AbsoluteUri
impl Send for AbsoluteUri
impl Sync for AbsoluteUri
impl Unpin for AbsoluteUri
impl UnsafeUnpin for AbsoluteUri
impl UnwindSafe for AbsoluteUri
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).