pub enum AnalyzedResult {
Rows(Vec<Option<ColumnType>>),
Schema(RowSchema),
Command,
}Expand description
The result a statement’s analysis derives: the column types of a query or of a data-modifying statement’s RETURNING list, None where analysis derives no type, or no result for any other statement.
Variants§
Rows(Vec<Option<ColumnType>>)
Schema(RowSchema)
An analyzed output whose anonymous records retain their field descriptors.
Command
Implementations§
Source§impl AnalyzedResult
impl AnalyzedResult
pub fn column_types(&self) -> Option<&[Option<ColumnType>]>
pub fn record_fields(&self, column: usize) -> Option<&RecordFields>
Trait Implementations§
Source§impl Clone for AnalyzedResult
impl Clone for AnalyzedResult
Source§impl Debug for AnalyzedResult
impl Debug for AnalyzedResult
Source§impl PartialEq for AnalyzedResult
impl PartialEq for AnalyzedResult
impl StructuralPartialEq for AnalyzedResult
Auto Trait Implementations§
impl Freeze for AnalyzedResult
impl RefUnwindSafe for AnalyzedResult
impl Send for AnalyzedResult
impl Sync for AnalyzedResult
impl Unpin for AnalyzedResult
impl UnsafeUnpin for AnalyzedResult
impl UnwindSafe for AnalyzedResult
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> ErasedDestructor for Twhere
T: 'static,
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