#[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 ==
.impl StructuralPartialEq for CreateModelCardInput
Auto Trait Implementations§
impl Freeze for CreateModelCardInput
impl RefUnwindSafe for CreateModelCardInput
impl Send for CreateModelCardInput
impl Sync for CreateModelCardInput
impl Unpin for CreateModelCardInput
impl UnwindSafe for CreateModelCardInput
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