pub enum Value {
Boolean(bool),
Integer(i64),
Double(f64),
Decimal(Decimal),
String(String),
Date(NaiveDate),
Datetime(NaiveDateTime),
DatetimeTZ(DateTime<TimeZone>),
Duration(Duration),
Struct(Struct, String),
}Variants§
Boolean(bool)
Integer(i64)
Double(f64)
Decimal(Decimal)
String(String)
Date(NaiveDate)
Datetime(NaiveDateTime)
DatetimeTZ(DateTime<TimeZone>)
Duration(Duration)
Struct(Struct, String)
Implementations§
Source§impl Value
impl Value
Sourcepub fn get_type_name(&self) -> &str
pub fn get_type_name(&self) -> &str
pub fn get_boolean(&self) -> Option<bool>
pub fn get_integer(&self) -> Option<i64>
pub fn get_double(&self) -> Option<f64>
pub fn get_string(&self) -> Option<&str>
pub fn get_decimal(&self) -> Option<Decimal>
pub fn get_date(&self) -> Option<NaiveDate>
pub fn get_datetime(&self) -> Option<NaiveDateTime>
pub fn get_datetime_tz(&self) -> Option<DateTime<TimeZone>>
pub fn get_duration(&self) -> Option<Duration>
pub fn get_struct(&self) -> Option<&Struct>
Trait Implementations§
Source§impl From<NaiveDateTime> for Value
impl From<NaiveDateTime> for Value
Source§fn from(value: NaiveDateTime) -> Self
fn from(value: NaiveDateTime) -> Self
Converts to this type from the input type.
Source§impl From<Value> for GivenRowEntry
impl From<Value> for GivenRowEntry
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request