pub enum StringOrURI {
String(String),
URI(UriBuf),
}Expand description
StringOrURI datatype defined in RFC7519
Variants§
Implementations§
Source§impl StringOrURI
impl StringOrURI
pub fn into_string(self) -> String
Trait Implementations§
Source§impl Clone for StringOrURI
impl Clone for StringOrURI
Source§fn clone(&self) -> StringOrURI
fn clone(&self) -> StringOrURI
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 StringOrURI
impl Debug for StringOrURI
Source§impl<'de> Deserialize<'de> for StringOrURI
impl<'de> Deserialize<'de> for StringOrURI
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 StringOrURI
Source§impl From<StringOrURI> for String
impl From<StringOrURI> for String
Source§fn from(id: StringOrURI) -> Self
fn from(id: StringOrURI) -> Self
Converts to this type from the input type.
Source§impl From<UriBuf> for StringOrURI
impl From<UriBuf> for StringOrURI
Source§impl FromStr for StringOrURI
impl FromStr for StringOrURI
Source§impl Hash for StringOrURI
impl Hash for StringOrURI
Source§impl Ord for StringOrURI
impl Ord for StringOrURI
Source§fn cmp(&self, other: &StringOrURI) -> Ordering
fn cmp(&self, other: &StringOrURI) -> 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 StringOrURI
impl PartialEq for StringOrURI
Source§fn eq(&self, other: &StringOrURI) -> bool
fn eq(&self, other: &StringOrURI) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StringOrURI
impl PartialOrd for StringOrURI
Source§impl Serialize for StringOrURI
impl Serialize for StringOrURI
impl StructuralPartialEq for StringOrURI
Source§impl TryFrom<&str> for StringOrURI
impl TryFrom<&str> for StringOrURI
Auto Trait Implementations§
impl Freeze for StringOrURI
impl RefUnwindSafe for StringOrURI
impl Send for StringOrURI
impl Sync for StringOrURI
impl Unpin for StringOrURI
impl UnsafeUnpin for StringOrURI
impl UnwindSafe for StringOrURI
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
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<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
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§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.