pub struct Url(/* private fields */);Expand description
A validated Kitsune2 Url.
Implementations§
Source§impl Url
impl Url
Sourcepub fn from_str<S: AsRef<str>>(src: S) -> K2Result<Self>
pub fn from_str<S: AsRef<str>>(src: S) -> K2Result<Self>
Construct a new validated Kitsune2 Url from a str.
Sourcepub fn uses_tls(&self) -> bool
pub fn uses_tls(&self) -> bool
Returns true if the protocol scheme is TLS-enabled (wss or https).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Url
impl<'de> Deserialize<'de> for Url
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
Source§impl Ord for Url
impl Ord for Url
Source§impl PartialOrd for Url
impl PartialOrd for Url
impl Eq for Url
impl StructuralPartialEq for Url
Auto Trait Implementations§
impl !Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
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