pub struct SFixed64Rules {
pub const: Option<i64>,
pub lt: Option<i64>,
pub lte: Option<i64>,
pub gt: Option<i64>,
pub gte: Option<i64>,
pub in: Vec<i64>,
pub not_in: Vec<i64>,
pub ignore_empty: Option<bool>,
}
Expand description
SFixed64Rules describes the constraints applied to sfixed64
values
Fields§
§const: Option<i64>
Const specifies that this field must be exactly the specified value
lt: Option<i64>
Lt specifies that this field must be less than the specified value, exclusive
lte: Option<i64>
Lte specifies that this field must be less than or equal to the specified value, inclusive
gt: Option<i64>
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<i64>
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<i64>
In specifies that this field must be equal to one of the specified values
not_in: Vec<i64>
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 SFixed64Rules
impl SFixed64Rules
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 SFixed64Rules
impl Clone for SFixed64Rules
Source§fn clone(&self) -> SFixed64Rules
fn clone(&self) -> SFixed64Rules
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SFixed64Rules
impl Debug for SFixed64Rules
Source§impl Default for SFixed64Rules
impl Default for SFixed64Rules
Source§impl Message for SFixed64Rules
impl Message for SFixed64Rules
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 SFixed64Rules
impl PartialEq for SFixed64Rules
Source§impl ReflectMessage for SFixed64Rules
impl ReflectMessage for SFixed64Rules
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.