Struct orc_rust::proto::TimestampStatistics
source · 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 copy 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<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 TimestampStatistics
impl PartialEq for TimestampStatistics
source§fn eq(&self, other: &TimestampStatistics) -> bool
fn eq(&self, other: &TimestampStatistics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 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