Enum akita::Value [−][src]
pub enum Value {
Show 22 variants
Nil,
Bool(bool),
Tinyint(i8),
Smallint(i16),
Int(i32),
Bigint(i64),
Float(f32),
Double(f64),
BigDecimal(BigDecimal),
Blob(Vec<u8, Global>),
Char(char),
Text(String),
Json(String),
Uuid(Uuid),
Date(NaiveDate),
Time(NaiveTime),
DateTime(NaiveDateTime),
Timestamp(DateTime<Utc>),
Interval(Interval),
SerdeJson(Value),
Object(IndexMap<String, Value, RandomState>),
Array(Array),
}
Variants
Nil
Bool(bool)
Tuple Fields
0: bool
Tinyint(i8)
Tuple Fields
0: i8
Smallint(i16)
Tuple Fields
0: i16
Int(i32)
Tuple Fields
0: i32
Bigint(i64)
Tuple Fields
0: i64
Float(f32)
Tuple Fields
0: f32
Double(f64)
Tuple Fields
0: f64
BigDecimal(BigDecimal)
Tuple Fields
0: BigDecimal
Blob(Vec<u8, Global>)
Char(char)
Tuple Fields
0: char
Text(String)
Tuple Fields
0: String
Json(String)
Tuple Fields
0: String
Uuid(Uuid)
Tuple Fields
0: Uuid
Date(NaiveDate)
Tuple Fields
0: NaiveDate
Time(NaiveTime)
Tuple Fields
0: NaiveTime
DateTime(NaiveDateTime)
Tuple Fields
Timestamp(DateTime<Utc>)
Interval(Interval)
Tuple Fields
0: Interval
SerdeJson(Value)
Tuple Fields
0: Value
Object(IndexMap<String, Value, RandomState>)
Tuple Fields
0: IndexMap<String, Value, RandomState>
Array(Array)
Tuple Fields
0: Array
Implementations
pub fn get_obj_opt<T>(&'a self, s: &str) -> Result<Option<T>, AkitaDataError> where
T: FromValue,
Will take value of a column with index index
if it exists and wasn’t taken earlier then
will converts it to T
.
pub fn take_obj_raw_opt<T>(
&'a self,
index: usize
) -> Option<Result<T, AkitaDataError>> where
T: FromValue,
pub fn take_obj_raw_opt<T>(
&'a self,
index: usize
) -> Option<Result<T, AkitaDataError>> where
T: FromValue,
Will take value of a column with index index
if it exists and wasn’t taken earlier then
will attempt to convert it to T
. Unlike Row::take
, Row::take_opt
will allow you to
directly handle errors if the value could not be converted to T
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more