pub struct PathParamConstraint {
pub name: String,
pub description: Option<String>,
pub is_uuid: bool,
pub min: Option<u64>,
pub max: Option<u64>,
}Expand description
Constraint for a single path parameter.
Fields§
§name: StringParameter name as it appears in the URL template (snake_case).
description: Option<String>Human-readable description from proto field comment (if available).
is_uuid: boolWhether this parameter is a UUID type (references core.v1.UUID).
min: Option<u64>minLength (string) or minimum (integer).
max: Option<u64>maxLength (string) or maximum (integer).
Trait Implementations§
Source§impl Clone for PathParamConstraint
impl Clone for PathParamConstraint
Source§fn clone(&self) -> PathParamConstraint
fn clone(&self) -> PathParamConstraint
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 PathParamConstraint
impl RefUnwindSafe for PathParamConstraint
impl Send for PathParamConstraint
impl Sync for PathParamConstraint
impl Unpin for PathParamConstraint
impl UnwindSafe for PathParamConstraint
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