pub struct ModelProjection { /* private fields */ }Expand description
All five runtime facets for one resolved schema type.
Implementations§
Source§impl ModelProjection
impl ModelProjection
Sourcepub fn new(
id: TypeId,
target_name: TargetIdentifier,
declaration: DeclarationProjection,
create: CreateProjection,
complete_read: CompleteReadProjection,
reference_read: ReferenceReadProjection,
query_tokens: QueryTokenProjection,
) -> Result<Self, Diagnostic>
pub fn new( id: TypeId, target_name: TargetIdentifier, declaration: DeclarationProjection, create: CreateProjection, complete_read: CompleteReadProjection, reference_read: ReferenceReadProjection, query_tokens: QueryTokenProjection, ) -> Result<Self, Diagnostic>
Construct and cross-check all five facets for one model.
Sourcepub const fn target_name(&self) -> &TargetIdentifier
pub const fn target_name(&self) -> &TargetIdentifier
Return the emitted nominal name.
Sourcepub const fn declaration(&self) -> &DeclarationProjection
pub const fn declaration(&self) -> &DeclarationProjection
Return the nominal declaration facet.
Sourcepub const fn create(&self) -> &CreateProjection
pub const fn create(&self) -> &CreateProjection
Return the create facet.
Sourcepub const fn complete_read(&self) -> &CompleteReadProjection
pub const fn complete_read(&self) -> &CompleteReadProjection
Return the complete-read facet.
Sourcepub const fn reference_read(&self) -> &ReferenceReadProjection
pub const fn reference_read(&self) -> &ReferenceReadProjection
Return the reference-read facet.
Sourcepub const fn query_tokens(&self) -> &QueryTokenProjection
pub const fn query_tokens(&self) -> &QueryTokenProjection
Return schema-only query tokens.
Trait Implementations§
Source§impl Clone for ModelProjection
impl Clone for ModelProjection
Source§fn clone(&self) -> ModelProjection
fn clone(&self) -> ModelProjection
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 ModelProjection
impl Debug for ModelProjection
impl Eq for ModelProjection
Source§impl PartialEq for ModelProjection
impl PartialEq for ModelProjection
Source§impl Serialize for ModelProjection
impl Serialize for ModelProjection
impl StructuralPartialEq for ModelProjection
Auto Trait Implementations§
impl Freeze for ModelProjection
impl RefUnwindSafe for ModelProjection
impl Send for ModelProjection
impl Sync for ModelProjection
impl Unpin for ModelProjection
impl UnsafeUnpin for ModelProjection
impl UnwindSafe for ModelProjection
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