pub struct TimestampStatistics {
pub minimum: Option<i64>,
pub maximum: Option<i64>,
pub minimum_utc: Option<i64>,
pub maximum_utc: Option<i64>,
pub minimum_nanos: Option<i32>,
pub maximum_nanos: Option<i32>,
}Fields§
§minimum: Option<i64>min,max values saved as milliseconds since epoch
maximum: Option<i64>§minimum_utc: Option<i64>§maximum_utc: Option<i64>§minimum_nanos: Option<i32>store the lower 6 TS digits for min/max to achieve nanosecond precision
maximum_nanos: Option<i32>Implementations§
Source§impl TimestampStatistics
impl TimestampStatistics
Sourcepub fn minimum(&self) -> i64
pub fn minimum(&self) -> i64
Returns the value of minimum, or the default value if minimum is unset.
Sourcepub fn maximum(&self) -> i64
pub fn maximum(&self) -> i64
Returns the value of maximum, or the default value if maximum is unset.
Sourcepub fn minimum_utc(&self) -> i64
pub fn minimum_utc(&self) -> i64
Returns the value of minimum_utc, or the default value if minimum_utc is unset.
Sourcepub fn maximum_utc(&self) -> i64
pub fn maximum_utc(&self) -> i64
Returns the value of maximum_utc, or the default value if maximum_utc is unset.
Sourcepub fn minimum_nanos(&self) -> i32
pub fn minimum_nanos(&self) -> i32
Returns the value of minimum_nanos, or the default value if minimum_nanos is unset.
Sourcepub fn maximum_nanos(&self) -> i32
pub fn maximum_nanos(&self) -> i32
Returns the value of maximum_nanos, or the default value if maximum_nanos is unset.
Trait Implementations§
Source§impl Clone for TimestampStatistics
impl Clone for TimestampStatistics
Source§fn clone(&self) -> TimestampStatistics
fn clone(&self) -> TimestampStatistics
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 TimestampStatistics
impl Debug for TimestampStatistics
Source§impl Default for TimestampStatistics
impl Default for TimestampStatistics
Source§impl Message for TimestampStatistics
impl Message for TimestampStatistics
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 TimestampStatistics
impl PartialEq for TimestampStatistics
impl StructuralPartialEq for TimestampStatistics
Auto Trait Implementations§
impl Freeze for TimestampStatistics
impl RefUnwindSafe for TimestampStatistics
impl Send for TimestampStatistics
impl Sync for TimestampStatistics
impl Unpin for TimestampStatistics
impl UnsafeUnpin for TimestampStatistics
impl UnwindSafe for TimestampStatistics
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