pub struct RackType {Show 26 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub manufacturer: Box<BriefManufacturer>,
pub model: String,
pub slug: String,
pub description: Option<String>,
pub form_factor: Option<Option<Box<RackFormFactor>>>,
pub width: Option<Box<RackWidth>>,
pub u_height: Option<i32>,
pub starting_unit: Option<i32>,
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<Box<RackOuterUnit>>>,
pub weight: Option<Option<f64>>,
pub max_weight: Option<Option<i32>>,
pub weight_unit: Option<Option<Box<DeviceTypeWeightUnit>>>,
pub mounting_depth: Option<Option<i32>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
RackType : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§manufacturer: Box<BriefManufacturer>§model: String§slug: String§description: Option<String>§form_factor: Option<Option<Box<RackFormFactor>>>§width: Option<Box<RackWidth>>§u_height: Option<i32>Height in rack units
starting_unit: Option<i32>Starting unit for rack
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<Box<RackOuterUnit>>>§weight: Option<Option<f64>>§max_weight: Option<Option<i32>>Maximum load capacity for the rack
weight_unit: Option<Option<Box<DeviceTypeWeightUnit>>>§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.
comments: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RackType
impl<'de> Deserialize<'de> for RackType
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 RackType
Auto Trait Implementations§
impl Freeze for RackType
impl RefUnwindSafe for RackType
impl Send for RackType
impl Sync for RackType
impl Unpin for RackType
impl UnwindSafe for RackType
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