Struct data_plane_api::validate::TimestampRules
source · [−]pub struct TimestampRules {
pub required: Option<bool>,
pub const: Option<Timestamp>,
pub lt: Option<Timestamp>,
pub lte: Option<Timestamp>,
pub gt: Option<Timestamp>,
pub gte: Option<Timestamp>,
pub lt_now: Option<bool>,
pub gt_now: Option<bool>,
pub within: Option<Duration>,
}Expand description
TimestampRules describe the constraints applied exclusively to the
google.protobuf.Timestamp well-known type
Fields
required: Option<bool>Required specifies that this field must be set
const: Option<Timestamp>Const specifies that this field must be exactly the specified value
lt: Option<Timestamp>Lt specifies that this field must be less than the specified value, exclusive
lte: Option<Timestamp>Lte specifies that this field must be less than the specified value, inclusive
gt: Option<Timestamp>Gt specifies that this field must be greater than the specified value, exclusive
gte: Option<Timestamp>Gte specifies that this field must be greater than the specified value, inclusive
lt_now: Option<bool>LtNow specifies that this must be less than the current time. LtNow can only be used with the Within rule.
gt_now: Option<bool>GtNow specifies that this must be greater than the current time. GtNow can only be used with the Within rule.
within: Option<Duration>Within specifies that this field must be within this duration of the current time. This constraint can be used alone or with the LtNow and GtNow rules.
Implementations
Trait Implementations
sourceimpl Clone for TimestampRules
impl Clone for TimestampRules
sourcefn clone(&self) -> TimestampRules
fn clone(&self) -> TimestampRules
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for TimestampRules
impl Debug for TimestampRules
sourceimpl Default for TimestampRules
impl Default for TimestampRules
sourceimpl Message for TimestampRules
impl Message for TimestampRules
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
sourcefn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresourceimpl PartialEq<TimestampRules> for TimestampRules
impl PartialEq<TimestampRules> for TimestampRules
sourcefn eq(&self, other: &TimestampRules) -> bool
fn eq(&self, other: &TimestampRules) -> bool
impl StructuralPartialEq for TimestampRules
Auto Trait Implementations
impl RefUnwindSafe for TimestampRules
impl Send for TimestampRules
impl Sync for TimestampRules
impl Unpin for TimestampRules
impl UnwindSafe for TimestampRules
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request