pub struct Device {Show 13 fields
pub id: String,
pub description: Option<String>,
pub active: bool,
pub hardware_id: String,
pub device_type_id: String,
pub owner_id: String,
pub hardware_id_names: Vec<String>,
pub hardware_ids: HashMap<String, String>,
pub parent_hardware_id: Vec<String>,
pub tags: Vec<String>,
pub protocol: DeviceProtocol,
pub updated_at: OffsetDateTime,
pub created_at: OffsetDateTime,
}Fields§
§id: String§description: Option<String>§active: bool§hardware_id: String§device_type_id: String§owner_id: String§hardware_id_names: Vec<String>§hardware_ids: HashMap<String, String>§parent_hardware_id: Vec<String>§protocol: DeviceProtocol§updated_at: OffsetDateTime§created_at: OffsetDateTimeTrait 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