pub struct InterfaceAddressDelete {
pub port_name: String,
pub unit: Option<InterfaceUnit>,
pub family: i32,
pub ip_address: Option<IpAddress>,
}
Available on crate feature
junos-23-1
only.Expand description
[brief]: Message definition for the Interface address DELETE request [detail]: This message specifies the interface address object that has to be deleted.
Fields§
§port_name: String
[brief]: Port name of the interface [mandatory]:
unit: Option<InterfaceUnit>
[brief]: Unit number of the interface [mandatory]:
family: i32
[brief]: Protocol family of the interface. This could be IPv4 of IPv6 family [mandatory]:
ip_address: Option<IpAddress>
[brief]: IP address to be deleted. [detail]: This address could beIPv4 or IPv6, but it should match with the family specified above. [mandatory]:
Implementations§
Trait Implementations§
Source§impl Clone for InterfaceAddressDelete
impl Clone for InterfaceAddressDelete
Source§fn clone(&self) -> InterfaceAddressDelete
fn clone(&self) -> InterfaceAddressDelete
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterfaceAddressDelete
impl Debug for InterfaceAddressDelete
Source§impl Default for InterfaceAddressDelete
impl Default for InterfaceAddressDelete
Source§impl Message for InterfaceAddressDelete
impl Message for InterfaceAddressDelete
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for InterfaceAddressDelete
impl PartialEq for InterfaceAddressDelete
Source§fn eq(&self, other: &InterfaceAddressDelete) -> bool
fn eq(&self, other: &InterfaceAddressDelete) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InterfaceAddressDelete
Auto Trait Implementations§
impl Freeze for InterfaceAddressDelete
impl RefUnwindSafe for InterfaceAddressDelete
impl Send for InterfaceAddressDelete
impl Sync for InterfaceAddressDelete
impl Unpin for InterfaceAddressDelete
impl UnwindSafe for InterfaceAddressDelete
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request