#[non_exhaustive]pub struct UpdateModelCardInput {
pub model_card_name: Option<String>,
pub content: Option<String>,
pub model_card_status: Option<ModelCardStatus>,
}
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 name of the model card to update.
content: Option<String>
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
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.
Implementations§
source§impl UpdateModelCardInput
impl UpdateModelCardInput
sourcepub fn model_card_name(&self) -> Option<&str>
pub fn model_card_name(&self) -> Option<&str>
The name of the model card to update.
sourcepub fn content(&self) -> Option<&str>
pub fn content(&self) -> Option<&str>
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
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.
source§impl UpdateModelCardInput
impl UpdateModelCardInput
sourcepub fn builder() -> UpdateModelCardInputBuilder
pub fn builder() -> UpdateModelCardInputBuilder
Creates a new builder-style object to manufacture UpdateModelCardInput
.
Trait Implementations§
source§impl Clone for UpdateModelCardInput
impl Clone for UpdateModelCardInput
source§fn clone(&self) -> UpdateModelCardInput
fn clone(&self) -> UpdateModelCardInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateModelCardInput
impl Debug for UpdateModelCardInput
source§impl PartialEq<UpdateModelCardInput> for UpdateModelCardInput
impl PartialEq<UpdateModelCardInput> for UpdateModelCardInput
source§fn eq(&self, other: &UpdateModelCardInput) -> bool
fn eq(&self, other: &UpdateModelCardInput) -> bool
self
and other
values to be equal, and is used
by ==
.