Struct nmstate::LldpChassisId
source · #[non_exhaustive]pub struct LldpChassisId {
pub ty: LldpNeighborTlvType,
pub chassis_id: String,
pub chassis_id_type: LldpChassisIdType,
pub description: String,
}
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.ty: LldpNeighborTlvType
§chassis_id: String
§chassis_id_type: LldpChassisIdType
§description: String
Implementations§
source§impl LldpChassisId
impl LldpChassisId
pub fn new(chassis_id: String, chassis_id_type: LldpChassisIdType) -> Self
Trait Implementations§
source§impl Clone for LldpChassisId
impl Clone for LldpChassisId
source§fn clone(&self) -> LldpChassisId
fn clone(&self) -> LldpChassisId
Returns a copy 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 LldpChassisId
impl Debug for LldpChassisId
source§impl PartialEq for LldpChassisId
impl PartialEq for LldpChassisId
source§fn eq(&self, other: &LldpChassisId) -> bool
fn eq(&self, other: &LldpChassisId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LldpChassisId
impl Serialize for LldpChassisId
impl Eq for LldpChassisId
impl StructuralPartialEq for LldpChassisId
Auto Trait Implementations§
impl Freeze for LldpChassisId
impl RefUnwindSafe for LldpChassisId
impl Send for LldpChassisId
impl Sync for LldpChassisId
impl Unpin for LldpChassisId
impl UnwindSafe for LldpChassisId
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.