Struct ProjectedField
pub struct ProjectedField<'a> {
pub field: &'a Field,
pub mapping: &'a Field,
pub path: Path,
pub nesting: usize,
}Expand description
A field resolved from an expression, including its storage mapping and scope.
Fields§
§field: &'a FieldThe application field at the end of the projection.
mapping: &'a FieldThe field’s mapping within the referenced root model.
path: PathThe schema path from the referenced root model to the field.
This path carries no query scope. Converting it to an expression with
Path::into_stmt produces a current-scope reference; callers must
preserve nesting when reconstructing an outer reference.
nesting: usizeHow many query scopes outward the root reference points.
Zero references the current scope, one references its parent, and so on.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProjectedField<'a>
impl<'a> RefUnwindSafe for ProjectedField<'a>
impl<'a> Send for ProjectedField<'a>
impl<'a> Sync for ProjectedField<'a>
impl<'a> Unpin for ProjectedField<'a>
impl<'a> UnsafeUnpin for ProjectedField<'a>
impl<'a> UnwindSafe for ProjectedField<'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