pub struct WritablePowerFeedRequest {Show 16 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 comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
WritablePowerFeedRequest : Adds support for custom fields and tags.
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>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl WritablePowerFeedRequest
impl WritablePowerFeedRequest
Sourcepub fn new(
power_panel: PatchedWritablePowerFeedRequestPowerPanel,
name: String,
) -> WritablePowerFeedRequest
pub fn new( power_panel: PatchedWritablePowerFeedRequestPowerPanel, name: String, ) -> WritablePowerFeedRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for WritablePowerFeedRequest
impl Clone for WritablePowerFeedRequest
Source§fn clone(&self) -> WritablePowerFeedRequest
fn clone(&self) -> WritablePowerFeedRequest
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 WritablePowerFeedRequest
impl Debug for WritablePowerFeedRequest
Source§impl Default for WritablePowerFeedRequest
impl Default for WritablePowerFeedRequest
Source§fn default() -> WritablePowerFeedRequest
fn default() -> WritablePowerFeedRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritablePowerFeedRequest
impl<'de> Deserialize<'de> for WritablePowerFeedRequest
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 WritablePowerFeedRequest
impl PartialEq for WritablePowerFeedRequest
Source§impl Serialize for WritablePowerFeedRequest
impl Serialize for WritablePowerFeedRequest
impl StructuralPartialEq for WritablePowerFeedRequest
Auto Trait Implementations§
impl Freeze for WritablePowerFeedRequest
impl RefUnwindSafe for WritablePowerFeedRequest
impl Send for WritablePowerFeedRequest
impl Sync for WritablePowerFeedRequest
impl Unpin for WritablePowerFeedRequest
impl UnwindSafe for WritablePowerFeedRequest
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