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 Hash for Fixed64Rules
impl Hash 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 PartialEq for Fixed64Rules
impl PartialEq for Fixed64Rules
Source§impl ReflectMessage for Fixed64Rules
impl ReflectMessage for Fixed64Rules
Source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
MessageDescriptor describing the type of this message.Source§fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
DynamicMessage by going
through the byte representation.