pub struct InterfaceGetResponse {
pub type: i32,
pub status: Option<RpcStatus>,
pub sub_code: i32,
pub interface_object: Option<InterfaceObject>,
}
junos-23-1
only.Expand description
[brief]: Message definition for the GET RPC [detail]: This message would hold the details for only one of the interface object at any point of time. The information would be populated by the server and sent to client
Fields§
§type: i32
[brief]: Specifies the interface type that is being returned. [mandatory]:
status: Option<RpcStatus>
[brief]: RPC execution status information
sub_code: i32
[brief]: Status code returned by the backend service.
interface_object: Option<InterfaceObject>
[brief]: Information about one of the interface objects that was requested. [detail]: The information for the requested object would be populated in the below interface object. The type of the object populated would be mentioned in the InterfaceType flag above.
Implementations§
Source§impl InterfaceGetResponse
impl InterfaceGetResponse
Sourcepub fn type(&self) -> InterfaceType
pub fn type(&self) -> InterfaceType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: InterfaceType)
pub fn set_type(&mut self, value: InterfaceType)
Sets type
to the provided enum value.
Sourcepub fn sub_code(&self) -> StatusCode
pub fn sub_code(&self) -> StatusCode
Returns the enum value of sub_code
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_sub_code(&mut self, value: StatusCode)
pub fn set_sub_code(&mut self, value: StatusCode)
Sets sub_code
to the provided enum value.
Trait Implementations§
Source§impl Clone for InterfaceGetResponse
impl Clone for InterfaceGetResponse
Source§fn clone(&self) -> InterfaceGetResponse
fn clone(&self) -> InterfaceGetResponse
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InterfaceGetResponse
impl Debug for InterfaceGetResponse
Source§impl Default for InterfaceGetResponse
impl Default for InterfaceGetResponse
Source§impl Message for InterfaceGetResponse
impl Message for InterfaceGetResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
self
.Source§impl PartialEq for InterfaceGetResponse
impl PartialEq for InterfaceGetResponse
impl StructuralPartialEq for InterfaceGetResponse
Auto Trait Implementations§
impl Freeze for InterfaceGetResponse
impl RefUnwindSafe for InterfaceGetResponse
impl Send for InterfaceGetResponse
impl Sync for InterfaceGetResponse
impl Unpin for InterfaceGetResponse
impl UnwindSafe for InterfaceGetResponse
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
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>
T
in a tonic::Request