pub struct ConsolePort {Show 24 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<Box<ConsolePortType>>,
pub speed: Option<Option<Box<ConsolePortSpeed>>>,
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
ConsolePort : 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<Box<ConsolePortType>>§speed: Option<Option<Box<ConsolePortSpeed>>>§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§
Source§impl ConsolePort
impl ConsolePort
Sourcepub fn new(device: BriefDevice, name: String) -> ConsolePort
pub fn new(device: BriefDevice, name: String) -> ConsolePort
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for ConsolePort
impl Clone for ConsolePort
Source§fn clone(&self) -> ConsolePort
fn clone(&self) -> ConsolePort
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 ConsolePort
impl Debug for ConsolePort
Source§impl Default for ConsolePort
impl Default for ConsolePort
Source§fn default() -> ConsolePort
fn default() -> ConsolePort
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsolePort
impl<'de> Deserialize<'de> for ConsolePort
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 ConsolePort
impl PartialEq for ConsolePort
Source§impl Serialize for ConsolePort
impl Serialize for ConsolePort
impl StructuralPartialEq for ConsolePort
Auto Trait Implementations§
impl Freeze for ConsolePort
impl RefUnwindSafe for ConsolePort
impl Send for ConsolePort
impl Sync for ConsolePort
impl Unpin for ConsolePort
impl UnwindSafe for ConsolePort
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