pub struct SchemaBuilder { /* private fields */ }Expand description
Collects tables and columns during .build() and reports clashes with both owners.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
Sourcepub fn table(&mut self, name: &'static str, columns: &[ColumnDef]) -> &mut Self
pub fn table(&mut self, name: &'static str, columns: &[ColumnDef]) -> &mut Self
Adds a new table owned by the current plugin.
Sourcepub fn extend(
&mut self,
table: &'static str,
columns: &[ColumnDef],
) -> &mut Self
pub fn extend( &mut self, table: &'static str, columns: &[ColumnDef], ) -> &mut Self
Adds columns to an existing table (usually user or session).
Trait Implementations§
Source§impl Debug for SchemaBuilder
impl Debug for SchemaBuilder
Auto Trait Implementations§
impl Forget for SchemaBuilder
impl Freeze for SchemaBuilder
impl Move for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnsafeUnpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
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