Enum query_structure::prelude::ParentContainer
source · pub enum ParentContainer {
Model(Model),
CompositeType(CompositeType),
}
Variants§
Model(Model)
CompositeType(CompositeType)
Implementations§
source§impl ParentContainer
impl ParentContainer
pub fn internal_data_model(&self) -> InternalDataModel
pub fn as_model(&self) -> Option<Model>
pub fn as_composite(&self) -> Option<CompositeType>
pub fn name(&self) -> String
pub fn fields(&self) -> Vec<Field>
pub fn find_field(&self, prisma_name: &str) -> Option<Field>
pub fn is_composite(&self) -> bool
pub fn is_model(&self) -> bool
Trait Implementations§
source§impl Clone for ParentContainer
impl Clone for ParentContainer
source§fn clone(&self) -> ParentContainer
fn clone(&self) -> ParentContainer
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 moresource§impl Debug for ParentContainer
impl Debug for ParentContainer
source§impl From<Zipper<CompositeTypeId>> for ParentContainer
impl From<Zipper<CompositeTypeId>> for ParentContainer
source§fn from(composite: CompositeType) -> Self
fn from(composite: CompositeType) -> Self
Converts to this type from the input type.
source§impl Hash for ParentContainer
impl Hash for ParentContainer
source§impl PartialEq for ParentContainer
impl PartialEq for ParentContainer
impl Eq for ParentContainer
Auto Trait Implementations§
impl !RefUnwindSafe for ParentContainer
impl Send for ParentContainer
impl Sync for ParentContainer
impl Unpin for ParentContainer
impl !UnwindSafe for ParentContainer
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
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.