pub enum SelectOutput {
Raw(Vec<Vec<(JoinColumnDef, Value)>>),
Joined(JoinResultSet),
}Expand description
Result of an untyped select, retaining the query’s native row representation.
Queries without joins return Self::Raw; queries with joins return
Self::Joined. Joined results store column metadata once, including
when no rows match. Use Self::iter to borrow either representation.
§Examples
Variants§
Raw(Vec<Vec<(JoinColumnDef, Value)>>)
Single-table rows containing serializable column-value pairs.
Joined(JoinResultSet)
Joined rows sharing column metadata with source table names.
Implementations§
Source§impl SelectOutput
impl SelectOutput
Sourcepub fn as_raw(&self) -> Option<&[Vec<(JoinColumnDef, Value)>]>
pub fn as_raw(&self) -> Option<&[Vec<(JoinColumnDef, Value)>]>
Borrows raw rows, or returns None for joined results.
Sourcepub fn as_joined(&self) -> Option<&JoinResultSet>
pub fn as_joined(&self) -> Option<&JoinResultSet>
Borrows the joined result set, or returns None for raw results.
Trait Implementations§
Source§impl CandidType for SelectOutput
impl CandidType for SelectOutput
Source§impl Clone for SelectOutput
impl Clone for SelectOutput
Source§fn clone(&self) -> SelectOutput
fn clone(&self) -> SelectOutput
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 SelectOutput
impl Debug for SelectOutput
Source§impl<'de> Deserialize<'de> for SelectOutput
impl<'de> Deserialize<'de> for SelectOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SelectOutput
Source§impl PartialEq for SelectOutput
impl PartialEq for SelectOutput
Source§impl Serialize for SelectOutput
impl Serialize for SelectOutput
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 SelectOutput
Auto Trait Implementations§
impl Freeze for SelectOutput
impl RefUnwindSafe for SelectOutput
impl Send for SelectOutput
impl Sync for SelectOutput
impl Unpin for SelectOutput
impl UnsafeUnpin for SelectOutput
impl UnwindSafe for SelectOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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.