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 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 moreAuto Trait Implementations§
impl Freeze for TableMetadataBuilder
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