pub struct StatementUnit { /* private fields */ }Expand description
One preserved outer delta operation and its atomic TypeQL query sequence.
Implementations§
Source§impl StatementUnit
impl StatementUnit
Sourcepub const fn operation_index(&self) -> usize
pub const fn operation_index(&self) -> usize
Return the zero-based index of the source delta operation.
Sourcepub const fn operation_kind(&self) -> StatementOperationKind
pub const fn operation_kind(&self) -> StatementOperationKind
Return the formal operation represented by this unit.
Sourcepub const fn safety(&self) -> SafetyClass
pub const fn safety(&self) -> SafetyClass
Return the classified safety level for the operation.
Sourcepub fn affected_ids(&self) -> &[SchemaFactId]
pub fn affected_ids(&self) -> &[SchemaFactId]
Return the canonical schema fact identities affected by the unit.
Sourcepub const fn required_capabilities(&self) -> &CapabilitySet
pub const fn required_capabilities(&self) -> &CapabilitySet
Return the provider capabilities required to execute the unit.
Sourcepub fn statements(&self) -> &[TypeQlStatement]
pub fn statements(&self) -> &[TypeQlStatement]
Return the deterministic TypeQL statements in execution order.
Trait Implementations§
Source§impl Clone for StatementUnit
impl Clone for StatementUnit
Source§fn clone(&self) -> StatementUnit
fn clone(&self) -> StatementUnit
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 StatementUnit
impl Debug for StatementUnit
impl Eq for StatementUnit
Source§impl PartialEq for StatementUnit
impl PartialEq for StatementUnit
Source§impl Serialize for StatementUnit
impl Serialize for StatementUnit
impl StructuralPartialEq for StatementUnit
Auto Trait Implementations§
impl Freeze for StatementUnit
impl RefUnwindSafe for StatementUnit
impl Send for StatementUnit
impl Sync for StatementUnit
impl Unpin for StatementUnit
impl UnsafeUnpin for StatementUnit
impl UnwindSafe for StatementUnit
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