pub struct TableOptions<'a> { /* private fields */ }Expand description
Individual Options for a given table
Implementations§
Source§impl<'a> TableOptions<'a>
impl<'a> TableOptions<'a>
pub fn get_ignore(&self) -> bool
pub fn get_tsync(&self) -> bool
pub fn get_serde(&self) -> bool
pub fn get_only_necessary_derives(&self) -> bool
pub fn get_autogenerated_columns(&self) -> &[&str]
pub fn get_read_only(&self) -> bool
pub fn get_generate_impls(&self) -> bool
pub fn get_create_str(&self) -> bool
pub fn ignore(self) -> Self
pub fn tsync(self) -> Self
pub fn disable_serde(self) -> Self
pub fn only_necessary_derives(self) -> Self
pub fn autogenerated_columns(self, cols: Vec<&'a str>) -> Self
pub fn disable_impls(self) -> Self
pub fn create_str_over_string(self) -> Self
pub fn set_read_only(&mut self, bool: bool)
Sourcepub fn apply_defaults(&self, other: &TableOptions<'a>) -> Self
pub fn apply_defaults(&self, other: &TableOptions<'a>) -> Self
Fills any None properties with values from another TableConfig
Trait Implementations§
Source§impl<'a> Clone for TableOptions<'a>
impl<'a> Clone for TableOptions<'a>
Source§fn clone(&self) -> TableOptions<'a>
fn clone(&self) -> TableOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TableOptions<'a>
impl<'a> Debug for TableOptions<'a>
Source§impl<'a> Default for TableOptions<'a>
impl<'a> Default for TableOptions<'a>
Source§fn default() -> TableOptions<'a>
fn default() -> TableOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TableOptions<'a>
impl<'a> RefUnwindSafe for TableOptions<'a>
impl<'a> Send for TableOptions<'a>
impl<'a> Sync for TableOptions<'a>
impl<'a> Unpin for TableOptions<'a>
impl<'a> UnwindSafe for TableOptions<'a>
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