pub trait ActionsApi: Send + Sync {
// Required methods
fn execute_thing_action<'thing_uid, 'action_uid, 'accept_language, 'request_body, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
action_uid: &'action_uid str,
accept_language: Option<&'accept_language str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<ExecuteThingActionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'thing_uid: 'async_trait,
'action_uid: 'async_trait,
'accept_language: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait;
fn get_available_actions_for_thing<'thing_uid, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ThingActionDto>, Error<GetAvailableActionsForThingError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'thing_uid: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
actions_api only.Required Methods§
Sourcefn execute_thing_action<'thing_uid, 'action_uid, 'accept_language, 'request_body, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
action_uid: &'action_uid str,
accept_language: Option<&'accept_language str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<ExecuteThingActionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'action_uid: 'async_trait,
'accept_language: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
fn execute_thing_action<'thing_uid, 'action_uid, 'accept_language, 'request_body, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
action_uid: &'action_uid str,
accept_language: Option<&'accept_language str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<ExecuteThingActionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'action_uid: 'async_trait,
'accept_language: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
POST /actions/{thingUID}/{actionUid}
Sourcefn get_available_actions_for_thing<'thing_uid, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ThingActionDto>, Error<GetAvailableActionsForThingError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_available_actions_for_thing<'thing_uid, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ThingActionDto>, Error<GetAvailableActionsForThingError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /actions/{thingUID}