SafeDeleteDyn

Struct SafeDeleteDyn 

Source
pub struct SafeDeleteDyn<Table> { /* private fields */ }
Expand description

A safe DELETE builder that requires a WHERE clause.

This prevents accidental deletion of all rows.

Implementations§

Source§

impl SafeDeleteDyn<NoTable>

Source

pub fn new() -> Self

Creates a new safe DELETE builder.

Source

pub fn from(self, table: &str) -> SafeDeleteDyn<HasTable>

Specifies the table to delete from.

Source§

impl SafeDeleteDyn<HasTable>

Source

pub fn where_clause(self, expr: ExprBuilder) -> SafeDeleteDynWithWhere

Adds a WHERE clause (required for SafeDeleteDyn).

Trait Implementations§

Source§

impl Default for SafeDeleteDyn<NoTable>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<Table> Freeze for SafeDeleteDyn<Table>

§

impl<Table> RefUnwindSafe for SafeDeleteDyn<Table>
where Table: RefUnwindSafe,

§

impl<Table> Send for SafeDeleteDyn<Table>
where Table: Send,

§

impl<Table> Sync for SafeDeleteDyn<Table>
where Table: Sync,

§

impl<Table> Unpin for SafeDeleteDyn<Table>
where Table: Unpin,

§

impl<Table> UnwindSafe for SafeDeleteDyn<Table>
where Table: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.