pub struct Table {
pub schema: Cow<'static, str>,
pub name: Cow<'static, str>,
pub is_rls_enabled: Option<bool>,
}Expand description
Runtime table entity for serde serialization.
Fields§
§schema: Cow<'static, str>Schema name
name: Cow<'static, str>Table name
is_rls_enabled: Option<bool>Is Row-Level Security enabled?
Implementations§
Source§impl Table
impl Table
Sourcepub fn drop_table_sql(&self) -> String
pub fn drop_table_sql(&self) -> String
Generate DROP TABLE SQL
Sourcepub fn rename_table_sql(&self, new_name: &str) -> String
pub fn rename_table_sql(&self, new_name: &str) -> String
Generate RENAME TABLE SQL
Trait Implementations§
impl Eq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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