pub struct Schema {
pub version: Option<u32>,
pub tables: Vec<TableDef>,
pub policies: Vec<RlsPolicy>,
pub indexes: Vec<IndexDef>,
}Expand description
Schema containing all table definitions
Fields§
§version: Option<u32>Schema format version (extracted from -- qail: version=N directive)
tables: Vec<TableDef>Table definitions.
policies: Vec<RlsPolicy>RLS policies declared in the schema
indexes: Vec<IndexDef>Indexes declared in the schema
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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