Struct Association
pub struct Association {
pub source: Box<Query>,
pub path: Path,
}Expand description
A reference to an association traversal from a source query.
Used in SourceModel::via to indicate that a model
is reached by following a relation path from another query’s results.
§Examples
ⓘ
use toasty_core::stmt::{Association, Query, Path};
let assoc = Association {
source: Box::new(Query::unit()),
path: Path::from(vec![0]),
};Fields§
§source: Box<Query>The source query whose results are the starting point.
path: PathThe field path from the source model to the target model.
Trait Implementations§
§impl Clone for Association
impl Clone for Association
§fn clone(&self) -> Association
fn clone(&self) -> Association
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 Debug for Association
impl Debug for Association
§impl PartialEq for Association
impl PartialEq for Association
impl StructuralPartialEq for Association
Auto Trait Implementations§
impl Freeze for Association
impl RefUnwindSafe for Association
impl Send for Association
impl Sync for Association
impl Unpin for Association
impl UnwindSafe for Association
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