Trait mz_sql::session::vars::constraints::DomainConstraint

source ·
pub trait DomainConstraint:
    Debug
    + Send
    + Sync
    + 'static {
    type Value;

    // Required method
    fn check(&self, var: &dyn Var, v: &Self::Value) -> Result<(), VarError>;
}

Required Associated Types§

Required Methods§

source

fn check(&self, var: &dyn Var, v: &Self::Value) -> Result<(), VarError>

Implementors§

source§

impl DomainConstraint for NumericNonNegNonNan

§

type Value = Decimal<mz_repr::::adt::numeric::Numeric::{constant#0}>

source§

impl<R> DomainConstraint for ByteSizeInRange<R>
where R: RangeBounds<ByteSize> + Debug + Send + Sync + 'static,

source§

impl<R> DomainConstraint for NumericInRange<R>
where R: RangeBounds<f64> + Debug + Send + Sync + 'static,

§

type Value = Decimal<mz_repr::::adt::numeric::Numeric::{constant#0}>