Struct dsync_hasezoey::TableOptions
source · 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 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
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 copy 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> 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