pub struct PropertyMetaBuilder { /* private fields */ }Expand description
Builder for configuring PropertyMeta.
Implementations§
Source§impl PropertyMetaBuilder
impl PropertyMetaBuilder
pub fn new( field_name: &'static str, type_id: TypeId, type_name: &'static str, ) -> Self
pub fn column_name(self, name: &'static str) -> Self
pub fn is_primary_key(self, v: bool) -> Self
pub fn is_auto_increment(self, v: bool) -> Self
pub fn is_sequence(self, v: bool) -> Self
pub fn sequence_name(self, name: &'static str) -> Self
pub fn is_required(self, v: bool) -> Self
pub fn is_foreign_key(self, v: bool) -> Self
pub fn is_concurrency_token(self, v: bool) -> Self
pub fn max_length(self, n: usize) -> Self
pub fn is_unique(self, v: bool) -> Self
pub fn has_index(self, v: bool) -> Self
pub fn is_not_mapped(self, v: bool) -> Self
pub fn build(self) -> PropertyMeta
Auto Trait Implementations§
impl Freeze for PropertyMetaBuilder
impl RefUnwindSafe for PropertyMetaBuilder
impl Send for PropertyMetaBuilder
impl Sync for PropertyMetaBuilder
impl Unpin for PropertyMetaBuilder
impl UnsafeUnpin for PropertyMetaBuilder
impl UnwindSafe for PropertyMetaBuilder
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