pub struct DcimRacksCreateRequest {Show 30 fields
pub name: String,
pub facility_id: Option<Option<String>>,
pub site: Box<DeviceWithConfigContextRequestSite>,
pub location: Option<Option<Box<DeviceWithConfigContextRequestLocation>>>,
pub group: Option<Option<Box<PatchedWritableRackRequestGroup>>>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub status: Option<Status>,
pub role: Option<Option<Box<PatchedWritableRackRequestRole>>>,
pub serial: Option<String>,
pub asset_tag: Option<Option<String>>,
pub rack_type: Option<Option<Box<PatchedWritableRackRequestRackType>>>,
pub form_factor: Option<Option<FormFactor>>,
pub width: Option<i32>,
pub u_height: Option<i32>,
pub starting_unit: Option<i32>,
pub weight: Option<Option<f64>>,
pub max_weight: Option<Option<i32>>,
pub weight_unit: Option<Option<WeightUnit>>,
pub desc_units: Option<bool>,
pub outer_width: Option<Option<i32>>,
pub outer_height: Option<Option<i32>>,
pub outer_depth: Option<Option<i32>>,
pub outer_unit: Option<Option<OuterUnit>>,
pub mounting_depth: Option<Option<i32>>,
pub airflow: Option<Option<Airflow>>,
pub description: Option<String>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Fields§
§name: String§facility_id: Option<Option<String>>§site: Box<DeviceWithConfigContextRequestSite>§location: Option<Option<Box<DeviceWithConfigContextRequestLocation>>>§group: Option<Option<Box<PatchedWritableRackRequestGroup>>>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§status: Option<Status>reserved- Reserved *available- Available *planned- Planned *active- Active *deprecated- Deprecated
role: Option<Option<Box<PatchedWritableRackRequestRole>>>§serial: Option<String>§asset_tag: Option<Option<String>>A unique tag used to identify this rack
rack_type: Option<Option<Box<PatchedWritableRackRequestRackType>>>§form_factor: Option<Option<FormFactor>>2-post-frame- 2-post frame *4-post-frame- 4-post frame *4-post-cabinet- 4-post cabinet *wall-frame- Wall-mounted frame *wall-frame-vertical- Wall-mounted frame (vertical) *wall-cabinet- Wall-mounted cabinet *wall-cabinet-vertical- Wall-mounted cabinet (vertical)
width: Option<i32>Rail-to-rail width * 10 - 10 inches * 19 - 19 inches * 21 - 21 inches * 23 - 23 inches
u_height: Option<i32>Height in rack units
starting_unit: Option<i32>Starting unit for rack
weight: Option<Option<f64>>§max_weight: Option<Option<i32>>Maximum load capacity for the rack
weight_unit: Option<Option<WeightUnit>>kg- Kilograms *g- Grams *lb- Pounds *oz- Ounces
desc_units: Option<bool>Units are numbered top-to-bottom
outer_width: Option<Option<i32>>Outer dimension of rack (width)
outer_height: Option<Option<i32>>Outer dimension of rack (height)
outer_depth: Option<Option<i32>>Outer dimension of rack (depth)
outer_unit: Option<Option<OuterUnit>>mm- Millimeters *in- Inches
mounting_depth: Option<Option<i32>>Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.
airflow: Option<Option<Airflow>>front-to-rear- Front to rear *rear-to-front- Rear to front
description: Option<String>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl DcimRacksCreateRequest
impl DcimRacksCreateRequest
pub fn new( name: String, site: DeviceWithConfigContextRequestSite, ) -> DcimRacksCreateRequest
Trait Implementations§
Source§impl Clone for DcimRacksCreateRequest
impl Clone for DcimRacksCreateRequest
Source§fn clone(&self) -> DcimRacksCreateRequest
fn clone(&self) -> DcimRacksCreateRequest
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 DcimRacksCreateRequest
impl Debug for DcimRacksCreateRequest
Source§impl Default for DcimRacksCreateRequest
impl Default for DcimRacksCreateRequest
Source§fn default() -> DcimRacksCreateRequest
fn default() -> DcimRacksCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DcimRacksCreateRequest
impl<'de> Deserialize<'de> for DcimRacksCreateRequest
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 DcimRacksCreateRequest
impl PartialEq for DcimRacksCreateRequest
Source§fn eq(&self, other: &DcimRacksCreateRequest) -> bool
fn eq(&self, other: &DcimRacksCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DcimRacksCreateRequest
impl Serialize for DcimRacksCreateRequest
impl StructuralPartialEq for DcimRacksCreateRequest
Auto Trait Implementations§
impl Freeze for DcimRacksCreateRequest
impl RefUnwindSafe for DcimRacksCreateRequest
impl Send for DcimRacksCreateRequest
impl Sync for DcimRacksCreateRequest
impl Unpin for DcimRacksCreateRequest
impl UnsafeUnpin for DcimRacksCreateRequest
impl UnwindSafe for DcimRacksCreateRequest
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