pub struct InsertStOne<'q, S, R = ()>where
S: Database,{ /* private fields */ }Implementations§
Source§impl<'q, S, R> InsertStOne<'q, S, R>
impl<'q, S, R> InsertStOne<'q, S, R>
pub fn _build(self) -> (String, <S as HasArguments<'q>>::Arguments)
Source§impl<'q, S> InsertStOne<'q, S>where
S: Database,
impl<'q, S> InsertStOne<'q, S>where
S: Database,
pub fn returning<R>(self, returning: R) -> InsertStOne<'q, S, R>where
S: SupportReturning,
pub fn insert_struct<T>(&mut self, column: &[&'static str], value: T)where
T: IntoMutArguments<'q, S>,
pub fn insert<T>(&mut self, column: &'static str, value: T)
Trait Implementations§
Source§impl<'q, S, R> ExecuteNoCache<'q, S, ()> for InsertStOne<'q, S, R>
impl<'q, S, R> ExecuteNoCache<'q, S, ()> for InsertStOne<'q, S, R>
fn build(self) -> (String, <S as HasArguments<'q>>::Arguments)
fn execute<E>(
self,
executor: E,
) -> impl Future<Output = Result<<S as Database>::QueryResult, Error>> + Sendwhere
E: for<'e> Executor<'e, Database = S>,
fn fetch_one<E, O, F>( self, executor: E, with: F, ) -> impl Future<Output = Result<O, Error>> + Send
fn fetch_optional<E, O, F>( self, executor: E, with: F, ) -> impl Future<Output = Result<Option<O>, Error>> + Send
fn fetch_all<E, O, F>( self, executor: E, with: F, ) -> impl Future<Output = Result<Vec<O>, Error>> + Send
Source§impl<'q, S> InitStatement<()> for InsertStOne<'_, S>where
S: Database,
impl<'q, S> InitStatement<()> for InsertStOne<'_, S>where
S: Database,
type Init = &'static str
fn init( init: <InsertStOne<'_, S> as InitStatement<()>>::Init, ) -> InsertStOne<'_, S>
fn init_infer(init: Self::Init, _: PhantomData<Q>) -> Self
Auto Trait Implementations§
impl<'q, S, R> Freeze for InsertStOne<'q, S, R>
impl<'q, S, R> RefUnwindSafe for InsertStOne<'q, S, R>
impl<'q, S, R> Send for InsertStOne<'q, S, R>where
R: Send,
impl<'q, S, R> Sync for InsertStOne<'q, S, R>
impl<'q, S, R> Unpin for InsertStOne<'q, S, R>
impl<'q, S, R> UnsafeUnpin for InsertStOne<'q, S, R>
impl<'q, S, R> UnwindSafe for InsertStOne<'q, S, R>
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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