Trait Variable

Source
pub trait Variable {
    const TYPE: VariableType;
}
Expand description

Used to determine the type of a given variable that appears in an argument struct.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Variable for bool

Source§

impl Variable for f64

Source§

impl Variable for i32

Source§

impl Variable for str

Source§

impl Variable for String

Source§

const TYPE: VariableType = <str as Variable>::TYPE

Source§

impl Variable for DateTime<Utc>

Source§

impl Variable for Id

Source§

impl<T> Variable for Cow<'_, T>
where T: ?Sized + Variable + ToOwned,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Option<T>
where T: Variable,

Source§

impl<T> Variable for &T
where T: ?Sized + Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for [T]
where T: Variable,

Source§

impl<T> Variable for Box<T>
where T: Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Rc<T>
where T: Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Arc<T>
where T: Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Vec<T>
where T: Variable,

Implementors§