Struct query_structure::ast::ModelId
source · pub struct ModelId(/* private fields */);
Expand description
An opaque identifier for a model in a schema AST. Use the
schema[model_id]
syntax to resolve the id to an ast::Model
.
Implementations§
Trait Implementations§
source§impl From<ModelId> for AttributeContainer
impl From<ModelId> for AttributeContainer
source§fn from(v: ModelId) -> AttributeContainer
fn from(v: ModelId) -> AttributeContainer
Converts to this type from the input type.
source§impl Ord for ModelId
impl Ord for ModelId
source§impl PartialEq for ModelId
impl PartialEq for ModelId
source§impl PartialOrd for ModelId
impl PartialOrd for ModelId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ModelId
impl Eq for ModelId
impl StructuralEq for ModelId
impl StructuralPartialEq for ModelId
Auto Trait Implementations§
impl RefUnwindSafe for ModelId
impl Send for ModelId
impl Sync for ModelId
impl Unpin for ModelId
impl UnwindSafe for ModelId
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.