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

pub struct MethodArguments { /* fields omitted */ }

Contains the arguments for a called method Stores them in a HashMap which can only be accessed by a single getter method

Methods

impl MethodArguments[src]

pub fn empty() -> Self[src]

Creates an arguments struct from an empty HashMap

pub fn new(arguments: HashMap<String, Value>) -> Self[src]

Creates an arguments struct from a given HashMap The type for the value might change to a serde_json::Value

pub fn get_argument(&self, name: &String) -> Option<Value>[src]

Gets the argument by the given name The return value may be changed to a serde_json::Value type

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, 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.