pub struct PatchedWritableRackRequest {Show 28 fields
pub name: Option<String>,
pub facility_id: Option<Option<String>>,
pub site: Option<Box<DeviceWithConfigContextRequestSite>>,
pub location: Option<Option<Box<DeviceWithConfigContextRequestLocation>>>,
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 comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PatchedWritableRackRequest : Adds support for custom fields and tags.
Fields§
§name: Option<String>§facility_id: Option<Option<String>>§site: Option<Box<DeviceWithConfigContextRequestSite>>§location: Option<Option<Box<DeviceWithConfigContextRequestLocation>>>§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>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedWritableRackRequest
impl PatchedWritableRackRequest
Sourcepub fn new() -> PatchedWritableRackRequest
pub fn new() -> PatchedWritableRackRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedWritableRackRequest
impl Clone for PatchedWritableRackRequest
Source§fn clone(&self) -> PatchedWritableRackRequest
fn clone(&self) -> PatchedWritableRackRequest
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 PatchedWritableRackRequest
impl Debug for PatchedWritableRackRequest
Source§impl Default for PatchedWritableRackRequest
impl Default for PatchedWritableRackRequest
Source§fn default() -> PatchedWritableRackRequest
fn default() -> PatchedWritableRackRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableRackRequest
impl<'de> Deserialize<'de> for PatchedWritableRackRequest
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
impl StructuralPartialEq for PatchedWritableRackRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableRackRequest
impl RefUnwindSafe for PatchedWritableRackRequest
impl Send for PatchedWritableRackRequest
impl Sync for PatchedWritableRackRequest
impl Unpin for PatchedWritableRackRequest
impl UnwindSafe for PatchedWritableRackRequest
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