pub struct RearPort {Show 22 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: Box<FrontPortType>,
pub color: Option<String>,
pub positions: 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 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
RearPort : 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: Box<FrontPortType>§color: Option<String>§positions: Option<i32>Number of front ports which may be mapped
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.
custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§_occupied: Option<bool>Implementations§
Source§impl RearPort
impl RearPort
Sourcepub fn new(device: BriefDevice, name: String, type: FrontPortType) -> RearPort
pub fn new(device: BriefDevice, name: String, type: FrontPortType) -> RearPort
Adds support for custom fields and tags.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RearPort
impl<'de> Deserialize<'de> for RearPort
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 RearPort
Auto Trait Implementations§
impl Freeze for RearPort
impl RefUnwindSafe for RearPort
impl Send for RearPort
impl Sync for RearPort
impl Unpin for RearPort
impl UnwindSafe for RearPort
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