pub struct DcimPowerFeedsCreateRequest {Show 17 fields
pub power_panel: Box<PatchedWritablePowerFeedRequestPowerPanel>,
pub rack: Option<Option<Box<DeviceWithConfigContextRequestRack>>>,
pub name: String,
pub status: Option<Status>,
pub type: Option<RHashType>,
pub supply: Option<Supply>,
pub phase: Option<Phase>,
pub voltage: Option<i32>,
pub amperage: Option<i32>,
pub max_utilization: Option<i32>,
pub mark_connected: Option<bool>,
pub description: Option<String>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Fields§
§power_panel: Box<PatchedWritablePowerFeedRequestPowerPanel>§rack: Option<Option<Box<DeviceWithConfigContextRequestRack>>>§name: String§status: Option<Status>offline- Offline *active- Active *planned- Planned *failed- Failed
type: Option<RHashType>primary- Primary *redundant- Redundant
supply: Option<Supply>ac- AC *dc- DC
phase: Option<Phase>single-phase- Single phase *three-phase- Three-phase
voltage: Option<i32>§amperage: Option<i32>§max_utilization: Option<i32>Maximum permissible draw (percentage)
mark_connected: Option<bool>Treat as if a cable is connected
description: Option<String>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl DcimPowerFeedsCreateRequest
impl DcimPowerFeedsCreateRequest
pub fn new( power_panel: PatchedWritablePowerFeedRequestPowerPanel, name: String, ) -> DcimPowerFeedsCreateRequest
Trait Implementations§
Source§impl Clone for DcimPowerFeedsCreateRequest
impl Clone for DcimPowerFeedsCreateRequest
Source§fn clone(&self) -> DcimPowerFeedsCreateRequest
fn clone(&self) -> DcimPowerFeedsCreateRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DcimPowerFeedsCreateRequest
impl Debug for DcimPowerFeedsCreateRequest
Source§impl Default for DcimPowerFeedsCreateRequest
impl Default for DcimPowerFeedsCreateRequest
Source§fn default() -> DcimPowerFeedsCreateRequest
fn default() -> DcimPowerFeedsCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DcimPowerFeedsCreateRequest
impl<'de> Deserialize<'de> for DcimPowerFeedsCreateRequest
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 DcimPowerFeedsCreateRequest
impl PartialEq for DcimPowerFeedsCreateRequest
Source§fn eq(&self, other: &DcimPowerFeedsCreateRequest) -> bool
fn eq(&self, other: &DcimPowerFeedsCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DcimPowerFeedsCreateRequest
Auto Trait Implementations§
impl Freeze for DcimPowerFeedsCreateRequest
impl RefUnwindSafe for DcimPowerFeedsCreateRequest
impl Send for DcimPowerFeedsCreateRequest
impl Sync for DcimPowerFeedsCreateRequest
impl Unpin for DcimPowerFeedsCreateRequest
impl UnsafeUnpin for DcimPowerFeedsCreateRequest
impl UnwindSafe for DcimPowerFeedsCreateRequest
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