pub struct TableOptions<'a> { /* private fields */ }Expand description
Options for a individual 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_fns(&self) -> bool
pub fn get_create_str_type(&self) -> StringType
pub fn get_update_str_type(&self) -> StringType
pub fn get_create_bytes_type(&self) -> BytesType
pub fn get_update_bytes_type(&self) -> BytesType
pub fn get_autogenerated_columns(&self) -> &[&str]
pub fn get_readonly(&self) -> bool
pub fn get_single_model_file(&self) -> bool
pub fn ignore(self) -> Self
pub fn tsync(self) -> Self
pub fn disable_serde(self) -> Self
pub fn disable_fns(self) -> Self
pub fn single_model_file(self) -> Self
pub fn autogenerated_columns(self, cols: Vec<&'a str>) -> Self
pub fn create_str_type(self, type_: StringType) -> Self
pub fn update_str_type(self, type_: StringType) -> Self
pub fn create_bytes_type(self, type_: BytesType) -> Self
pub fn update_bytes_type(self, type_: BytesType) -> Self
pub fn set_read_only(&mut self, value: 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>
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