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