#[non_exhaustive]pub struct DeviceAttributes {Show 21 fields
pub description: Option<String>,
pub device_type: Option<String>,
pub integration: Option<String>,
pub interface_statuses: Option<DeviceAttributesInterfaceStatuses>,
pub ip_address: Option<String>,
pub location: Option<String>,
pub model: Option<String>,
pub name: Option<String>,
pub os_hostname: Option<String>,
pub os_name: Option<String>,
pub os_version: Option<String>,
pub ping_status: Option<String>,
pub product_name: Option<String>,
pub serial_number: Option<String>,
pub status: Option<String>,
pub subnet: Option<String>,
pub sys_object_id: Option<String>,
pub tags: Option<Vec<String>>,
pub vendor: Option<String>,
pub version: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The device attributes
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.description: Option<String>
The device description
device_type: Option<String>
The device type
integration: Option<String>
The device integration
interface_statuses: Option<DeviceAttributesInterfaceStatuses>
Count of the device interfaces by status
ip_address: Option<String>
The device IP address
location: Option<String>
The device location
model: Option<String>
The device model
name: Option<String>
The device name
os_hostname: Option<String>
The device OS hostname
os_name: Option<String>
The device OS name
os_version: Option<String>
The device OS version
ping_status: Option<String>
The device ping status
product_name: Option<String>
The device product name
serial_number: Option<String>
The device serial number
status: Option<String>
The device SNMP status
subnet: Option<String>
The device subnet
sys_object_id: Option<String>
The device sys_object_id
The list of device tags
vendor: Option<String>
The device vendor
version: Option<String>
The device version
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl DeviceAttributes
impl DeviceAttributes
pub fn new() -> DeviceAttributes
pub fn description(self, value: String) -> Self
pub fn device_type(self, value: String) -> Self
pub fn integration(self, value: String) -> Self
pub fn interface_statuses( self, value: DeviceAttributesInterfaceStatuses, ) -> Self
pub fn ip_address(self, value: String) -> Self
pub fn location(self, value: String) -> Self
pub fn model(self, value: String) -> Self
pub fn name(self, value: String) -> Self
pub fn os_hostname(self, value: String) -> Self
pub fn os_name(self, value: String) -> Self
pub fn os_version(self, value: String) -> Self
pub fn ping_status(self, value: String) -> Self
pub fn product_name(self, value: String) -> Self
pub fn serial_number(self, value: String) -> Self
pub fn status(self, value: String) -> Self
pub fn subnet(self, value: String) -> Self
pub fn sys_object_id(self, value: String) -> Self
pub fn vendor(self, value: String) -> Self
pub fn version(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for DeviceAttributes
impl Clone for DeviceAttributes
Source§fn clone(&self) -> DeviceAttributes
fn clone(&self) -> DeviceAttributes
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 DeviceAttributes
impl Debug for DeviceAttributes
Source§impl Default for DeviceAttributes
impl Default for DeviceAttributes
Source§impl<'de> Deserialize<'de> for DeviceAttributes
impl<'de> Deserialize<'de> for DeviceAttributes
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 PartialEq for DeviceAttributes
impl PartialEq for DeviceAttributes
Source§impl Serialize for DeviceAttributes
impl Serialize for DeviceAttributes
impl StructuralPartialEq for DeviceAttributes
Auto Trait Implementations§
impl Freeze for DeviceAttributes
impl RefUnwindSafe for DeviceAttributes
impl Send for DeviceAttributes
impl Sync for DeviceAttributes
impl Unpin for DeviceAttributes
impl UnwindSafe for DeviceAttributes
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