Enum spanner_rs::Value
source · [−]pub enum Value {
Null(Type),
Bool(bool),
Int64(i64),
Float64(f64),
String(String),
Bytes(Bytes),
Json(JsValue),
Numeric(BigDecimal),
Timestamp(DateTime<Utc>),
Date(NaiveDate),
Array(Type, Vec<Value>),
Struct(Struct),
}
Expand description
An enumeration of the Cloud Spanner values for each supported data type.
Variants
Null(Type)
Represents the SQL NULL
value, with type information.
Bool(bool)
Int64(i64)
Float64(f64)
String(String)
Bytes(Bytes)
Json(JsValue)
Numeric(BigDecimal)
Timestamp(DateTime<Utc>)
Date(NaiveDate)
Array(Type, Vec<Value>)
Struct(Struct)
Implementations
sourceimpl Value
impl Value
pub fn spanner_type(&self) -> Type
Trait Implementations
sourceimpl TryFrom<Value> for SpannerValue
impl TryFrom<Value> for SpannerValue
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request