Struct vos_core::DecimalConstraint
source · [−]pub struct DecimalConstraint {
pub kind: DecimalKind,
pub min: Option<BigDecimal>,
pub min_inclusive: bool,
pub max: Option<BigDecimal>,
pub max_inclusive: bool,
pub info: SharedConstraint,
}Fields
kind: DecimalKindmin: Option<BigDecimal>Minimum length of utf8 string
min_inclusive: boolMinimum number of unicode characters
max: Option<BigDecimal>Maximum length of utf8 string
max_inclusive: boolMaximum number of unicode characters
info: SharedConstraintTrait Implementations
sourceimpl Clone for DecimalConstraint
impl Clone for DecimalConstraint
sourcefn clone(&self) -> DecimalConstraint
fn clone(&self) -> DecimalConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DecimalConstraint
impl Debug for DecimalConstraint
sourceimpl Default for DecimalConstraint
impl Default for DecimalConstraint
sourcefn default() -> DecimalConstraint
fn default() -> DecimalConstraint
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DecimalConstraint
impl<'de> Deserialize<'de> for DecimalConstraint
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for DecimalConstraint
impl Serialize for DecimalConstraint
Auto Trait Implementations
impl RefUnwindSafe for DecimalConstraint
impl Send for DecimalConstraint
impl Sync for DecimalConstraint
impl Unpin for DecimalConstraint
impl UnwindSafe for DecimalConstraint
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
Mutably borrows from an owned value. Read more