pub enum Value {
Show 32 variants
None {
inner: Type,
},
Boolean(bool),
Float4(OrderedF32),
Float8(OrderedF64),
Int1(i8),
Int2(i16),
Int4(i32),
Int8(i64),
Int16(i128),
Utf8(String),
Uint1(u8),
Uint2(u16),
Uint4(u32),
Uint8(u64),
Uint16(u128),
Date(Date),
DateTime(DateTime),
Time(Time),
Duration(Duration),
IdentityId(IdentityId),
Uuid4(Uuid4),
Uuid7(Uuid7),
Blob(Blob),
Int(Int),
Uint(Uint),
Decimal(Decimal),
Any(Box<Value>),
DictionaryId(DictionaryEntryId),
Type(Type),
List(Vec<Value>),
Record(Vec<(String, Value)>),
Tuple(Vec<Value>),
}Variants§
None
Boolean(bool)
Float4(OrderedF32)
Float8(OrderedF64)
Int1(i8)
Int2(i16)
Int4(i32)
Int8(i64)
Int16(i128)
Utf8(String)
Uint1(u8)
Uint2(u16)
Uint4(u32)
Uint8(u64)
Uint16(u128)
Date(Date)
DateTime(DateTime)
Time(Time)
Duration(Duration)
IdentityId(IdentityId)
Uuid4(Uuid4)
Uuid7(Uuid7)
Blob(Blob)
Int(Int)
Uint(Uint)
Decimal(Decimal)
Any(Box<Value>)
DictionaryId(DictionaryEntryId)
Type(Type)
List(Vec<Value>)
Record(Vec<(String, Value)>)
Tuple(Vec<Value>)
Implementations§
Source§impl Value
impl Value
pub fn none() -> Value
pub fn none_of(ty: Type) -> Value
pub fn bool(v: impl Into<bool>) -> Value
pub fn float4(v: impl Into<f32>) -> Value
pub fn float8(v: impl Into<f64>) -> Value
pub fn int1(v: impl Into<i8>) -> Value
pub fn int2(v: impl Into<i16>) -> Value
pub fn int4(v: impl Into<i32>) -> Value
pub fn int8(v: impl Into<i64>) -> Value
pub fn int16(v: impl Into<i128>) -> Value
pub fn utf8(v: impl Into<String>) -> Value
pub fn uint1(v: impl Into<u8>) -> Value
pub fn uint2(v: impl Into<u16>) -> Value
pub fn uint4(v: impl Into<u32>) -> Value
pub fn uint8(v: impl Into<u64>) -> Value
pub fn uint16(v: impl Into<u128>) -> Value
pub fn date(v: impl Into<Date>) -> Value
pub fn datetime(v: impl Into<DateTime>) -> Value
pub fn time(v: impl Into<Time>) -> Value
pub fn duration(v: impl Into<Duration>) -> Value
pub fn identity_id(v: impl Into<IdentityId>) -> Value
pub fn uuid4(v: impl Into<Uuid4>) -> Value
pub fn uuid7(v: impl Into<Uuid7>) -> Value
pub fn blob(v: impl Into<Blob>) -> Value
pub fn any(v: impl Into<Value>) -> Value
pub fn list(items: Vec<Value>) -> Value
pub fn record(fields: Vec<(String, Value)>) -> Value
pub fn to_usize(&self) -> Option<usize>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Value, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Value, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEncodedKey for &Value
impl IntoEncodedKey for &Value
fn into_encoded_key(self) -> EncodedKey
Source§impl IntoEncodedKey for Value
impl IntoEncodedKey for Value
fn into_encoded_key(self) -> EncodedKey
Source§impl Ord for Value
impl Ord for Value
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Value
impl PartialOrd for Value
Source§impl Serialize for Value
impl Serialize for Value
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFromValue for Value
impl TryFromValue for Value
fn try_from_value(value: &Value) -> Result<Value, FromValueError>
fn from_value(value: &Value) -> Option<Self>
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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