pub struct ParamInfo {
pub name: String,
pub ty: String,
pub is_optional: bool,
pub is_id: bool,
}Expand description
Runtime parameter metadata with string-based types.
See MethodInfo for the relationship between this type and
server_less_parse::ParamInfo.
Fields§
§name: StringParameter name
ty: StringType as string
is_optional: boolWhether this is an Option<T>
is_id: boolWhether this looks like an ID parameter (ends with _id or is named id)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamInfo
impl RefUnwindSafe for ParamInfo
impl Send for ParamInfo
impl Sync for ParamInfo
impl Unpin for ParamInfo
impl UnsafeUnpin for ParamInfo
impl UnwindSafe for ParamInfo
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