pub struct ShadowTablePolicy {
pub kind: ShadowTableKind,
pub direct_dml: ShadowTableAccess,
pub schema_ddl: ShadowTableAccess,
pub module_internal_write: ShadowTableAccess,
}Expand description
Policy returned by a module when the core asks whether a table name is a shadow table of a virtual table instance.
Fields§
§kind: ShadowTableKindWhether the table is ordinary or shadow-owned.
direct_dml: ShadowTableAccessUser-authored INSERT/UPDATE/DELETE against this schema object.
schema_ddl: ShadowTableAccessUser-authored schema changes such as CREATE TRIGGER on this object.
module_internal_write: ShadowTableAccessWrites performed by the owning module while applying its own lifecycle.
Implementations§
Source§impl ShadowTablePolicy
impl ShadowTablePolicy
Sourcepub const fn owned_shadow() -> Self
pub const fn owned_shadow() -> Self
Policy for a module-owned shadow table.
Sourcepub const fn allows_direct_dml(self) -> bool
pub const fn allows_direct_dml(self) -> bool
Whether user-authored INSERT/UPDATE/DELETE should be accepted.
Sourcepub const fn allows_schema_ddl(self) -> bool
pub const fn allows_schema_ddl(self) -> bool
Whether user-authored schema DDL such as CREATE TRIGGER should be accepted.
Sourcepub const fn allows_module_internal_write(self) -> bool
pub const fn allows_module_internal_write(self) -> bool
Whether the owning module may write this object internally.
Trait Implementations§
Source§impl Clone for ShadowTablePolicy
impl Clone for ShadowTablePolicy
Source§fn clone(&self) -> ShadowTablePolicy
fn clone(&self) -> ShadowTablePolicy
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 ShadowTablePolicy
impl Debug for ShadowTablePolicy
Source§impl Default for ShadowTablePolicy
impl Default for ShadowTablePolicy
Source§impl PartialEq for ShadowTablePolicy
impl PartialEq for ShadowTablePolicy
Source§fn eq(&self, other: &ShadowTablePolicy) -> bool
fn eq(&self, other: &ShadowTablePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ShadowTablePolicy
impl Eq for ShadowTablePolicy
impl StructuralPartialEq for ShadowTablePolicy
Auto Trait Implementations§
impl Freeze for ShadowTablePolicy
impl RefUnwindSafe for ShadowTablePolicy
impl Send for ShadowTablePolicy
impl Sync for ShadowTablePolicy
impl Unpin for ShadowTablePolicy
impl UnsafeUnpin for ShadowTablePolicy
impl UnwindSafe for ShadowTablePolicy
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