[][src]Struct new_home_application::communication::MethodCall

pub struct MethodCall {
    pub method_name: String,
    pub arguments: HashMap<String, Value>,
}

This contains the structure for a request to a method

Provided are the method_name. This can be useful if you implement multiple methods with the same struct or call a method from multiple methods which, however has slightly different logic depending on which method called it.

Arguments are supplied as well. This can be ignored when the struct used the derive macro and the arguments were mapped to the struct fields already.

Fields

method_name: String

The name of the method that is called

arguments: HashMap<String, Value>

The list of arguments which are supplied to the method

Trait Implementations

impl Debug for MethodCall[src]

impl Default for MethodCall[src]

impl<'de> Deserialize<'de> for MethodCall[src]

impl Message for MethodCall[src]

type Result = MethodResult

The type of value that this message will resolved with if it is successful. Read more

impl Serialize for MethodCall[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,