pub struct SiteHardware {
pub manual: bool,
pub ip: Option<String>,
pub name: String,
pub specifications: Option<String>,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub created: OffsetDateTime,
pub modified: Option<OffsetDateTime>,
pub typ: Option<String>,
pub port_comms: Option<u16>,
pub properties: Option<HashMap<String, String>>,
}
Fields§
§manual: bool
§ip: Option<String>
§name: String
§specifications: Option<String>
§manufacturer: Option<String>
§model: Option<String>
§created: OffsetDateTime
§modified: Option<OffsetDateTime>
§typ: Option<String>
§port_comms: Option<u16>
§properties: Option<HashMap<String, String>>
Trait Implementations§
Source§impl Clone for SiteHardware
impl Clone for SiteHardware
Source§fn clone(&self) -> SiteHardware
fn clone(&self) -> SiteHardware
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 SiteHardware
impl Debug for SiteHardware
Source§impl<'de> Deserialize<'de> for SiteHardware
impl<'de> Deserialize<'de> for SiteHardware
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SiteHardware, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SiteHardware, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SiteHardware
impl PartialEq for SiteHardware
Source§impl Serialize for SiteHardware
impl Serialize for SiteHardware
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SiteHardware
impl StructuralPartialEq for SiteHardware
Auto Trait Implementations§
impl Freeze for SiteHardware
impl RefUnwindSafe for SiteHardware
impl Send for SiteHardware
impl Sync for SiteHardware
impl Unpin for SiteHardware
impl UnwindSafe for SiteHardware
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.