pub type Value = Value<Object>;Expand description
A value a query or a statement carries: a PHP value (bytes, integers
distinct from floats, ordered arrays with integer and string keys,
stdClass), where objects are Objects.
Aliased Type§
pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(Str),
Array(Array<Object>),
Object(Array<Object>),
Ext(Object),
}Variants§
Null
PHP null.
Bool(bool)
A PHP bool.
Int(i64)
A PHP int.
Float(f64)
A PHP float.
Str(Str)
A PHP string, as bytes.
Array(Array<Object>)
A PHP array.
Object(Array<Object>)
A stdClass instance: its properties in order (string keys, not normalised).
Ext(Object)
An object of another class.
Trait Implementations§
Source§impl From<NullsPosition> for Value
impl From<NullsPosition> for Value
Source§fn from(nulls: NullsPosition) -> Self
fn from(nulls: NullsPosition) -> Self
The enum case.