pub struct Value {
pub kind: ValueKind,
/* private fields */
}Expand description
Native representation of Geode values
Fields§
§kind: ValueKindImplementations§
Source§impl Value
impl Value
Sourcepub fn as_decimal(&self) -> Result<Decimal>
pub fn as_decimal(&self) -> Result<Decimal>
Get as decimal
Sourcepub fn as_timestamp(&self) -> Result<DateTime<Utc>>
pub fn as_timestamp(&self) -> Result<DateTime<Utc>>
Get as timestamp
Sourcepub fn to_proto_value(&self) -> Value
pub fn to_proto_value(&self) -> Value
Convert to a proto::Value for protobuf parameter encoding
Sourcepub fn to_proto_string(&self) -> String
pub fn to_proto_string(&self) -> String
Convert to a string representation for protobuf parameters
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin 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
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> 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