Struct aws_sdk_sagemaker::types::ModelPackageModelCard
source · #[non_exhaustive]pub struct ModelPackageModelCard {
pub model_card_content: Option<String>,
pub model_card_status: Option<ModelCardStatus>,
}Expand description
The model card associated with the model package. Since ModelPackageModelCard is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of ModelCard. The ModelPackageModelCard schema does not include model_package_details, and model_overview is composed of the model_creator and model_artifact properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model_card_content: Option<String>The content of the model card. The content must follow the schema described in Model Package Model Card Schema.
model_card_status: 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.
Implementations§
source§impl ModelPackageModelCard
impl ModelPackageModelCard
sourcepub fn model_card_content(&self) -> Option<&str>
pub fn model_card_content(&self) -> Option<&str>
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) -> Option<&ModelCardStatus>
pub fn 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.
source§impl ModelPackageModelCard
impl ModelPackageModelCard
sourcepub fn builder() -> ModelPackageModelCardBuilder
pub fn builder() -> ModelPackageModelCardBuilder
Creates a new builder-style object to manufacture ModelPackageModelCard.
Trait Implementations§
source§impl Clone for ModelPackageModelCard
impl Clone for ModelPackageModelCard
source§fn clone(&self) -> ModelPackageModelCard
fn clone(&self) -> ModelPackageModelCard
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ModelPackageModelCard
impl Debug for ModelPackageModelCard
source§impl PartialEq for ModelPackageModelCard
impl PartialEq for ModelPackageModelCard
source§fn eq(&self, other: &ModelPackageModelCard) -> bool
fn eq(&self, other: &ModelPackageModelCard) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ModelPackageModelCard
Auto Trait Implementations§
impl Freeze for ModelPackageModelCard
impl RefUnwindSafe for ModelPackageModelCard
impl Send for ModelPackageModelCard
impl Sync for ModelPackageModelCard
impl Unpin for ModelPackageModelCard
impl UnwindSafe for ModelPackageModelCard
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> 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