pub struct AnyStatement { /* private fields */ }Trait Implementations§
Source§impl Clone for AnyStatement
impl Clone for AnyStatement
Source§fn clone(&self) -> AnyStatement
fn clone(&self) -> AnyStatement
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ColumnIndex<AnyStatement> for &str
impl ColumnIndex<AnyStatement> for &str
Source§fn index(&self, statement: &AnyStatement) -> Result<usize, Error>
fn index(&self, statement: &AnyStatement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.Source§impl ColumnIndex<AnyStatement> for usize
impl ColumnIndex<AnyStatement> for usize
Source§fn index(&self, statement: &AnyStatement) -> Result<usize, Error>
fn index(&self, statement: &AnyStatement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.Source§impl Statement for AnyStatement
impl Statement for AnyStatement
type Database = Any
Source§fn parameters(&self) -> Option<Either<&[AnyTypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[AnyTypeInfo], usize>>
Get the expected parameters for this statement. Read more
Source§fn columns(&self) -> &[AnyColumn]
fn columns(&self) -> &[AnyColumn]
Get the columns expected to be returned by executing this statement.
fn query( &self, ) -> Query<'_, <AnyStatement as Statement>::Database, AnyArguments>
fn query_with<A>( &self, arguments: A, ) -> Query<'_, <AnyStatement as Statement>::Database, A>
fn query_as<O>( &self, ) -> QueryAs<'_, <AnyStatement as Statement>::Database, O, <<AnyStatement as Statement>::Database as Database>::Arguments>
fn query_as_with<'s, O, A>(
&'s self,
arguments: A,
) -> QueryAs<'s, <AnyStatement as Statement>::Database, O, A>where
O: for<'r> FromRow<'r, <<AnyStatement as Statement>::Database as Database>::Row>,
A: IntoArguments<<AnyStatement as Statement>::Database>,
fn query_scalar<O>( &self, ) -> QueryScalar<'_, <AnyStatement as Statement>::Database, O, <<AnyStatement as Statement>::Database as Database>::Arguments>
fn query_scalar_with<'s, O, A>(
&'s self,
arguments: A,
) -> QueryScalar<'s, <AnyStatement as Statement>::Database, O, A>where
(O,): for<'r> FromRow<'r, <<AnyStatement as Statement>::Database as Database>::Row>,
A: IntoArguments<<AnyStatement as Statement>::Database>,
Source§fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
Gets the column information at
index. Read moreSource§fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
Gets the column information at
index or a ColumnIndexOutOfBounds error if out of bounds.Auto Trait Implementations§
impl Freeze for AnyStatement
impl RefUnwindSafe for AnyStatement
impl Send for AnyStatement
impl Sync for AnyStatement
impl Unpin for AnyStatement
impl UnwindSafe for AnyStatement
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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