Struct query_structure::Fields
source · pub struct Fields<'a> { /* private fields */ }
Implementations§
source§impl<'a> Fields<'a>
impl<'a> Fields<'a>
pub fn id_fields( &self ) -> Option<impl Iterator<Item = ScalarFieldRef> + Clone + 'a>
pub fn compound_id( &self ) -> Option<impl Iterator<Item = ScalarFieldRef> + Clone + '_>
pub fn updated_at(&self) -> impl Iterator<Item = ScalarFieldRef> + 'a
pub fn scalar(&self) -> impl Iterator<Item = ScalarFieldRef> + Clone + 'a
pub fn relation(&self) -> impl Iterator<Item = RelationFieldRef> + 'a
pub fn composite(&self) -> Vec<CompositeFieldRef>
pub fn non_relational(&self) -> Vec<Field>
pub fn find_from_all(&self, prisma_name: &str) -> Result<Field>
sourcepub fn find_from_non_virtual_by_db_name(&self, db_name: &str) -> Result<Field>
pub fn find_from_non_virtual_by_db_name(&self, db_name: &str) -> Result<Field>
Non-virtual: Fields actually existing on the database level, this (currently) excludes relations, which are purely virtual on a model.
pub fn find_from_scalar(&self, name: &str) -> Result<ScalarFieldRef>
pub fn find_from_relation_fields(&self, name: &str) -> Result<RelationFieldRef>
pub fn all(&self) -> impl Iterator<Item = Field> + 'a
pub fn filter_all<P>(&self, predicate: P) -> impl Iterator<Item = Field> + 'awhere P: Fn(&&Field) -> bool + 'a,
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Fields<'a>
impl<'a> Send for Fields<'a>
impl<'a> Sync for Fields<'a>
impl<'a> Unpin for Fields<'a>
impl<'a> !UnwindSafe for Fields<'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