pub struct ColumnMetadataBuilder { /* private fields */ }
Expand description
Builder for ColumnMetadata
.
Implementations§
Source§impl ColumnMetadataBuilder
impl ColumnMetadataBuilder
Sourcepub fn column_name(&mut self, value: String) -> &mut Self
pub fn column_name(&mut self, value: String) -> &mut Self
Name of the column in the database
pub fn column_type(&mut self, value: TType) -> &mut Self
Sourcepub fn marked_primary_key(&mut self, value: bool) -> &mut Self
pub fn marked_primary_key(&mut self, value: bool) -> &mut Self
Only says whether the primary key is marked (with an attribute). Use table_metadata.primary_key to definitively know the primary key.
pub fn has_database_default(&mut self, value: bool) -> &mut Self
Sourcepub fn identifier(&mut self, value: Ident) -> &mut Self
pub fn identifier(&mut self, value: Ident) -> &mut Self
Identifier used in Rust to refer to the column
pub fn many_to_one_column_name(&mut self, value: Option<String>) -> &mut Self
pub fn many_to_many_table(&mut self, value: Option<String>) -> &mut Self
pub fn one_to_many_foreign_key( &mut self, value: Option<ForeignKey>, ) -> &mut Self
pub fn skip(&mut self, value: bool) -> &mut Self
pub fn experimental_encode_as_json(&mut self, value: bool) -> &mut Self
pub fn rust_default(&mut self, value: Option<String>) -> &mut Self
Sourcepub fn build(&self) -> Result<ColumnMetadata, ColumnMetadataBuilderError>
pub fn build(&self) -> Result<ColumnMetadata, ColumnMetadataBuilderError>
Trait Implementations§
Source§impl Clone for ColumnMetadataBuilder
impl Clone for ColumnMetadataBuilder
Source§fn clone(&self) -> ColumnMetadataBuilder
fn clone(&self) -> ColumnMetadataBuilder
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 ColumnMetadataBuilder
impl RefUnwindSafe for ColumnMetadataBuilder
impl Send for ColumnMetadataBuilder
impl Sync for ColumnMetadataBuilder
impl Unpin for ColumnMetadataBuilder
impl UnwindSafe for ColumnMetadataBuilder
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