pub struct PowerFeed {Show 30 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub power_panel: Box<BriefPowerPanel>,
pub rack: Option<Option<Box<BriefRack>>>,
pub name: String,
pub status: Option<Box<PowerFeedStatus>>,
pub type: Option<Box<PowerFeedType>>,
pub supply: Option<Box<PowerFeedSupply>>,
pub phase: Option<Box<PowerFeedPhase>>,
pub voltage: Option<i32>,
pub amperage: Option<i32>,
pub max_utilization: Option<i32>,
pub mark_connected: Option<bool>,
pub cable: Option<Option<Box<BriefCable>>>,
pub cable_end: Option<String>,
pub link_peers: Option<Vec<Value>>,
pub link_peers_type: Option<Option<String>>,
pub connected_endpoints: Option<Option<Vec<Value>>>,
pub connected_endpoints_type: Option<Option<String>>,
pub connected_endpoints_reachable: Option<bool>,
pub description: Option<String>,
pub tenant: Option<Option<Box<BriefTenant>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub _occupied: Option<bool>,
}Expand description
PowerFeed : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§power_panel: Box<BriefPowerPanel>§rack: Option<Option<Box<BriefRack>>>§name: String§status: Option<Box<PowerFeedStatus>>§type: Option<Box<PowerFeedType>>§supply: Option<Box<PowerFeedSupply>>§phase: Option<Box<PowerFeedPhase>>§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
cable: Option<Option<Box<BriefCable>>>§cable_end: Option<String>§link_peers: Option<Vec<Value>>§link_peers_type: Option<Option<String>>Return the type of the peer link terminations, or None.
connected_endpoints: Option<Option<Vec<Value>>>§connected_endpoints_type: Option<Option<String>>§connected_endpoints_reachable: Option<bool>§description: Option<String>§tenant: Option<Option<Box<BriefTenant>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§_occupied: Option<bool>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PowerFeed
impl<'de> Deserialize<'de> for PowerFeed
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
impl StructuralPartialEq for PowerFeed
Auto Trait Implementations§
impl Freeze for PowerFeed
impl RefUnwindSafe for PowerFeed
impl Send for PowerFeed
impl Sync for PowerFeed
impl Unpin for PowerFeed
impl UnwindSafe for PowerFeed
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