pub struct WritableRackRequest {Show 21 fields
pub id: Option<Uuid>,
pub name: String,
pub facility_id: Option<Option<String>>,
pub serial: Option<String>,
pub asset_tag: Option<Option<String>>,
pub type: Option<Box<PatchedWritableRackRequestType>>,
pub width: Option<i32>,
pub u_height: Option<i32>,
pub desc_units: Option<bool>,
pub outer_width: Option<Option<i32>>,
pub outer_depth: Option<Option<i32>>,
pub outer_unit: Option<Box<PatchedWritableRackRequestOuterUnit>>,
pub comments: Option<String>,
pub status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub role: Option<Option<Box<ApprovalWorkflowUser>>>,
pub location: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub rack_group: Option<Option<Box<BulkWritableRackRequestRackGroup>>>,
pub tenant: Option<Option<Box<ApprovalWorkflowUser>>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
WritableRackRequest : Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Fields§
§id: Option<Uuid>§name: String§facility_id: Option<Option<String>>Locally-assigned identifier
serial: Option<String>§asset_tag: Option<Option<String>>A unique tag used to identify this rack
type: Option<Box<PatchedWritableRackRequestType>>§width: Option<i32>§u_height: Option<i32>Height in rack units
desc_units: Option<bool>Units are numbered top-to-bottom
outer_width: Option<Option<i32>>Outer dimension of rack (width)
outer_depth: Option<Option<i32>>Outer dimension of rack (depth)
outer_unit: Option<Box<PatchedWritableRackRequestOuterUnit>>§comments: Option<String>§status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§role: Option<Option<Box<ApprovalWorkflowUser>>>§location: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§rack_group: Option<Option<Box<BulkWritableRackRequestRackGroup>>>§tenant: Option<Option<Box<ApprovalWorkflowUser>>>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl WritableRackRequest
impl WritableRackRequest
Sourcepub fn new(
name: String,
status: ApprovalWorkflowStageResponseApprovalWorkflowStage,
location: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> WritableRackRequest
pub fn new( name: String, status: ApprovalWorkflowStageResponseApprovalWorkflowStage, location: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> WritableRackRequest
Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Trait Implementations§
Source§impl Clone for WritableRackRequest
impl Clone for WritableRackRequest
Source§fn clone(&self) -> WritableRackRequest
fn clone(&self) -> WritableRackRequest
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 WritableRackRequest
impl Debug for WritableRackRequest
Source§impl Default for WritableRackRequest
impl Default for WritableRackRequest
Source§fn default() -> WritableRackRequest
fn default() -> WritableRackRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritableRackRequest
impl<'de> Deserialize<'de> for WritableRackRequest
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 WritableRackRequest
impl PartialEq for WritableRackRequest
Source§impl Serialize for WritableRackRequest
impl Serialize for WritableRackRequest
impl StructuralPartialEq for WritableRackRequest
Auto Trait Implementations§
impl Freeze for WritableRackRequest
impl RefUnwindSafe for WritableRackRequest
impl Send for WritableRackRequest
impl Sync for WritableRackRequest
impl Unpin for WritableRackRequest
impl UnsafeUnpin for WritableRackRequest
impl UnwindSafe for WritableRackRequest
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