pub struct RouteParam {
pub name: String,
pub param_type: ParamType,
pub required: bool,
pub default: Option<String>,
}
Expand description
Route parameter definition for controllers
Fields§
§name: String
§param_type: ParamType
§required: bool
§default: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for RouteParam
impl Clone for RouteParam
Source§fn clone(&self) -> RouteParam
fn clone(&self) -> RouteParam
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 moreAuto Trait Implementations§
impl Freeze for RouteParam
impl RefUnwindSafe for RouteParam
impl Send for RouteParam
impl Sync for RouteParam
impl Unpin for RouteParam
impl UnwindSafe for RouteParam
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