#[non_exhaustive]pub enum RowValue {
}Expand description
Dynamic result value. Unlike ScalarValue, this can represent SQL NULL.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
List(Vec<RowValue>)
Presentation-only list; never a PostgreSQL array bind or cursor key.
Null
Bool(bool)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Decimal(Decimal)
Text(String)
Bytes(Vec<u8>)
Date(NaiveDate)
Time(NaiveTime)
DateTime(NaiveDateTime)
Timestamp(DateTime<Utc>)
Uuid(Uuid)
Json(Value)
Implementations§
Source§impl RowValue
impl RowValue
pub fn value_type(&self) -> Option<ValueType>
Sourcepub fn to_external_text(&self) -> String
pub fn to_external_text(&self) -> String
Canonical external text used by CSV’s default formatter. JSON uses compact JSON, bytes use unpadded base64url, and timestamps use RFC 3339.
Trait Implementations§
Source§impl From<ScalarValue> for RowValue
impl From<ScalarValue> for RowValue
Source§fn from(value: ScalarValue) -> RowValue
fn from(value: ScalarValue) -> RowValue
Converts to this type from the input type.
Source§impl Serialize for RowValue
Available on crate feature serde only.
impl Serialize for RowValue
Available on crate feature
serde only.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
impl StructuralPartialEq for RowValue
Auto Trait Implementations§
impl Freeze for RowValue
impl RefUnwindSafe for RowValue
impl Send for RowValue
impl Sync for RowValue
impl Unpin for RowValue
impl UnsafeUnpin for RowValue
impl UnwindSafe for RowValue
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> 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 more