Trait wwsvc_rs::traits::WWSVCGetData
source · 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§
sourcetype Response: DeserializeOwned
type Response: DeserializeOwned
The response type of the WWSVC request.
sourcetype Container: DeserializeOwned
type Container: DeserializeOwned
The container type of the WWSVC request.
Required Associated Constants§
Provided Associated Constants§
Provided Methods§
sourcefn 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,
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.