pub enum HydrationMode {
Object,
Array,
Scalar,
SingleScalar,
Column,
}Expand description
Hydration 填充模式
Variants§
Object
每行 → HashMap<String, Value>(默认,对象模式)
Array
每行 → Vec<Value>(按列顺序)
Scalar
每行 → Value(取第一列)
SingleScalar
唯一行 + 唯一列 → Value(聚合查询常用)
Column
每行的指定列 → Vec<Value>
Implementations§
Trait Implementations§
Source§impl Clone for HydrationMode
impl Clone for HydrationMode
Source§fn clone(&self) -> HydrationMode
fn clone(&self) -> HydrationMode
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 moreimpl Copy for HydrationMode
Source§impl Debug for HydrationMode
impl Debug for HydrationMode
Source§impl Default for HydrationMode
impl Default for HydrationMode
Source§fn default() -> HydrationMode
fn default() -> HydrationMode
Returns the “default value” for a type. Read more
impl Eq for HydrationMode
Source§impl Hash for HydrationMode
impl Hash for HydrationMode
Source§impl PartialEq for HydrationMode
impl PartialEq for HydrationMode
impl StructuralPartialEq for HydrationMode
Auto Trait Implementations§
impl Freeze for HydrationMode
impl RefUnwindSafe for HydrationMode
impl Send for HydrationMode
impl Sync for HydrationMode
impl Unpin for HydrationMode
impl UnsafeUnpin for HydrationMode
impl UnwindSafe for HydrationMode
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