#[non_exhaustive]pub struct GetDeviceAttributes {Show 20 fields
pub description: Option<String>,
pub device_type: Option<String>,
pub integration: Option<String>,
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>
A description of the device.
device_type: Option<String>
The type of the device.
integration: Option<String>
The integration of the device.
ip_address: Option<String>
The IP address of the device.
location: Option<String>
The location of the device.
model: Option<String>
The model of the device.
name: Option<String>
The name of the device.
os_hostname: Option<String>
The operating system hostname of the device.
os_name: Option<String>
The operating system name of the device.
os_version: Option<String>
The operating system version of the device.
ping_status: Option<String>
The ping status of the device.
product_name: Option<String>
The product name of the device.
serial_number: Option<String>
The serial number of the device.
status: Option<String>
The status of the device.
subnet: Option<String>
The subnet of the device.
sys_object_id: Option<String>
The device sys_object_id
.
A list of tags associated with the device.
vendor: Option<String>
The vendor of the device.
version: Option<String>
The version of the device.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl GetDeviceAttributes
impl GetDeviceAttributes
pub fn new() -> GetDeviceAttributes
pub fn description(self, value: String) -> Self
pub fn device_type(self, value: String) -> Self
pub fn integration(self, value: String) -> 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 GetDeviceAttributes
impl Clone for GetDeviceAttributes
Source§fn clone(&self) -> GetDeviceAttributes
fn clone(&self) -> GetDeviceAttributes
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 GetDeviceAttributes
impl Debug for GetDeviceAttributes
Source§impl Default for GetDeviceAttributes
impl Default for GetDeviceAttributes
Source§impl<'de> Deserialize<'de> for GetDeviceAttributes
impl<'de> Deserialize<'de> for GetDeviceAttributes
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 GetDeviceAttributes
impl PartialEq for GetDeviceAttributes
Source§impl Serialize for GetDeviceAttributes
impl Serialize for GetDeviceAttributes
impl StructuralPartialEq for GetDeviceAttributes
Auto Trait Implementations§
impl Freeze for GetDeviceAttributes
impl RefUnwindSafe for GetDeviceAttributes
impl Send for GetDeviceAttributes
impl Sync for GetDeviceAttributes
impl Unpin for GetDeviceAttributes
impl UnwindSafe for GetDeviceAttributes
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