pub struct ParamDecl {
pub id: String,
pub name: String,
pub description: String,
pub kind: String,
pub required: bool,
pub multiple: bool,
pub choices: Option<String>,
}Expand description
One parameter, owned. Mirrors AddonParam.
Fields§
§id: StringStable identifier.
name: StringWhat to call it.
description: StringWhat it is for.
kind: StringWhat it holds, so an interface can offer the right editor.
required: boolWhether the action fails without it.
multiple: boolWhether it holds several values rather than one (ADR-0022).
choices: Option<String>The id of a ChoicesDecl this draws its options from.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParamDecl
impl<'de> Deserialize<'de> for ParamDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParamDecl
impl StructuralPartialEq for ParamDecl
Auto Trait Implementations§
impl Freeze for ParamDecl
impl RefUnwindSafe for ParamDecl
impl Send for ParamDecl
impl Sync for ParamDecl
impl Unpin for ParamDecl
impl UnsafeUnpin for ParamDecl
impl UnwindSafe for ParamDecl
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