pub struct Device {Show 24 fields
pub addresses: Vec<String>,
pub allowed_ips: Vec<String>,
pub extra_ips: Vec<String>,
pub endpoints: Vec<String>,
pub derp: String,
pub client_version: String,
pub os: String,
pub name: String,
pub created: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
pub hostname: String,
pub machine_key: String,
pub node_key: String,
pub id: String,
pub display_node_key: String,
pub log_id: String,
pub user: String,
pub expires: DateTime<Utc>,
pub never_expires: bool,
pub authorized: bool,
pub is_external: bool,
pub update_available: bool,
pub route_all: bool,
pub has_subnet: bool,
}
Expand description
The data type for a device.
Fields§
§addresses: Vec<String>
§allowed_ips: Vec<String>
§extra_ips: Vec<String>
§endpoints: Vec<String>
§derp: String
§client_version: String
§os: String
§name: String
§created: DateTime<Utc>
§last_seen: DateTime<Utc>
§hostname: String
§machine_key: String
§node_key: String
§id: String
§display_node_key: String
§log_id: String
§user: String
§expires: DateTime<Utc>
§never_expires: bool
§is_external: bool
§update_available: bool
§route_all: bool
§has_subnet: bool
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
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin 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