pub struct EntitiesClient { /* private fields */ }Implementations§
Source§impl EntitiesClient
impl EntitiesClient
pub async fn list(&self) -> Result<Vec<Value>, SdkError>
pub async fn create(&self, body: &Value) -> Result<Value, SdkError>
pub async fn get(&self, id: &str) -> Result<Value, SdkError>
pub async fn update(&self, id: &str, body: &Value) -> Result<Value, SdkError>
pub async fn patch(&self, id: &str, body: &Value) -> Result<Value, SdkError>
pub async fn delete(&self, id: &str) -> Result<(), SdkError>
pub async fn purge(&self, id: &str) -> Result<(), SdkError>
pub async fn restore(&self, id: &str) -> Result<Value, SdkError>
Sourcepub async fn invoke_action(
&self,
id: &str,
action_id: &str,
body: &Value,
) -> Result<Value, SdkError>
pub async fn invoke_action( &self, id: &str, action_id: &str, body: &Value, ) -> Result<Value, SdkError>
POST /entities/{id}/actions/{action_id} — invoke a DSL/entity action.
Sourcepub async fn preview_action(
&self,
id: &str,
action_id: &str,
body: &Value,
) -> Result<Value, SdkError>
pub async fn preview_action( &self, id: &str, action_id: &str, body: &Value, ) -> Result<Value, SdkError>
POST /entities/{id}/actions/{action_id}/preview — Cedar dry-run, no hardware call.
Sourcepub async fn invoke_action_with_headers(
&self,
id: &str,
action_id: &str,
body: &Value,
extra_headers: &[(&str, String)],
) -> Result<Value, SdkError>
pub async fn invoke_action_with_headers( &self, id: &str, action_id: &str, body: &Value, extra_headers: &[(&str, String)], ) -> Result<Value, SdkError>
POST /entities/{id}/actions/{action_id} with optional idempotency / confirm headers.
pub async fn metadata_definition(&self, id: &str) -> Result<Value, SdkError>
pub async fn by_device(&self, device_id: &str) -> Result<Vec<Value>, SdkError>
pub async fn device_entities_metadata_definition( &self, device_id: &str, ) -> Result<Value, SdkError>
pub async fn directory_floors(&self, device_id: &str) -> Result<Value, SdkError>
Trait Implementations§
Source§impl Clone for EntitiesClient
impl Clone for EntitiesClient
Source§fn clone(&self) -> EntitiesClient
fn clone(&self) -> EntitiesClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EntitiesClient
impl !UnwindSafe for EntitiesClient
impl Freeze for EntitiesClient
impl Send for EntitiesClient
impl Sync for EntitiesClient
impl Unpin for EntitiesClient
impl UnsafeUnpin for EntitiesClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more