[][src]Struct new_home_application::method::method_structure::MethodArgument

pub struct MethodArgument {
    pub name: String,
    pub description: String,
    pub help: String,
    pub value: Option<Value>,
    pub required: bool,
}

Contains the definition for a single method argument contains the name, description, help, value and whether the argument is required or not The default value can be set in the value field which is optional when the argument is not required

Fields

name: String

The name of the argument

description: String

A small description, what the argument is meant for

help: String

A short help, for example which data type is expected for the argument

value: Option<Value>

A default value which can be given to the argument if not required

required: bool

Whether the argument is required or not If the argument is required, the default value is ignored and can be None If the argument is not required, the default value can be None or Some

Trait Implementations

impl Clone for MethodArgument[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.