[][src]Trait mygpoclient::device::ListDevices

pub trait ListDevices {
    fn list_devices(&self) -> Result<Vec<Device>, Error>;
}

Required methods

fn list_devices(&self) -> Result<Vec<Device>, Error>

List Devices

Returns the list of devices that belong to a user. This can be used by the client to let the user select a device from which to retrieve subscriptions, etc..

Examples

use mygpoclient::client::AuthenticatedClient;
use mygpoclient::device::ListDevices;

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

let devices = client.list_devices()?;

See also

Loading content...

Implementors

impl ListDevices for AuthenticatedClient[src]

impl ListDevices for DeviceClient[src]

Loading content...