Struct microrm::query::select::SelectID

source ·
pub struct SelectID<'r, 'q, T: Entity> { /* private fields */ }

Implementations§

source§

impl<'r, 'q, T: Entity> SelectID<'r, 'q, T>

source

pub fn new(qi: &'r QueryInterface<'q>) -> Self

Trait Implementations§

source§

impl<'r, 'q, T: Entity> Filterable<'r, 'q> for SelectID<'r, 'q, T>

§

type Output = <T as Entity>::ID

§

type Table = T

source§

fn by<C: EntityColumn<Entity = Self::Table>, G: Modelable + ?Sized>( self, col: C, given: &'r G ) -> Filter<'r, 'q, Self, C, G>
where Self: Sized,

source§

fn by_id<I: EntityID<Entity = Self::Table>>( self, given: &'r I ) -> Filter<'r, 'q, Self, <Self::Table as Entity>::IDColumn, I>
where Self: Sized,

source§

fn by_op<C: EntityColumn<Entity = Self::Table>, G: Modelable + ?Sized>( self, col: C, op: CompareOp, given: &'r G ) -> Filter<'r, 'q, Self, C, G>
where Self: Sized,

source§

impl<'r, 'q, T: Entity> QueryComponent for SelectID<'r, 'q, T>

source§

fn derive(&self) -> DerivedQuery

source§

fn contribute<H: Hasher>(&self, hasher: &mut H)

source§

fn bind(&self, _stmt: &mut Statement<'_>) -> Result<usize, Error>

returns the next index to use for binding
source§

impl<'r, 'q, T: Entity> Resolvable<'r, 'q> for SelectID<'r, 'q, T>

§

type Output = <T as Entity>::ID

source§

fn qi(&self) -> &'r QueryInterface<'q>

source§

fn exec(self) -> Result<(), Error>
where Self: Sized,

source§

fn no_result(self) -> Result<(), Error>
where Self: Sized,

source§

impl<'r, 'q, T: Entity> StaticVersion for SelectID<'r, 'q, T>

§

type Is = SelectID<'static, 'static, T>

source§

fn type_id() -> TypeId

Auto Trait Implementations§

§

impl<'r, 'q, T> !RefUnwindSafe for SelectID<'r, 'q, T>

§

impl<'r, 'q, T> !Send for SelectID<'r, 'q, T>

§

impl<'r, 'q, T> !Sync for SelectID<'r, 'q, T>

§

impl<'r, 'q, T> Unpin for SelectID<'r, 'q, T>
where T: Unpin,

§

impl<'r, 'q, T> !UnwindSafe for SelectID<'r, 'q, T>

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> Same for T

§

type Output = T

Should always be Self
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.