#[non_exhaustive]pub struct ModelPackageModelCardBuilder { /* private fields */ }
Expand description
A builder for ModelPackageModelCard
.
Implementations§
source§impl ModelPackageModelCardBuilder
impl ModelPackageModelCardBuilder
sourcepub fn model_card_content(self, input: impl Into<String>) -> Self
pub fn model_card_content(self, input: impl Into<String>) -> Self
The content of the model card. The content must follow the schema described in Model Package Model Card Schema.
sourcepub fn set_model_card_content(self, input: Option<String>) -> Self
pub fn set_model_card_content(self, input: Option<String>) -> Self
The content of the model card. The content must follow the schema described in Model Package Model Card Schema.
sourcepub fn get_model_card_content(&self) -> &Option<String>
pub fn get_model_card_content(&self) -> &Option<String>
The content of the model card. The content must follow the schema described in Model Package Model Card Schema.
sourcepub fn model_card_status(self, input: ModelCardStatus) -> Self
pub fn model_card_status(self, input: ModelCardStatus) -> Self
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates can be made to the model card content. If you try to update the model card content, you will receive the messageModel Card is in Archived state
.
sourcepub fn set_model_card_status(self, input: Option<ModelCardStatus>) -> Self
pub fn set_model_card_status(self, input: Option<ModelCardStatus>) -> Self
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates can be made to the model card content. If you try to update the model card content, you will receive the messageModel Card is in Archived state
.
sourcepub fn get_model_card_status(&self) -> &Option<ModelCardStatus>
pub fn get_model_card_status(&self) -> &Option<ModelCardStatus>
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates can be made to the model card content. If you try to update the model card content, you will receive the messageModel Card is in Archived state
.
sourcepub fn build(self) -> ModelPackageModelCard
pub fn build(self) -> ModelPackageModelCard
Consumes the builder and constructs a ModelPackageModelCard
.
Trait Implementations§
source§impl Clone for ModelPackageModelCardBuilder
impl Clone for ModelPackageModelCardBuilder
source§fn clone(&self) -> ModelPackageModelCardBuilder
fn clone(&self) -> ModelPackageModelCardBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModelPackageModelCardBuilder
impl Debug for ModelPackageModelCardBuilder
source§impl Default for ModelPackageModelCardBuilder
impl Default for ModelPackageModelCardBuilder
source§fn default() -> ModelPackageModelCardBuilder
fn default() -> ModelPackageModelCardBuilder
source§impl PartialEq for ModelPackageModelCardBuilder
impl PartialEq for ModelPackageModelCardBuilder
source§fn eq(&self, other: &ModelPackageModelCardBuilder) -> bool
fn eq(&self, other: &ModelPackageModelCardBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModelPackageModelCardBuilder
Auto Trait Implementations§
impl Freeze for ModelPackageModelCardBuilder
impl RefUnwindSafe for ModelPackageModelCardBuilder
impl Send for ModelPackageModelCardBuilder
impl Sync for ModelPackageModelCardBuilder
impl Unpin for ModelPackageModelCardBuilder
impl UnwindSafe for ModelPackageModelCardBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more