[−][src]Struct new_home_application::method::method_structure::MethodArgument
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]
fn clone(&self) -> MethodArgument
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for MethodArgument
impl Send for MethodArgument
impl Sync for MethodArgument
impl Unpin for MethodArgument
impl UnwindSafe for MethodArgument
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,