pub struct DevicesApi<'a, V> { /* private fields */ }
Expand description
“Devices” section of the devices API.
Implementations§
Source§impl<'a, V> DevicesApi<'a, V>
impl<'a, V> DevicesApi<'a, V>
Sourcepub fn new(client: &'a SdkClient, api_config: &'a DevicesApiConfig) -> Self
pub fn new(client: &'a SdkClient, api_config: &'a DevicesApiConfig) -> Self
Create a new interface for “Devices” API.
Sourcepub async fn get_device_configuration(
&self,
serial_number: impl Into<String> + Send + Clone,
) -> Result<GetDeviceRes, SdkClientError>
pub async fn get_device_configuration( &self, serial_number: impl Into<String> + Send + Clone, ) -> Result<GetDeviceRes, SdkClientError>
Sourcepub async fn delete_device(
&self,
serial_number: impl Into<String> + Send + Clone,
) -> Result<(), SdkClientError>
pub async fn delete_device( &self, serial_number: impl Into<String> + Send + Clone, ) -> Result<(), SdkClientError>
Sourcepub async fn store_device(
&self,
serial_number: impl Into<String> + Send + Clone,
name: Option<impl Into<String> + Send>,
asset_type_id: i32,
) -> Result<StoreDeviceRes, SdkClientError>
pub async fn store_device( &self, serial_number: impl Into<String> + Send + Clone, name: Option<impl Into<String> + Send>, asset_type_id: i32, ) -> Result<StoreDeviceRes, SdkClientError>
Auto Trait Implementations§
impl<'a, V> Freeze for DevicesApi<'a, V>
impl<'a, V> !RefUnwindSafe for DevicesApi<'a, V>
impl<'a, V> Send for DevicesApi<'a, V>
impl<'a, V> Sync for DevicesApi<'a, V>
impl<'a, V> Unpin for DevicesApi<'a, V>
impl<'a, V> !UnwindSafe for DevicesApi<'a, V>
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