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