pub struct ConfigMetrics {
pub enable: Option<bool>,
pub block_profile_rate: Option<i32>,
pub listen_address: Option<String>,
pub enable_client_metrics: Option<bool>,
pub enable_notification_metrics: Option<bool>,
pub client_side_user_ids: Vec<String>,
}Fields§
§enable: Option<bool>§block_profile_rate: Option<i32>§listen_address: Option<String>§enable_client_metrics: Option<bool>§enable_notification_metrics: Option<bool>§client_side_user_ids: Vec<String>Implementations§
Source§impl ConfigMetrics
impl ConfigMetrics
Sourcepub fn enable(&self) -> bool
pub fn enable(&self) -> bool
Returns the value of enable, or the default value if enable is unset.
Sourcepub fn block_profile_rate(&self) -> i32
pub fn block_profile_rate(&self) -> i32
Returns the value of block_profile_rate, or the default value if block_profile_rate is unset.
Sourcepub fn listen_address(&self) -> &str
pub fn listen_address(&self) -> &str
Returns the value of listen_address, or the default value if listen_address is unset.
Sourcepub fn enable_client_metrics(&self) -> bool
pub fn enable_client_metrics(&self) -> bool
Returns the value of enable_client_metrics, or the default value if enable_client_metrics is unset.
Sourcepub fn enable_notification_metrics(&self) -> bool
pub fn enable_notification_metrics(&self) -> bool
Returns the value of enable_notification_metrics, or the default value if enable_notification_metrics is unset.
Trait Implementations§
Source§impl Clone for ConfigMetrics
impl Clone for ConfigMetrics
Source§fn clone(&self) -> ConfigMetrics
fn clone(&self) -> ConfigMetrics
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 ConfigMetrics
impl Debug for ConfigMetrics
Source§impl Default for ConfigMetrics
impl Default for ConfigMetrics
Source§impl<'de> Deserialize<'de> for ConfigMetrics
impl<'de> Deserialize<'de> for ConfigMetrics
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 Message for ConfigMetrics
impl Message for ConfigMetrics
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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,
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,
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,
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,
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,
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,
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 moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
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 ConfigMetrics
impl PartialEq for ConfigMetrics
Source§impl Serialize for ConfigMetrics
impl Serialize for ConfigMetrics
impl StructuralPartialEq for ConfigMetrics
Auto Trait Implementations§
impl Freeze for ConfigMetrics
impl RefUnwindSafe for ConfigMetrics
impl Send for ConfigMetrics
impl Sync for ConfigMetrics
impl Unpin for ConfigMetrics
impl UnwindSafe for ConfigMetrics
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