pub enum ParamValue {
One(String),
Many(Vec<String>),
}Expand description
Value of a route parameter.
Variants§
Trait Implementations§
Source§impl Clone for ParamValue
impl Clone for ParamValue
Source§fn clone(&self) -> ParamValue
fn clone(&self) -> ParamValue
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 ParamValue
impl Debug for ParamValue
Source§impl<'de> Deserialize<'de> for ParamValue
impl<'de> Deserialize<'de> for ParamValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParamValue
Source§impl From<&String> for ParamValue
impl From<&String> for ParamValue
Source§fn from(s: &String) -> ParamValue
fn from(s: &String) -> ParamValue
Converts to this type from the input type.
Source§impl From<&str> for ParamValue
impl From<&str> for ParamValue
Source§fn from(s: &str) -> ParamValue
fn from(s: &str) -> ParamValue
Converts to this type from the input type.
Source§impl From<String> for ParamValue
impl From<String> for ParamValue
Source§fn from(s: String) -> ParamValue
fn from(s: String) -> ParamValue
Converts to this type from the input type.
Source§impl Hash for ParamValue
impl Hash for ParamValue
Source§impl PartialEq for ParamValue
impl PartialEq for ParamValue
Source§impl Serialize for ParamValue
impl Serialize for ParamValue
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
impl StructuralPartialEq for ParamValue
Auto Trait Implementations§
impl Forget for ParamValue
impl Freeze for ParamValue
impl Move for ParamValue
impl RefUnwindSafe for ParamValue
impl Send for ParamValue
impl Sync for ParamValue
impl Unpin for ParamValue
impl UnsafeUnpin for ParamValue
impl UnwindSafe for ParamValue
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.