pub struct PortProfileUpdate {
pub name: Option<String>,
pub mode: Option<PortMode>,
pub native_network_id: Option<String>,
pub tagged_network_ids: Option<Vec<String>>,
pub poe_mode: Option<PoeMode>,
pub speed_setting: Option<PortSpeedSetting>,
}Expand description
Desired update to a single port’s profile, as supplied by the CLI or a future TUI editor. Every field is optional – unset fields leave the existing override value untouched.
Fields§
§name: Option<String>User-facing port label.
mode: Option<PortMode>Operational mode (access / trunk / mirror).
native_network_id: Option<String>Session _id of the native (untagged) network.
tagged_network_ids: Option<Vec<String>>Session _ids of explicitly tagged networks. Some(vec![]) clears
the tagged list; None leaves it untouched.
poe_mode: Option<PoeMode>PoE configuration.
speed_setting: Option<PortSpeedSetting>Configured link speed.
Trait Implementations§
Source§impl Clone for PortProfileUpdate
impl Clone for PortProfileUpdate
Source§fn clone(&self) -> PortProfileUpdate
fn clone(&self) -> PortProfileUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PortProfileUpdate
impl Debug for PortProfileUpdate
Source§impl Default for PortProfileUpdate
impl Default for PortProfileUpdate
Source§fn default() -> PortProfileUpdate
fn default() -> PortProfileUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PortProfileUpdate
impl RefUnwindSafe for PortProfileUpdate
impl Send for PortProfileUpdate
impl Sync for PortProfileUpdate
impl Unpin for PortProfileUpdate
impl UnsafeUnpin for PortProfileUpdate
impl UnwindSafe for PortProfileUpdate
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