Enum ExprTarget
pub enum ExprTarget<'a> {
Free,
Model(&'a ModelRoot),
Table(&'a Table),
Source(&'a SourceTable),
}Variants§
Free
Expression does not reference any model or table.
Model(&'a ModelRoot)
Expression references a single model
Table(&'a Table)
Expression references a single table
Used primarily by database drivers
Source(&'a SourceTable)
Implementations§
§impl<'a> ExprTarget<'a>
impl<'a> ExprTarget<'a>
pub fn as_model(self) -> Option<&'a ModelRoot>
pub fn as_model_unwrap(self) -> &'a ModelRoot
pub fn model_id(self) -> Option<ModelId>
pub fn as_table_unwrap(self) -> &'a Table
Trait Implementations§
§impl<'a> Clone for ExprTarget<'a>
impl<'a> Clone for ExprTarget<'a>
§fn clone(&self) -> ExprTarget<'a>
fn clone(&self) -> ExprTarget<'a>
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 more§impl<'a> Debug for ExprTarget<'a>
impl<'a> Debug for ExprTarget<'a>
§impl<'a, T> IntoExprTarget<'a, T> for ExprTarget<'a>where
T: Resolve,
impl<'a, T> IntoExprTarget<'a, T> for ExprTarget<'a>where
T: Resolve,
fn into_expr_target(self, schema: &'a T) -> ExprTarget<'a>
impl<'a> Copy for ExprTarget<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExprTarget<'a>
impl<'a> RefUnwindSafe for ExprTarget<'a>
impl<'a> Send for ExprTarget<'a>
impl<'a> Sync for ExprTarget<'a>
impl<'a> Unpin for ExprTarget<'a>
impl<'a> UnwindSafe for ExprTarget<'a>
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