pub enum GivenValue {
Empty,
Boolean(bool),
Integer(i64),
Double(f64),
String(String),
Date(String),
Datetime(String),
DatetimeTz(String),
DatetimeTzExact {
local: String,
named_zone: Option<String>,
effective_offset_seconds: i32,
},
Decimal(String),
Duration {
months: u32,
days: u32,
nanos: u64,
},
}Expand description
A single value bound to a given variable, band-agnostic and serializable.
Released temporal variants retain their ISO-8601 text representation. Additive V2 variants carry exact components when text alone would erase provider semantics.
Variants§
Empty
Explicit absence for an optional given cell.
Boolean(bool)
TypeQL boolean.
Integer(i64)
TypeQL integer.
Double(f64)
TypeQL double.
String(String)
TypeQL string.
Date(String)
TypeQL date, ISO-8601 (YYYY-MM-DD).
Datetime(String)
TypeQL datetime, ISO-8601 without offset.
DatetimeTz(String)
TypeQL datetime-tz, with a fixed offset.
DatetimeTzExact
Exact V2 TypeQL datetime-tz, retaining an optional authored IANA zone
and its already-validated effective offset.
Fields
Decimal(String)
TypeQL fixed-point decimal.
Duration
Exact non-negative TypeDB duration components.
Trait Implementations§
Source§impl Clone for GivenValue
impl Clone for GivenValue
Source§fn clone(&self) -> GivenValue
fn clone(&self) -> GivenValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GivenValue
impl Debug for GivenValue
Source§impl<'de> Deserialize<'de> for GivenValue
impl<'de> Deserialize<'de> for GivenValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GivenValue
impl PartialEq for GivenValue
Source§impl Serialize for GivenValue
impl Serialize for GivenValue
impl StructuralPartialEq for GivenValue
Auto Trait Implementations§
impl Freeze for GivenValue
impl RefUnwindSafe for GivenValue
impl Send for GivenValue
impl Sync for GivenValue
impl Unpin for GivenValue
impl UnsafeUnpin for GivenValue
impl UnwindSafe for GivenValue
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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