pub struct ParamDoc {
pub name: String,
pub ty: String,
pub required: bool,
pub description: String,
pub max_len: Option<usize>,
pub enum_values: Vec<String>,
}Expand description
Serializable documentation for a single action parameter.
Fields§
§name: StringParameter name.
ty: StringJSON type of the parameter.
required: boolWhether the parameter is required.
description: StringHuman-readable description of the parameter.
max_len: Option<usize>Maximum allowed length, when length-bounded.
enum_values: Vec<String>Permitted values when the parameter is an enum.
Trait Implementations§
impl Eq for ParamDoc
impl StructuralPartialEq for ParamDoc
Auto Trait Implementations§
impl Freeze for ParamDoc
impl RefUnwindSafe for ParamDoc
impl Send for ParamDoc
impl Sync for ParamDoc
impl Unpin for ParamDoc
impl UnsafeUnpin for ParamDoc
impl UnwindSafe for ParamDoc
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.