pub struct DeviceType {Show 21 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub subdevice_role: Option<Box<DeviceTypeSubdeviceRole>>,
pub front_image: Option<Option<String>>,
pub rear_image: Option<Option<String>>,
pub device_count: Option<i32>,
pub model: String,
pub part_number: Option<String>,
pub u_height: Option<i32>,
pub is_full_depth: Option<bool>,
pub comments: Option<String>,
pub manufacturer: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub device_family: Option<Option<Box<ApprovalWorkflowUser>>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub notes_url: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
DeviceType : 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>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§subdevice_role: Option<Box<DeviceTypeSubdeviceRole>>§front_image: Option<Option<String>>§rear_image: Option<Option<String>>§device_count: Option<i32>§model: String§part_number: Option<String>Discrete part number (optional)
u_height: Option<i32>§is_full_depth: Option<bool>Device consumes both front and rear rack faces
comments: Option<String>§manufacturer: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§device_family: Option<Option<Box<ApprovalWorkflowUser>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§notes_url: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl DeviceType
impl DeviceType
Sourcepub fn new(
model: String,
manufacturer: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> DeviceType
pub fn new( model: String, manufacturer: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> DeviceType
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 DeviceType
impl Clone for DeviceType
Source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
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 DeviceType
impl Debug for DeviceType
Source§impl Default for DeviceType
impl Default for DeviceType
Source§fn default() -> DeviceType
fn default() -> DeviceType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceType
impl<'de> Deserialize<'de> for DeviceType
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 DeviceType
impl PartialEq for DeviceType
Source§impl Serialize for DeviceType
impl Serialize for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnsafeUnpin for DeviceType
impl UnwindSafe for DeviceType
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