pub struct ModelMetadataBuilder { /* private fields */ }
Expand description
Builder for ModelMetadata
.
Implementations§
Source§impl ModelMetadataBuilder
impl ModelMetadataBuilder
pub fn inner(&mut self, value: TableMetadata) -> &mut Self
pub fn insert_struct(&mut self, value: Option<String>) -> &mut Self
pub fn pkey(&mut self, value: ColumnMetadata) -> &mut Self
Sourcepub fn build(&self) -> Result<ModelMetadata, ModelMetadataBuilderError>
pub fn build(&self) -> Result<ModelMetadata, ModelMetadataBuilderError>
Trait Implementations§
Source§impl Clone for ModelMetadataBuilder
impl Clone for ModelMetadataBuilder
Source§fn clone(&self) -> ModelMetadataBuilder
fn clone(&self) -> ModelMetadataBuilder
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 ModelMetadataBuilder
impl RefUnwindSafe for ModelMetadataBuilder
impl Send for ModelMetadataBuilder
impl Sync for ModelMetadataBuilder
impl Unpin for ModelMetadataBuilder
impl UnwindSafe for ModelMetadataBuilder
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