[−][src]Enum uritemplate::TemplateVar
TemplateVar represents the value of a template variable, which can be a scalar (a simple string), a list of strings, or an associative array of strings.
Normally, it is not necessary to use this class unless you are implementing
the IntoTemplateVar
trait for your own classes.
Variants
Scalar(String)
A simple string such as "foo"
A list of strings such as ["foo", "bar"]
An associative array of strings, such as
[("key1", "value1"), ("key2", "value2")]
Trait Implementations
impl Clone for TemplateVar
[src]
pub fn clone(&self) -> TemplateVar
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl IntoTemplateVar for TemplateVar
[src]
pub fn into_template_var(self) -> TemplateVar
[src]
Auto Trait Implementations
impl RefUnwindSafe for TemplateVar
impl Send for TemplateVar
impl Sync for TemplateVar
impl Unpin for TemplateVar
impl UnwindSafe for TemplateVar
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,