Trait UpdateDeviceData

Source
pub trait UpdateDeviceData {
    // Required method
    fn update_device_data<T: Into<Option<String>>, U: Into<Option<DeviceType>>>(
        &self,
        caption: T,
        device_type: U,
    ) -> Result<(), Error>;
}
Expand description

Required Methods§

Source

fn update_device_data<T: Into<Option<String>>, U: Into<Option<DeviceType>>>( &self, caption: T, device_type: U, ) -> Result<(), Error>

Update Device Data

§Parameters
  • caption: The new human readable label for the device
  • device_type: see DeviceType
§Examples
use mygpoclient::client::DeviceClient;
use mygpoclient::device::{DeviceType,UpdateDeviceData};

let client = DeviceClient::new(&username, &password, &deviceid);

client.update_device_data("My Phone".to_owned(), DeviceType::Mobile)?;
§See also

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§