pub struct Sint64Validator {
pub const_: Option<i64>,
pub lt: Option<i64>,
pub lte: Option<i64>,
pub gt: Option<i64>,
pub gte: Option<i64>,
pub in_: Option<Box<[i64]>>,
pub not_in: Option<Box<[i64]>>,
pub cel: Option<Box<[CelRule]>>,
pub required: Option<bool>,
pub ignore: Option<Ignore>,
}Expand description
A struct that can be used to generate a ProtoOption containing protovalidate rules for a protobuf sint64 field.
Fields§
§const_: Option<i64>Only this specific value will be considered valid for this field.
lt: Option<i64>This field’s value will be valid only if it is smaller than the specified amount
lte: Option<i64>This field’s value will be valid only if it is smaller than, or equal to, the specified amount
gt: Option<i64>This field’s value will be valid only if it is greater than the specified amount
gte: Option<i64>This field’s value will be valid only if it is smaller than, or equal to, the specified amount
in_: Option<Box<[i64]>>Only the values in this list will be considered valid for this field.
not_in: Option<Box<[i64]>>The values in this list will be considered invalid for this field.
cel: Option<Box<[CelRule]>>Adds custom validation using one or more CelRules to this field.
required: Option<bool>Marks the field as invalid if unset.
ignore: Option<Ignore>Implementations§
Source§impl Sint64Validator
impl Sint64Validator
Sourcepub fn builder() -> Sint64ValidatorBuilder
pub fn builder() -> Sint64ValidatorBuilder
Create an instance of Sint64Validator using the builder syntax