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§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<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
impl Eq for SelectOutput
Source§impl PartialEq for SelectOutput
impl PartialEq for SelectOutput
Source§impl Serialize for SelectOutput
impl Serialize for SelectOutput
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