Enum ValidationType

Source
pub enum ValidationType {
Show 16 variants Integer(Criterion<i64>), IntegerFormula(Criterion<String>), Decimal(Criterion<f64>), DecimalFormula(Criterion<String>), List { values: IndexSet<String>, show_dropdown: bool, }, ListFormula { formula: String, show_dropdown: bool, }, Date(Criterion<DateTime<Utc>>), DateFormula(Criterion<String>), DateNumber(Criterion<i64>), Time(Criterion<NaiveTime>), TimeFormula(Criterion<String>), TimeNumber(Criterion<f64>), Length(Criterion<usize>), LengthFormula(Criterion<String>), CustomFormula(String), Any,
}

Variants§

§

Integer(Criterion<i64>)

Restrict cell input to whole/integer numbers only.

§

IntegerFormula(Criterion<String>)

Restrict cell input to whole/integer numbers only, using a cell reference.

§

Decimal(Criterion<f64>)

Restrict cell input to decimal numbers only.

§

DecimalFormula(Criterion<String>)

Restrict cell input to decimal numbers only, using a cell reference.

§

List

Restrict cell input to a list of strings in a dropdown.

Fields

§values: IndexSet<String>

The list of allowed values.

§show_dropdown: bool

Show the drop-down.

§

ListFormula

Restrict cell input to a list of strings in a dropdown, using a cell range.

Fields

§formula: String

A formula that yields the list of allowed values.

§show_dropdown: bool

Show the drop-down.

§

Date(Criterion<DateTime<Utc>>)

Restrict cell input to date values only.

§

DateFormula(Criterion<String>)

Restrict cell input to date values only, using a cell reference.

§

DateNumber(Criterion<i64>)

Restrict cell input to date values only, as a serial number. Undocumented.

§

Time(Criterion<NaiveTime>)

Restrict cell input to time values only.

§

TimeFormula(Criterion<String>)

Restrict cell input to time values only, using a cell reference.

§

TimeNumber(Criterion<f64>)

Restrict cell input to time values only, as a serial number. Undocumented.

§

Length(Criterion<usize>)

Restrict cell input to strings of defined length.

§

LengthFormula(Criterion<String>)

Restrict cell input to strings of defined length, using a cell reference.

§

CustomFormula(String)

Restrict cell to input controlled by a custom formula that returns a boolean value.

§

Any

Allow any type of input. Mainly only useful for pop-up messages.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.