pub struct LldpNeighbor {
pub chassis_id: String,
pub first_seen: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
pub link_description: Option<String>,
pub link_name: String,
pub local_port: String,
pub management_ip: Vec<ManagementAddress>,
pub system_description: Option<String>,
pub system_name: Option<String>,
}Expand description
Information about LLDP advertisements from other network entities directly connected to a switch port. This structure contains both metadata about when and where the neighbor was seen, as well as the specific information the neighbor was advertising.
JSON schema
{
"description": "Information about LLDP advertisements from other
network entities directly connected to a switch port. This structure
contains both metadata about when and where the neighbor was seen, as
well as the specific information the neighbor was advertising.",
"type": "object",
"required": [
"chassis_id",
"first_seen",
"last_seen",
"link_name",
"local_port",
"management_ip"
],
"properties": {
"chassis_id": {
"description": "The LLDP chassis identifier advertised by the
neighbor",
"type": "string"
},
"first_seen": {
"description": "Initial sighting of this LldpNeighbor",
"type": "string",
"format": "date-time"
},
"last_seen": {
"description": "Most recent sighting of this LldpNeighbor",
"type": "string",
"format": "date-time"
},
"link_description": {
"description": "The LLDP link description advertised by the
neighbor",
"type": [
"string",
"null"
]
},
"link_name": {
"description": "The LLDP link name advertised by the neighbor",
"type": "string"
},
"local_port": {
"description": "The port on which the neighbor was seen",
"type": "string"
},
"management_ip": {
"description": "The LLDP management IP(s) advertised by the
neighbor",
"type": "array",
"items": {
"$ref": "#/components/schemas/ManagementAddress"
}
},
"system_description": {
"description": "The LLDP system description advertised by the
neighbor",
"type": [
"string",
"null"
]
},
"system_name": {
"description": "The LLDP system name advertised by the neighbor",
"type": [
"string",
"null"
]
}
}
}Fields§
§chassis_id: StringThe LLDP chassis identifier advertised by the neighbor
first_seen: DateTime<Utc>Initial sighting of this LldpNeighbor
last_seen: DateTime<Utc>Most recent sighting of this LldpNeighbor
link_description: Option<String>The LLDP link description advertised by the neighbor
link_name: StringThe LLDP link name advertised by the neighbor
local_port: StringThe port on which the neighbor was seen
management_ip: Vec<ManagementAddress>The LLDP management IP(s) advertised by the neighbor
system_description: Option<String>The LLDP system description advertised by the neighbor
system_name: Option<String>The LLDP system name advertised by the neighbor
Implementations§
Source§impl LldpNeighbor
impl LldpNeighbor
pub fn builder() -> LldpNeighbor
Trait Implementations§
Source§impl Clone for LldpNeighbor
impl Clone for LldpNeighbor
Source§fn clone(&self) -> LldpNeighbor
fn clone(&self) -> LldpNeighbor
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 LldpNeighbor
impl Debug for LldpNeighbor
Source§impl<'de> Deserialize<'de> for LldpNeighbor
impl<'de> Deserialize<'de> for LldpNeighbor
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 From<&LldpNeighbor> for LldpNeighbor
impl From<&LldpNeighbor> for LldpNeighbor
Source§fn from(value: &LldpNeighbor) -> Self
fn from(value: &LldpNeighbor) -> Self
Converts to this type from the input type.
Source§impl From<LldpNeighbor> for LldpNeighbor
impl From<LldpNeighbor> for LldpNeighbor
Source§fn from(value: LldpNeighbor) -> Self
fn from(value: LldpNeighbor) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for LldpNeighbor
impl JsonSchema for LldpNeighbor
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for LldpNeighbor
impl Serialize for LldpNeighbor
Source§impl TryFrom<LldpNeighbor> for LldpNeighbor
impl TryFrom<LldpNeighbor> for LldpNeighbor
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LldpNeighbor) -> Result<Self, ConversionError>
fn try_from(value: LldpNeighbor) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LldpNeighbor
impl RefUnwindSafe for LldpNeighbor
impl Send for LldpNeighbor
impl Sync for LldpNeighbor
impl Unpin for LldpNeighbor
impl UnwindSafe for LldpNeighbor
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