[][src]Trait mygpoclient::device::UpdateDeviceData

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

Required methods

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

Loading content...

Implementors

impl UpdateDeviceData for DeviceClient[src]

Loading content...