pub struct ParamSpec {
pub name: &'static str,
pub ty: &'static str,
pub required: bool,
pub description: &'static str,
pub max_len: Option<usize>,
pub enum_values: &'static [&'static str],
}Expand description
Static specification of a single action parameter.
Fields§
§name: &'static strParameter name.
ty: &'static strJSON type of the parameter (e.g. "string").
required: boolWhether the parameter is required.
description: &'static strHuman-readable description of the parameter.
max_len: Option<usize>Maximum allowed length, when the parameter is length-bounded.
enum_values: &'static [&'static str]Permitted values when the parameter is an enum; empty otherwise.
Trait Implementations§
impl Copy for ParamSpec
impl Eq for ParamSpec
impl StructuralPartialEq for ParamSpec
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpec
impl UnwindSafe for ParamSpec
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.