pub struct Url(/* private fields */);Expand description
The output of the URL serializer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Url
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Url
Available on crate feature
serde only.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>,
Deserializes str based on Self::from_str.
§Examples
assert!(matches!(
serde_json::from_str::<Url>(r#""ssh:foo""#)?.as_ref(),
"ssh:foo"
));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 UnsafeUnpin 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