#[non_exhaustive]pub struct WireEndpoint {
pub interconnect: Option<String>,
pub vlan_tag: Option<i32>,
/* private fields */
}Available on crate feature
wire-groups only.Expand description
Wire endpoints are specific Interconnect connections.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interconnect: Option<String>§vlan_tag: Option<i32>Implementations§
Source§impl WireEndpoint
impl WireEndpoint
pub fn new() -> Self
Sourcepub fn set_interconnect<T>(self, v: T) -> Self
pub fn set_interconnect<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_interconnect<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interconnect<T>(self, v: Option<T>) -> Self
Sets or clears the value of interconnect.
§Example
ⓘ
let x = WireEndpoint::new().set_or_clear_interconnect(Some("example"));
let x = WireEndpoint::new().set_or_clear_interconnect(None::<String>);Sourcepub fn set_vlan_tag<T>(self, v: T) -> Self
pub fn set_vlan_tag<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for WireEndpoint
impl Clone for WireEndpoint
Source§fn clone(&self) -> WireEndpoint
fn clone(&self) -> WireEndpoint
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 WireEndpoint
impl Debug for WireEndpoint
Source§impl Default for WireEndpoint
impl Default for WireEndpoint
Source§fn default() -> WireEndpoint
fn default() -> WireEndpoint
Returns the “default value” for a type. Read more
Source§impl Message for WireEndpoint
impl Message for WireEndpoint
Source§impl PartialEq for WireEndpoint
impl PartialEq for WireEndpoint
impl StructuralPartialEq for WireEndpoint
Auto Trait Implementations§
impl Freeze for WireEndpoint
impl RefUnwindSafe for WireEndpoint
impl Send for WireEndpoint
impl Sync for WireEndpoint
impl Unpin for WireEndpoint
impl UnwindSafe for WireEndpoint
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