pub struct DeviceResponse {
pub id: Uuid,
pub mac_address: String,
pub ip_address: Option<String>,
pub name: String,
pub model: String,
pub state: String,
pub supported: bool,
pub firmware_version: Option<String>,
pub firmware_updatable: bool,
pub features: Vec<String>,
pub interfaces: Value,
}Expand description
Adopted device overview — from GET /v1/sites/{siteId}/devices.
Fields§
§id: Uuid§mac_address: String§ip_address: Option<String>§name: String§model: String§state: StringOne of: ONLINE, OFFLINE, PENDING_ADOPTION, UPDATING,
GETTING_READY, ADOPTING, DELETING, CONNECTION_INTERRUPTED, ISOLATED.
supported: bool§firmware_version: Option<String>§firmware_updatable: bool§features: Vec<String>§interfaces: ValueComplex nested interfaces object — kept as opaque JSON.
Trait Implementations§
Source§impl Clone for DeviceResponse
impl Clone for DeviceResponse
Source§fn clone(&self) -> DeviceResponse
fn clone(&self) -> DeviceResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceResponse
impl Debug for DeviceResponse
Source§impl<'de> Deserialize<'de> for DeviceResponse
impl<'de> Deserialize<'de> for DeviceResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DeviceResponse> for Device
impl From<DeviceResponse> for Device
Source§fn from(d: DeviceResponse) -> Self
fn from(d: DeviceResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceResponse
impl PartialEq for DeviceResponse
Source§impl Serialize for DeviceResponse
impl Serialize for DeviceResponse
impl StructuralPartialEq for DeviceResponse
Auto Trait Implementations§
impl Freeze for DeviceResponse
impl RefUnwindSafe for DeviceResponse
impl Send for DeviceResponse
impl Sync for DeviceResponse
impl Unpin for DeviceResponse
impl UnsafeUnpin for DeviceResponse
impl UnwindSafe for DeviceResponse
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