pub struct PatchedWritablePowerFeedRequest {Show 16 fields
pub power_panel: Option<Box<PatchedWritablePowerFeedRequestPowerPanel>>,
pub rack: Option<Option<Box<DeviceWithConfigContextRequestRack>>>,
pub name: Option<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
PatchedWritablePowerFeedRequest : Adds support for custom fields and tags.
Fields§
§power_panel: Option<Box<PatchedWritablePowerFeedRequestPowerPanel>>§rack: Option<Option<Box<DeviceWithConfigContextRequestRack>>>§name: Option<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 PatchedWritablePowerFeedRequest
impl PatchedWritablePowerFeedRequest
Sourcepub fn new() -> PatchedWritablePowerFeedRequest
pub fn new() -> PatchedWritablePowerFeedRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedWritablePowerFeedRequest
impl Clone for PatchedWritablePowerFeedRequest
Source§fn clone(&self) -> PatchedWritablePowerFeedRequest
fn clone(&self) -> PatchedWritablePowerFeedRequest
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 Default for PatchedWritablePowerFeedRequest
impl Default for PatchedWritablePowerFeedRequest
Source§fn default() -> PatchedWritablePowerFeedRequest
fn default() -> PatchedWritablePowerFeedRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritablePowerFeedRequest
impl<'de> Deserialize<'de> for PatchedWritablePowerFeedRequest
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 PatchedWritablePowerFeedRequest
impl PartialEq for PatchedWritablePowerFeedRequest
Source§fn eq(&self, other: &PatchedWritablePowerFeedRequest) -> bool
fn eq(&self, other: &PatchedWritablePowerFeedRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedWritablePowerFeedRequest
Auto Trait Implementations§
impl Freeze for PatchedWritablePowerFeedRequest
impl RefUnwindSafe for PatchedWritablePowerFeedRequest
impl Send for PatchedWritablePowerFeedRequest
impl Sync for PatchedWritablePowerFeedRequest
impl Unpin for PatchedWritablePowerFeedRequest
impl UnwindSafe for PatchedWritablePowerFeedRequest
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