#[non_exhaustive]pub struct CreateModelCardInput {
pub model_card_name: Option<String>,
pub security_config: Option<ModelCardSecurityConfig>,
pub content: Option<String>,
pub model_card_status: Option<ModelCardStatus>,
pub tags: Option<Vec<Tag>>,
}
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_name: Option<String>
The unique name of the model card.
security_config: Option<ModelCardSecurityConfig>
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
content: Option<String>
The content of the model card. Content must be in model card JSON schema and provided as a string.
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 should be made to the model card, but it can still be exported.
Key-value pairs used to manage metadata for model cards.
Implementations§
source§impl CreateModelCardInput
impl CreateModelCardInput
sourcepub fn model_card_name(&self) -> Option<&str>
pub fn model_card_name(&self) -> Option<&str>
The unique name of the model card.
sourcepub fn security_config(&self) -> Option<&ModelCardSecurityConfig>
pub fn security_config(&self) -> Option<&ModelCardSecurityConfig>
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn content(&self) -> Option<&str>
pub fn content(&self) -> Option<&str>
The content of the model card. Content must be in model card JSON schema and provided as a string.
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 should be made to the model card, but it can still be exported.
Key-value pairs used to manage metadata for model cards.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateModelCardInput
impl CreateModelCardInput
sourcepub fn builder() -> CreateModelCardInputBuilder
pub fn builder() -> CreateModelCardInputBuilder
Creates a new builder-style object to manufacture CreateModelCardInput
.
Trait Implementations§
source§impl Clone for CreateModelCardInput
impl Clone for CreateModelCardInput
source§fn clone(&self) -> CreateModelCardInput
fn clone(&self) -> CreateModelCardInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateModelCardInput
impl Debug for CreateModelCardInput
source§impl PartialEq for CreateModelCardInput
impl PartialEq for CreateModelCardInput
source§fn eq(&self, other: &CreateModelCardInput) -> bool
fn eq(&self, other: &CreateModelCardInput) -> bool
self
and other
values to be equal, and is used
by ==
.