pub struct RouteParam {
pub name: &'static str,
pub role: ParamRole,
pub kind: ParamKind,
}Expand description
One {param} placeholder in a route’s path.
Fields§
§name: &'static strThe placeholder’s name as it appears in the path: boxId.
role: ParamRoleWhether the parameter names the record itself or a parent of it.
kind: ParamKindThe type the model gives the value.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RouteParam
Source§impl Debug for RouteParam
impl Debug for RouteParam
impl Eq for RouteParam
Source§impl PartialEq for RouteParam
impl PartialEq for RouteParam
impl StructuralPartialEq for RouteParam
Auto Trait Implementations§
impl Freeze for RouteParam
impl RefUnwindSafe for RouteParam
impl Send for RouteParam
impl Sync for RouteParam
impl Unpin for RouteParam
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.