pub struct Projection {
pub name: String,
pub fields: Vec<String>,
}Expand description
A model-level @projection(<name>: <field>, ...) directive (#113): a named,
compile-time-known subset of a model’s stored columns. Generates a tailored
projection struct + narrow read that materializes only PK + these fields.
The identity column is always materialized regardless of whether it appears
in fields (validation/codegen enforce this).
Fields§
§name: String§fields: Vec<String>Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Projection
impl Debug for Projection
Source§impl PartialEq for Projection
impl PartialEq for Projection
impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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