[−][src]Trait mygpoclient::device::UpdateDeviceData
Required methods
fn update_device_data<T: Into<Option<String>>, U: Into<Option<DeviceType>>>(
&self,
caption: T,
device_type: U
) -> Result<(), Error>
&self,
caption: T,
device_type: U
) -> Result<(), Error>
Update Device Data
Parameters
caption
: The new human readable label for the devicedevice_type
: seeDeviceType
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)?;