pub struct MySqlStatement { /* private fields */ }Available on crate feature
mysql only.Trait Implementationsยง
Sourceยงimpl Clone for MySqlStatement
impl Clone for MySqlStatement
Sourceยงfn clone(&self) -> MySqlStatement
fn clone(&self) -> MySqlStatement
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl ColumnIndex<MySqlStatement> for &str
impl ColumnIndex<MySqlStatement> for &str
Sourceยงfn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
fn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.Sourceยงimpl ColumnIndex<MySqlStatement> for usize
impl ColumnIndex<MySqlStatement> for usize
Sourceยงfn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
fn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.Sourceยงimpl Debug for MySqlStatement
impl Debug for MySqlStatement
Sourceยงimpl Statement for MySqlStatement
impl Statement for MySqlStatement
type Database = MySql
Sourceยงfn parameters(&self) -> Option<Either<&[MySqlTypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[MySqlTypeInfo], usize>>
Get the expected parameters for this statement. Read more
Sourceยงfn columns(&self) -> &[MySqlColumn]
fn columns(&self) -> &[MySqlColumn]
Get the columns expected to be returned by executing this statement.
fn query( &self, ) -> Query<'_, <MySqlStatement as Statement>::Database, MySqlArguments>
fn query_with<A>( &self, arguments: A, ) -> Query<'_, <MySqlStatement as Statement>::Database, A>
fn query_as<O>( &self, ) -> QueryAs<'_, <MySqlStatement as Statement>::Database, O, <<MySqlStatement as Statement>::Database as Database>::Arguments>
fn query_as_with<'s, O, A>(
&'s self,
arguments: A,
) -> QueryAs<'s, <MySqlStatement as Statement>::Database, O, A>where
O: for<'r> FromRow<'r, <<MySqlStatement as Statement>::Database as Database>::Row>,
A: IntoArguments<<MySqlStatement as Statement>::Database>,
fn query_scalar<O>( &self, ) -> QueryScalar<'_, <MySqlStatement as Statement>::Database, O, <<MySqlStatement as Statement>::Database as Database>::Arguments>
fn query_scalar_with<'s, O, A>(
&'s self,
arguments: A,
) -> QueryScalar<'s, <MySqlStatement as Statement>::Database, O, A>where
(O,): for<'r> FromRow<'r, <<MySqlStatement as Statement>::Database as Database>::Row>,
A: IntoArguments<<MySqlStatement 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 MySqlStatement
impl RefUnwindSafe for MySqlStatement
impl Send for MySqlStatement
impl Sync for MySqlStatement
impl Unpin for MySqlStatement
impl UnwindSafe for MySqlStatement
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