Connections

Struct Connections 

Source
pub struct Connections {
Show 27 fields pub tombstone: Option<i32>, pub status: Option<String>, pub previous_status: Option<String>, pub version: Option<i32>, pub created_date: Option<String>, pub created_time: Option<String>, pub updated_date: Option<String>, pub updated_time: Option<String>, pub organization_id: Option<String>, pub created_by: Option<String>, pub updated_by: Option<String>, pub deleted_by: Option<String>, pub requested_by: Option<String>, pub tags: Vec<String>, pub id: String, pub timestamp: String, pub interface_name: Option<String>, pub hypertable_timestamp: Option<String>, pub total_packet: Option<i32>, pub total_byte: Option<i32>, pub device_id: Option<String>, pub protocol: Option<String>, pub source_ip: Option<String>, pub destination_ip: Option<String>, pub remote_ip: Option<String>, pub source_port: Option<i32>, pub destination_port: Option<i32>,
}
Expand description

Connections entity definition

Fields§

§tombstone: Option<i32>§status: Option<String>§previous_status: Option<String>§version: Option<i32>§created_date: Option<String>§created_time: Option<String>§updated_date: Option<String>§updated_time: Option<String>§organization_id: Option<String>§created_by: Option<String>§updated_by: Option<String>§deleted_by: Option<String>§requested_by: Option<String>§tags: Vec<String>§id: String§timestamp: String§interface_name: Option<String>§hypertable_timestamp: Option<String>§total_packet: Option<i32>§total_byte: Option<i32>§device_id: Option<String>§protocol: Option<String>§source_ip: Option<String>§destination_ip: Option<String>§remote_ip: Option<String>§source_port: Option<i32>§destination_port: Option<i32>

Implementations§

Source§

impl Connections

Source

pub fn tombstone(&self) -> i32

Returns the value of tombstone, or the default value if tombstone is unset.

Source

pub fn status(&self) -> &str

Returns the value of status, or the default value if status is unset.

Source

pub fn previous_status(&self) -> &str

Returns the value of previous_status, or the default value if previous_status is unset.

Source

pub fn version(&self) -> i32

Returns the value of version, or the default value if version is unset.

Source

pub fn created_date(&self) -> &str

Returns the value of created_date, or the default value if created_date is unset.

Source

pub fn created_time(&self) -> &str

Returns the value of created_time, or the default value if created_time is unset.

Source

pub fn updated_date(&self) -> &str

Returns the value of updated_date, or the default value if updated_date is unset.

Source

pub fn updated_time(&self) -> &str

Returns the value of updated_time, or the default value if updated_time is unset.

Source

pub fn organization_id(&self) -> &str

Returns the value of organization_id, or the default value if organization_id is unset.

Source

pub fn created_by(&self) -> &str

Returns the value of created_by, or the default value if created_by is unset.

Source

pub fn updated_by(&self) -> &str

Returns the value of updated_by, or the default value if updated_by is unset.

Source

pub fn deleted_by(&self) -> &str

Returns the value of deleted_by, or the default value if deleted_by is unset.

Source

pub fn requested_by(&self) -> &str

Returns the value of requested_by, or the default value if requested_by is unset.

Source

pub fn interface_name(&self) -> &str

Returns the value of interface_name, or the default value if interface_name is unset.

Source

pub fn hypertable_timestamp(&self) -> &str

Returns the value of hypertable_timestamp, or the default value if hypertable_timestamp is unset.

Source

pub fn total_packet(&self) -> i32

Returns the value of total_packet, or the default value if total_packet is unset.

Source

pub fn total_byte(&self) -> i32

Returns the value of total_byte, or the default value if total_byte is unset.

Source

pub fn device_id(&self) -> &str

Returns the value of device_id, or the default value if device_id is unset.

Source

pub fn protocol(&self) -> &str

Returns the value of protocol, or the default value if protocol is unset.

Source

pub fn source_ip(&self) -> &str

Returns the value of source_ip, or the default value if source_ip is unset.

Source

pub fn destination_ip(&self) -> &str

Returns the value of destination_ip, or the default value if destination_ip is unset.

Source

pub fn remote_ip(&self) -> &str

Returns the value of remote_ip, or the default value if remote_ip is unset.

Source

pub fn source_port(&self) -> i32

Returns the value of source_port, or the default value if source_port is unset.

Source

pub fn destination_port(&self) -> i32

Returns the value of destination_port, or the default value if destination_port is unset.

Trait Implementations§

Source§

impl Clone for Connections

Source§

fn clone(&self) -> Connections

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Connections

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Connections

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for Connections

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for Connections

Source§

fn eq(&self, other: &Connections) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Connections

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more