Struct ormlite_attr::TableMetadataBuilder
source · pub struct TableMetadataBuilder { /* private fields */ }Expand description
Builder for TableMetadata.
Implementations§
source§impl TableMetadataBuilder
impl TableMetadataBuilder
pub fn table_name(&mut self, value: String) -> &mut Self
pub fn struct_name(&mut self, value: Ident) -> &mut Self
pub fn columns(&mut self, value: Vec<ColumnMetadata>) -> &mut Self
pub fn databases(&mut self, value: Vec<String>) -> &mut Self
sourcepub fn pkey(&mut self, value: Option<String>) -> &mut Self
pub fn pkey(&mut self, value: Option<String>) -> &mut Self
If you’re using this, consider whether you should be using a ModelMetadata and its pkey, which is not optional, instead.
sourcepub fn build(&self) -> Result<TableMetadata, TableMetadataBuilderError>
pub fn build(&self) -> Result<TableMetadata, TableMetadataBuilderError>
Trait Implementations§
source§impl Clone for TableMetadataBuilder
impl Clone for TableMetadataBuilder
source§fn clone(&self) -> TableMetadataBuilder
fn clone(&self) -> TableMetadataBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TableMetadataBuilder
impl Send for TableMetadataBuilder
impl Sync for TableMetadataBuilder
impl Unpin for TableMetadataBuilder
impl UnwindSafe for TableMetadataBuilder
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