pub struct DevicesClient { /* private fields */ }Implementations§
Source§impl DevicesClient
impl DevicesClient
pub async fn list(&self) -> Result<Vec<DeviceResponse>, SdkError>
pub async fn create( &self, body: &CreateDeviceRequest, ) -> Result<DeviceResponse, SdkError>
pub async fn get(&self, id: &str) -> Result<DeviceResponse, SdkError>
pub async fn update( &self, id: &str, body: &UpdateDeviceRequest, ) -> Result<DeviceResponse, 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<DeviceResponse, SdkError>
pub async fn door_restrictions( &self, id: &str, ) -> Result<DoorRestrictionsResponse, SdkError>
pub async fn metadata_definition( &self, id: &str, ) -> Result<DeviceMetadataDefinitionResponse, SdkError>
Trait Implementations§
Source§impl Clone for DevicesClient
impl Clone for DevicesClient
Source§fn clone(&self) -> DevicesClient
fn clone(&self) -> DevicesClient
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 Freeze for DevicesClient
impl !RefUnwindSafe for DevicesClient
impl Send for DevicesClient
impl Sync for DevicesClient
impl Unpin for DevicesClient
impl UnsafeUnpin for DevicesClient
impl !UnwindSafe for DevicesClient
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