pub struct DcimDevicesCreateRequest {Show 30 fields
pub name: Option<Option<String>>,
pub device_type: Box<DeviceBayTemplateRequestDeviceType>,
pub role: Box<DeviceWithConfigContextRequestRole>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub platform: Option<Option<Box<DeviceTypeRequestDefaultPlatform>>>,
pub serial: Option<String>,
pub asset_tag: Option<Option<String>>,
pub site: Box<DeviceWithConfigContextRequestSite>,
pub location: Option<Option<Box<DeviceWithConfigContextRequestLocation>>>,
pub rack: Option<Option<Box<DeviceWithConfigContextRequestRack>>>,
pub position: Option<Option<f64>>,
pub face: Option<Option<Face>>,
pub latitude: Option<Option<f64>>,
pub longitude: Option<Option<f64>>,
pub status: Option<Status>,
pub airflow: Option<Option<Airflow>>,
pub primary_ip4: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>,
pub primary_ip6: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>,
pub oob_ip: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>,
pub cluster: Option<Option<Box<DeviceWithConfigContextRequestCluster>>>,
pub virtual_chassis: Option<Option<Box<DeviceWithConfigContextRequestVirtualChassis>>>,
pub vc_position: Option<Option<i32>>,
pub vc_priority: Option<Option<i32>>,
pub description: Option<String>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
pub config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>,
pub local_context_data: Option<Option<Value>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Fields§
§name: Option<Option<String>>§device_type: Box<DeviceBayTemplateRequestDeviceType>§role: Box<DeviceWithConfigContextRequestRole>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§platform: Option<Option<Box<DeviceTypeRequestDefaultPlatform>>>§serial: Option<String>Chassis serial number, assigned by the manufacturer
asset_tag: Option<Option<String>>A unique tag used to identify this device
site: Box<DeviceWithConfigContextRequestSite>§location: Option<Option<Box<DeviceWithConfigContextRequestLocation>>>§rack: Option<Option<Box<DeviceWithConfigContextRequestRack>>>§position: Option<Option<f64>>§face: Option<Option<Face>>front- Front *rear- Rear
latitude: Option<Option<f64>>GPS coordinate in decimal format (xx.yyyyyy)
longitude: Option<Option<f64>>GPS coordinate in decimal format (xx.yyyyyy)
status: Option<Status>offline- Offline *active- Active *planned- Planned *staged- Staged *failed- Failed *inventory- Inventory *decommissioning- Decommissioning
airflow: Option<Option<Airflow>>front-to-rear- Front to rear *rear-to-front- Rear to front *left-to-right- Left to right *right-to-left- Right to left *side-to-rear- Side to rear *rear-to-side- Rear to side *bottom-to-top- Bottom to top *top-to-bottom- Top to bottom *passive- Passive *mixed- Mixed
primary_ip4: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>§primary_ip6: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>§oob_ip: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>§cluster: Option<Option<Box<DeviceWithConfigContextRequestCluster>>>§virtual_chassis: Option<Option<Box<DeviceWithConfigContextRequestVirtualChassis>>>§vc_position: Option<Option<i32>>§vc_priority: Option<Option<i32>>Virtual chassis master election priority
description: Option<String>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>§config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>§local_context_data: Option<Option<Value>>Local config context data takes precedence over source contexts in the final rendered config context
custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl DcimDevicesCreateRequest
impl DcimDevicesCreateRequest
pub fn new( device_type: DeviceBayTemplateRequestDeviceType, role: DeviceWithConfigContextRequestRole, site: DeviceWithConfigContextRequestSite, ) -> DcimDevicesCreateRequest
Trait Implementations§
Source§impl Clone for DcimDevicesCreateRequest
impl Clone for DcimDevicesCreateRequest
Source§fn clone(&self) -> DcimDevicesCreateRequest
fn clone(&self) -> DcimDevicesCreateRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DcimDevicesCreateRequest
impl Debug for DcimDevicesCreateRequest
Source§impl Default for DcimDevicesCreateRequest
impl Default for DcimDevicesCreateRequest
Source§fn default() -> DcimDevicesCreateRequest
fn default() -> DcimDevicesCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DcimDevicesCreateRequest
impl<'de> Deserialize<'de> for DcimDevicesCreateRequest
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 DcimDevicesCreateRequest
impl PartialEq for DcimDevicesCreateRequest
Source§fn eq(&self, other: &DcimDevicesCreateRequest) -> bool
fn eq(&self, other: &DcimDevicesCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DcimDevicesCreateRequest
impl Serialize for DcimDevicesCreateRequest
impl StructuralPartialEq for DcimDevicesCreateRequest
Auto Trait Implementations§
impl Freeze for DcimDevicesCreateRequest
impl RefUnwindSafe for DcimDevicesCreateRequest
impl Send for DcimDevicesCreateRequest
impl Sync for DcimDevicesCreateRequest
impl Unpin for DcimDevicesCreateRequest
impl UnsafeUnpin for DcimDevicesCreateRequest
impl UnwindSafe for DcimDevicesCreateRequest
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