pub struct PowerPanel {Show 17 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub panel_type: Option<Box<PowerPanelPanelType>>,
pub power_path: Option<Box<PowerFeedPowerPath>>,
pub power_feed_count: Option<i32>,
pub name: String,
pub breaker_position_count: Option<Option<i32>>,
pub location: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub rack_group: 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
PowerPanel : 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>§panel_type: Option<Box<PowerPanelPanelType>>§power_path: Option<Box<PowerFeedPowerPath>>§power_feed_count: Option<i32>§name: String§breaker_position_count: Option<Option<i32>>Total number of breaker positions in the panel (e.g., 42)
location: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§rack_group: 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 PowerPanel
impl PowerPanel
Sourcepub fn new(
name: String,
location: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> PowerPanel
pub fn new( name: String, location: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> PowerPanel
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 PowerPanel
impl Clone for PowerPanel
Source§fn clone(&self) -> PowerPanel
fn clone(&self) -> PowerPanel
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 PowerPanel
impl Debug for PowerPanel
Source§impl Default for PowerPanel
impl Default for PowerPanel
Source§fn default() -> PowerPanel
fn default() -> PowerPanel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PowerPanel
impl<'de> Deserialize<'de> for PowerPanel
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 PowerPanel
impl PartialEq for PowerPanel
Source§impl Serialize for PowerPanel
impl Serialize for PowerPanel
impl StructuralPartialEq for PowerPanel
Auto Trait Implementations§
impl Freeze for PowerPanel
impl RefUnwindSafe for PowerPanel
impl Send for PowerPanel
impl Sync for PowerPanel
impl Unpin for PowerPanel
impl UnsafeUnpin for PowerPanel
impl UnwindSafe for PowerPanel
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