Struct data_plane_api::validate::SFixed32Rules
source · [−]pub struct SFixed32Rules {
pub const: Option<i32>,
pub lt: Option<i32>,
pub lte: Option<i32>,
pub gt: Option<i32>,
pub gte: Option<i32>,
pub in: Vec<i32>,
pub not_in: Vec<i32>,
pub ignore_empty: Option<bool>,
}
Expand description
SFixed32Rules describes the constraints applied to sfixed32
values
Fields
const: Option<i32>
Const specifies that this field must be exactly the specified value
lt: Option<i32>
Lt specifies that this field must be less than the specified value, exclusive
lte: Option<i32>
Lte specifies that this field must be less than or equal to the specified value, inclusive
gt: Option<i32>
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<i32>
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<i32>
In specifies that this field must be equal to one of the specified values
not_in: Vec<i32>
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
sourceimpl SFixed32Rules
impl SFixed32Rules
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
sourceimpl Clone for SFixed32Rules
impl Clone for SFixed32Rules
sourcefn clone(&self) -> SFixed32Rules
fn clone(&self) -> SFixed32Rules
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for SFixed32Rules
impl Debug for SFixed32Rules
sourceimpl Default for SFixed32Rules
impl Default for SFixed32Rules
sourceimpl Message for SFixed32Rules
impl Message for SFixed32Rules
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<SFixed32Rules> for SFixed32Rules
impl PartialEq<SFixed32Rules> for SFixed32Rules
sourcefn eq(&self, other: &SFixed32Rules) -> bool
fn eq(&self, other: &SFixed32Rules) -> bool
impl StructuralPartialEq for SFixed32Rules
Auto Trait Implementations
impl RefUnwindSafe for SFixed32Rules
impl Send for SFixed32Rules
impl Sync for SFixed32Rules
impl Unpin for SFixed32Rules
impl UnwindSafe for SFixed32Rules
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