Struct query_structure::InternalDataModel
source · pub struct InternalDataModel {
pub schema: Arc<ValidatedSchema>,
}
Fields§
§schema: Arc<ValidatedSchema>
Implementations§
source§impl InternalDataModel
impl InternalDataModel
pub fn models(&self) -> impl Iterator<Item = Model> + '_
pub fn composite_types(&self) -> impl Iterator<Item = CompositeType> + '_
pub fn relations(&self) -> impl Iterator<Item = Relation> + Clone + '_
pub fn find_enum(&self, name: &str) -> Result<InternalEnum>
pub fn find_model(&self, name: &str) -> Result<Model>
pub fn find_composite_type_by_id(&self, ctid: CompositeTypeId) -> CompositeType
pub fn find_model_by_id(&self, model_id: ModelId) -> Model
sourcepub fn fields_pointing_to_model(
&self,
model: &Model
) -> impl Iterator<Item = RelationFieldRef> + '_
pub fn fields_pointing_to_model( &self, model: &Model ) -> impl Iterator<Item = RelationFieldRef> + '_
Finds all inline relation fields pointing to the given model.
pub fn walk<I>(&self, id: I) -> Walker<'_, I>
pub fn zip<I>(self, id: I) -> Zipper<I>
Trait Implementations§
source§impl Clone for InternalDataModel
impl Clone for InternalDataModel
source§fn clone(&self) -> InternalDataModel
fn clone(&self) -> InternalDataModel
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for InternalDataModel
impl Send for InternalDataModel
impl Sync for InternalDataModel
impl Unpin for InternalDataModel
impl !UnwindSafe for InternalDataModel
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