pub struct BgpAnnouncement {
pub address_lot_block_id: Uuid,
pub announce_set_id: Uuid,
pub network: IpNet,
}Expand description
A BGP announcement tied to an address lot block.
JSON schema
{
"description": "A BGP announcement tied to an address lot block.",
"type": "object",
"required": [
"address_lot_block_id",
"announce_set_id",
"network"
],
"properties": {
"address_lot_block_id": {
"description": "The address block the IP network being announced is
drawn from.",
"type": "string",
"format": "uuid"
},
"announce_set_id": {
"description": "The id of the set this announcement is a part of.",
"type": "string",
"format": "uuid"
},
"network": {
"description": "The IP network being announced.",
"allOf": [
{
"$ref": "#/components/schemas/IpNet"
}
]
}
}
}Fields§
§address_lot_block_id: UuidThe address block the IP network being announced is drawn from.
announce_set_id: UuidThe id of the set this announcement is a part of.
network: IpNetThe IP network being announced.
Implementations§
Source§impl BgpAnnouncement
impl BgpAnnouncement
pub fn builder() -> BgpAnnouncement
Trait Implementations§
Source§impl Clone for BgpAnnouncement
impl Clone for BgpAnnouncement
Source§fn clone(&self) -> BgpAnnouncement
fn clone(&self) -> BgpAnnouncement
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 BgpAnnouncement
impl Debug for BgpAnnouncement
Source§impl<'de> Deserialize<'de> for BgpAnnouncement
impl<'de> Deserialize<'de> for BgpAnnouncement
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<BgpAnnouncement> for BgpAnnouncement
impl From<BgpAnnouncement> for BgpAnnouncement
Source§fn from(value: BgpAnnouncement) -> Self
fn from(value: BgpAnnouncement) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for BgpAnnouncement
impl JsonSchema for BgpAnnouncement
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 BgpAnnouncement
impl Serialize for BgpAnnouncement
Source§impl TryFrom<BgpAnnouncement> for BgpAnnouncement
impl TryFrom<BgpAnnouncement> for BgpAnnouncement
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BgpAnnouncement) -> Result<Self, ConversionError>
fn try_from(value: BgpAnnouncement) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BgpAnnouncement
impl RefUnwindSafe for BgpAnnouncement
impl Send for BgpAnnouncement
impl Sync for BgpAnnouncement
impl Unpin for BgpAnnouncement
impl UnsafeUnpin for BgpAnnouncement
impl UnwindSafe for BgpAnnouncement
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