pub struct ParamMetadata {
pub name: String,
pub param_type: String,
pub required: bool,
pub default: Option<String>,
}
Expand description
Parameter metadata for route validation
Fields§
§name: String
Parameter name
param_type: String
Parameter type (string, int, uuid, etc.)
required: bool
Whether parameter is required
default: Option<String>
Default value if optional
Trait Implementations§
Source§impl Clone for ParamMetadata
impl Clone for ParamMetadata
Source§fn clone(&self) -> ParamMetadata
fn clone(&self) -> ParamMetadata
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 ParamMetadata
impl RefUnwindSafe for ParamMetadata
impl Send for ParamMetadata
impl Sync for ParamMetadata
impl Unpin for ParamMetadata
impl UnwindSafe for ParamMetadata
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