Struct rust_query::value::Db

source ·
pub struct Db<'t, T: MyIdenT> { /* private fields */ }
Expand description

This is a dummy database column reference. If the column has a foreign key constraint, it can be dereferenced to join the table.

Implementations§

source§

impl<'a, T: HasId> Db<'a, T>

source

pub fn id(&self) -> Db<'a, i64>

Trait Implementations§

source§

impl<'t, T: MyIdenT> Clone for Db<'t, T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, T: HasId> Deref for Db<'a, T>

§

type Target = <T as Table>::Dummy<'a>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'t, T: MyIdenT> Value<'t> for Db<'t, T>

§

type Typ = T

source§

fn add<T: Value<'t>>(self, rhs: T) -> MyAdd<Self, T>

source§

fn lt(self, rhs: i32) -> MyLt<Self>

source§

fn eq<T: Value<'t, Typ = Self::Typ>>(self, rhs: T) -> MyEq<Self, T>

source§

fn unwrap_or<T: Value<'t>>(self, rhs: T) -> UnwrapOr<Self, T>
where Self: Value<'t, Typ = Option<T::Typ>>,

source§

fn is_not_null(self) -> IsNotNull<Self>

source§

impl<'t, T: MyIdenT> Copy for Db<'t, T>
where T::Info<'t>: Copy,

Auto Trait Implementations§

§

impl<'t, T> Freeze for Db<'t, T>
where <T as MyIdenT>::Info<'t>: Freeze,

§

impl<'t, T> RefUnwindSafe for Db<'t, T>
where <T as MyIdenT>::Info<'t>: RefUnwindSafe,

§

impl<'t, T> Send for Db<'t, T>
where <T as MyIdenT>::Info<'t>: Send,

§

impl<'t, T> Sync for Db<'t, T>
where <T as MyIdenT>::Info<'t>: Sync,

§

impl<'t, T> Unpin for Db<'t, T>
where <T as MyIdenT>::Info<'t>: Unpin,

§

impl<'t, T> UnwindSafe for Db<'t, T>
where <T as MyIdenT>::Info<'t>: 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.