pub trait WWSVCGetData {
    type Response: DeserializeOwned;
    type Container: DeserializeOwned;

    const FUNCTION: &'static str;
    const VERSION: u32 = 1u32;
    const METHOD: Method = reqwest::Method::PUT;
    const FIELDS: &'static str = "";

    // Provided method
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        client: &'life0 mut WebwareClient<impl 'async_trait + Ready + Send>,
        parameters: HashMap<&'life1 str, &'life2 str>
    ) -> Pin<Box<dyn Future<Output = WWClientResult<Self::Response>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}
Expand description

Trait for the WWSVCGetData derive macro.

Required Associated Types§

source

type Response: DeserializeOwned

The response type of the WWSVC request.

source

type Container: DeserializeOwned

The container type of the WWSVC request.

Required Associated Constants§

source

const FUNCTION: &'static str

The function name of the WWSVC request.

Provided Associated Constants§

source

const VERSION: u32 = 1u32

The version of the function.

source

const METHOD: Method = reqwest::Method::PUT

The function method of the WWSVC request.

source

const FIELDS: &'static str = ""

The fields of the struct.

Provided Methods§

source

fn get<'life0, 'life1, 'life2, 'async_trait>( client: &'life0 mut WebwareClient<impl 'async_trait + Ready + Send>, parameters: HashMap<&'life1 str, &'life2 str> ) -> Pin<Box<dyn Future<Output = WWClientResult<Self::Response>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Requests this data from the server.

Object Safety§

This trait is not object safe.

Implementors§