pub struct ValidatedUrl(/* private fields */);Available on crate feature
core only.Implementations§
Source§impl ValidatedUrl
impl ValidatedUrl
Trait Implementations§
Source§impl AsRef<str> for ValidatedUrl
impl AsRef<str> for ValidatedUrl
Source§impl Clone for ValidatedUrl
impl Clone for ValidatedUrl
Source§fn clone(&self) -> ValidatedUrl
fn clone(&self) -> ValidatedUrl
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 ValidatedUrl
impl Debug for ValidatedUrl
Source§impl<'de> Deserialize<'de> for ValidatedUrl
impl<'de> Deserialize<'de> for ValidatedUrl
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ValidatedUrl, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ValidatedUrl, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ValidatedUrl
impl Display for ValidatedUrl
Source§impl FromStr for ValidatedUrl
impl FromStr for ValidatedUrl
Source§type Err = IdValidationError
type Err = IdValidationError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ValidatedUrl, <ValidatedUrl as FromStr>::Err>
fn from_str(s: &str) -> Result<ValidatedUrl, <ValidatedUrl as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ValidatedUrl
impl Hash for ValidatedUrl
Source§impl PartialEq for ValidatedUrl
impl PartialEq for ValidatedUrl
Source§impl Serialize for ValidatedUrl
impl Serialize for ValidatedUrl
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToDbValue for &ValidatedUrl
impl ToDbValue for &ValidatedUrl
fn to_db_value(&self) -> DbValue
fn null_db_value() -> DbValuewhere
Self: Sized,
Source§impl ToDbValue for ValidatedUrl
impl ToDbValue for ValidatedUrl
fn to_db_value(&self) -> DbValue
fn null_db_value() -> DbValuewhere
Self: Sized,
Source§impl TryFrom<&str> for ValidatedUrl
impl TryFrom<&str> for ValidatedUrl
Source§type Error = IdValidationError
type Error = IdValidationError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<ValidatedUrl, <ValidatedUrl as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<ValidatedUrl, <ValidatedUrl as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl TryFrom<String> for ValidatedUrl
impl TryFrom<String> for ValidatedUrl
Source§type Error = IdValidationError
type Error = IdValidationError
The type returned in the event of a conversion error.
Source§fn try_from(
s: String,
) -> Result<ValidatedUrl, <ValidatedUrl as TryFrom<String>>::Error>
fn try_from( s: String, ) -> Result<ValidatedUrl, <ValidatedUrl as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for ValidatedUrl
impl StructuralPartialEq for ValidatedUrl
Auto Trait Implementations§
impl Freeze for ValidatedUrl
impl RefUnwindSafe for ValidatedUrl
impl Send for ValidatedUrl
impl Sync for ValidatedUrl
impl Unpin for ValidatedUrl
impl UnsafeUnpin for ValidatedUrl
impl UnwindSafe for ValidatedUrl
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.