pub struct Fixed64Rules {
pub const: Option<u64>,
pub lt: Option<u64>,
pub lte: Option<u64>,
pub gt: Option<u64>,
pub gte: Option<u64>,
pub in: Vec<u64>,
pub not_in: Vec<u64>,
pub ignore_empty: Option<bool>,
}
Expand description
Fixed64Rules describes the constraints applied to fixed64
values
Fields§
§const: Option<u64>
Const specifies that this field must be exactly the specified value
lt: Option<u64>
Lt specifies that this field must be less than the specified value, exclusive
lte: Option<u64>
Lte specifies that this field must be less than or equal to the specified value, inclusive
gt: Option<u64>
Gt specifies that this field must be greater than the specified value, exclusive. If the value of Gt is larger than a specified Lt or Lte, the range is reversed.
gte: Option<u64>
Gte specifies that this field must be greater than or equal to the specified value, inclusive. If the value of Gte is larger than a specified Lt or Lte, the range is reversed.
in: Vec<u64>
In specifies that this field must be equal to one of the specified values
not_in: Vec<u64>
NotIn specifies that this field cannot be equal to one of the specified values
ignore_empty: Option<bool>
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
Implementations§
Source§impl Fixed64Rules
impl Fixed64Rules
Sourcepub fn ignore_empty(&self) -> bool
pub fn ignore_empty(&self) -> bool
Returns the value of ignore_empty
, or the default value if ignore_empty
is unset.
Trait Implementations§
Source§impl Clone for Fixed64Rules
impl Clone for Fixed64Rules
Source§fn clone(&self) -> Fixed64Rules
fn clone(&self) -> Fixed64Rules
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Fixed64Rules
impl Debug for Fixed64Rules
Source§impl Default for Fixed64Rules
impl Default for Fixed64Rules
Source§impl Message for Fixed64Rules
impl Message for Fixed64Rules
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.Source§impl Name for Fixed64Rules
impl Name for Fixed64Rules
Source§const NAME: &'static str = "Fixed64Rules"
const NAME: &'static str = "Fixed64Rules"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "validate"
const PACKAGE: &'static str = "validate"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for Fixed64Rules
impl PartialEq for Fixed64Rules
impl StructuralPartialEq for Fixed64Rules
Auto Trait Implementations§
impl Freeze for Fixed64Rules
impl RefUnwindSafe for Fixed64Rules
impl Send for Fixed64Rules
impl Sync for Fixed64Rules
impl Unpin for Fixed64Rules
impl UnwindSafe for Fixed64Rules
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
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>
T
in a tonic::Request