pub struct Device {Show 24 fields
pub id: EntityId,
pub mac: MacAddress,
pub ip: Option<IpAddr>,
pub wan_ipv6: Option<String>,
pub name: Option<String>,
pub model: Option<String>,
pub device_type: DeviceType,
pub state: DeviceState,
pub firmware_version: Option<String>,
pub firmware_updatable: bool,
pub adopted_at: Option<DateTime<Utc>>,
pub provisioned_at: Option<DateTime<Utc>>,
pub last_seen: Option<DateTime<Utc>>,
pub serial: Option<String>,
pub supported: bool,
pub ports: Vec<Port>,
pub radios: Vec<Radio>,
pub uplink_device_id: Option<EntityId>,
pub uplink_device_mac: Option<MacAddress>,
pub has_switching: bool,
pub has_access_point: bool,
pub stats: DeviceStats,
pub client_count: Option<u32>,
pub origin: Option<EntityOrigin>,
/* private fields */
}Expand description
The canonical Device type. Merges data from Integration + Legacy APIs.
Fields§
§id: EntityId§mac: MacAddress§ip: Option<IpAddr>§wan_ipv6: Option<String>§name: Option<String>§model: Option<String>§device_type: DeviceType§state: DeviceState§firmware_version: Option<String>§firmware_updatable: bool§adopted_at: Option<DateTime<Utc>>§provisioned_at: Option<DateTime<Utc>>§last_seen: Option<DateTime<Utc>>§serial: Option<String>§supported: bool§ports: Vec<Port>§radios: Vec<Radio>§uplink_device_id: Option<EntityId>§uplink_device_mac: Option<MacAddress>§has_switching: bool§has_access_point: bool§stats: DeviceStats§client_count: Option<u32>§origin: Option<EntityOrigin>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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 From<LegacyDevice> for Device
impl From<LegacyDevice> for Device
Source§fn from(d: LegacyDevice) -> Self
fn from(d: LegacyDevice) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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