pub enum ParamValue {
Str(String),
Int(i64),
Float(f64),
Uuid(String),
Path(String),
}Expand description
A type-converted path parameter value.
Variants§
Str(String)
String value (from {param} or {param:str}).
Int(i64)
Integer value (from {param:int}).
Float(f64)
Float value (from {param:float}).
Uuid(String)
UUID value (from {param:uuid}).
Path(String)
Path value including slashes (from {*param} or {param:path}).
Implementations§
Source§impl ParamValue
impl ParamValue
Sourcepub fn into_string(self) -> Option<String>
pub fn into_string(self) -> Option<String>
Get the raw string for Str, Uuid, or Path 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 · 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 PartialEq for ParamValue
impl PartialEq for ParamValue
impl StructuralPartialEq for ParamValue
Auto Trait Implementations§
impl Freeze for ParamValue
impl RefUnwindSafe for ParamValue
impl Send for ParamValue
impl Sync for ParamValue
impl Unpin 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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).