Struct nostr_sdk::UncheckedUrl
source · pub struct UncheckedUrl(/* private fields */);
Expand description
Unchecked Url
Implementations§
source§impl UncheckedUrl
impl UncheckedUrl
sourcepub fn new<S>(url: S) -> UncheckedUrlwhere
S: Into<String>,
pub fn new<S>(url: S) -> UncheckedUrlwhere S: Into<String>,
New unchecked url
sourcepub fn empty() -> UncheckedUrl
pub fn empty() -> UncheckedUrl
Empty unchecked url
Trait Implementations§
source§impl Clone for UncheckedUrl
impl Clone for UncheckedUrl
source§fn clone(&self) -> UncheckedUrl
fn clone(&self) -> UncheckedUrl
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 UncheckedUrl
impl Debug for UncheckedUrl
source§impl Default for UncheckedUrl
impl Default for UncheckedUrl
source§fn default() -> UncheckedUrl
fn default() -> UncheckedUrl
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UncheckedUrl
impl<'de> Deserialize<'de> for UncheckedUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<UncheckedUrl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<UncheckedUrl, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for UncheckedUrl
impl Display for UncheckedUrl
source§impl<S> From<S> for UncheckedUrlwhere
S: Into<String>,
impl<S> From<S> for UncheckedUrlwhere S: Into<String>,
source§fn from(url: S) -> UncheckedUrl
fn from(url: S) -> UncheckedUrl
Converts to this type from the input type.
source§impl FromStr for UncheckedUrl
impl FromStr for UncheckedUrl
source§impl Hash for UncheckedUrl
impl Hash for UncheckedUrl
source§impl Ord for UncheckedUrl
impl Ord for UncheckedUrl
source§fn cmp(&self, other: &UncheckedUrl) -> Ordering
fn cmp(&self, other: &UncheckedUrl) -> 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<UncheckedUrl> for UncheckedUrl
impl PartialEq<UncheckedUrl> for UncheckedUrl
source§fn eq(&self, other: &UncheckedUrl) -> bool
fn eq(&self, other: &UncheckedUrl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UncheckedUrl> for UncheckedUrl
impl PartialOrd<UncheckedUrl> for UncheckedUrl
source§fn partial_cmp(&self, other: &UncheckedUrl) -> Option<Ordering>
fn partial_cmp(&self, other: &UncheckedUrl) -> 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 moresource§impl Serialize for UncheckedUrl
impl Serialize for UncheckedUrl
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 TryFrom<UncheckedUrl> for Url
impl TryFrom<UncheckedUrl> for Url
impl Eq for UncheckedUrl
impl StructuralEq for UncheckedUrl
impl StructuralPartialEq for UncheckedUrl
Auto Trait Implementations§
impl RefUnwindSafe for UncheckedUrl
impl Send for UncheckedUrl
impl Sync for UncheckedUrl
impl Unpin for UncheckedUrl
impl UnwindSafe for UncheckedUrl
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.