pub struct PowerPort {Show 25 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub device: Box<BriefDevice>,
pub module: Option<Option<Box<BriefModule>>>,
pub name: String,
pub label: Option<String>,
pub type: Option<Option<Box<PowerPortType>>>,
pub maximum_draw: Option<Option<i32>>,
pub allocated_draw: Option<Option<i32>>,
pub description: Option<String>,
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 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
PowerPort : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§device: Box<BriefDevice>§module: Option<Option<Box<BriefModule>>>§name: String§label: Option<String>Physical label
type: Option<Option<Box<PowerPortType>>>§maximum_draw: Option<Option<i32>>Maximum power draw (watts)
allocated_draw: Option<Option<i32>>Allocated power draw (watts)
description: Option<String>§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>§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 PowerPort
impl<'de> Deserialize<'de> for PowerPort
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 PowerPort
Auto Trait Implementations§
impl Freeze for PowerPort
impl RefUnwindSafe for PowerPort
impl Send for PowerPort
impl Sync for PowerPort
impl Unpin for PowerPort
impl UnwindSafe for PowerPort
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