Struct dev_scope::shared::prelude::ModelMetadataBuilder
source · pub struct ModelMetadataBuilder { /* private fields */ }
Expand description
Builder for ModelMetadata
.
Implementations§
source§impl ModelMetadataBuilder
impl ModelMetadataBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn annotations<VALUE: Into<BTreeMap<String, String>>>( &mut self, value: VALUE ) -> &mut Self
pub fn labels<VALUE: Into<BTreeMap<String, String>>>( &mut self, value: VALUE ) -> &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 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 ModelMetadataBuilder
impl Send for ModelMetadataBuilder
impl Sync for ModelMetadataBuilder
impl Unpin for ModelMetadataBuilder
impl UnwindSafe for ModelMetadataBuilder
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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