pub struct QueryTokenProjection { /* private fields */ }Expand description
Schema-only query tokens for one projected model.
Implementations§
Source§impl QueryTokenProjection
impl QueryTokenProjection
Sourcepub fn new(
type_id: TypeId,
fields: BTreeMap<OwnsFactId, FieldTokenProjection>,
roles: BTreeMap<RoleId, RoleTokenProjection>,
) -> Result<Self, Diagnostic>
pub fn new( type_id: TypeId, fields: BTreeMap<OwnsFactId, FieldTokenProjection>, roles: BTreeMap<RoleId, RoleTokenProjection>, ) -> Result<Self, Diagnostic>
Construct schema-only tokens without query-plan or invocation state.
Sourcepub fn with_target_name(self, target_name: TargetIdentifier) -> Self
pub fn with_target_name(self, target_name: TargetIdentifier) -> Self
Attach the explicit nominal type/query-token name.
Sourcepub const fn target_name(&self) -> Option<&TargetIdentifier>
pub const fn target_name(&self) -> Option<&TargetIdentifier>
Return the explicit nominal type/query-token name, when the target uses one.
Sourcepub const fn fields(&self) -> &BTreeMap<OwnsFactId, FieldTokenProjection>
pub const fn fields(&self) -> &BTreeMap<OwnsFactId, FieldTokenProjection>
Return owner-branded owned-attribute tokens.
Sourcepub const fn roles(&self) -> &BTreeMap<RoleId, RoleTokenProjection>
pub const fn roles(&self) -> &BTreeMap<RoleId, RoleTokenProjection>
Return owner-branded role tokens.
Trait Implementations§
Source§impl Clone for QueryTokenProjection
impl Clone for QueryTokenProjection
Source§fn clone(&self) -> QueryTokenProjection
fn clone(&self) -> QueryTokenProjection
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 QueryTokenProjection
impl Debug for QueryTokenProjection
impl Eq for QueryTokenProjection
Source§impl PartialEq for QueryTokenProjection
impl PartialEq for QueryTokenProjection
Source§impl Serialize for QueryTokenProjection
impl Serialize for QueryTokenProjection
impl StructuralPartialEq for QueryTokenProjection
Auto Trait Implementations§
impl Freeze for QueryTokenProjection
impl RefUnwindSafe for QueryTokenProjection
impl Send for QueryTokenProjection
impl Sync for QueryTokenProjection
impl Unpin for QueryTokenProjection
impl UnsafeUnpin for QueryTokenProjection
impl UnwindSafe for QueryTokenProjection
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