#[non_exhaustive]pub struct UpdateModelInput {
pub api_id: Option<String>,
pub content_type: Option<String>,
pub description: Option<String>,
pub model_id: Option<String>,
pub name: Option<String>,
pub schema: Option<String>,
}
Expand description
Updates a Model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.api_id: Option<String>
The API identifier.
content_type: Option<String>
The content-type for the model, for example, "application/json".
description: Option<String>
The description of the model.
model_id: Option<String>
The model ID.
name: Option<String>
The name of the model.
schema: Option<String>
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Implementations§
source§impl UpdateModelInput
impl UpdateModelInput
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The content-type for the model, for example, "application/json".
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the model.
source§impl UpdateModelInput
impl UpdateModelInput
sourcepub fn builder() -> UpdateModelInputBuilder
pub fn builder() -> UpdateModelInputBuilder
Creates a new builder-style object to manufacture UpdateModelInput
.
Trait Implementations§
source§impl Clone for UpdateModelInput
impl Clone for UpdateModelInput
source§fn clone(&self) -> UpdateModelInput
fn clone(&self) -> UpdateModelInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdateModelInput
impl Debug for UpdateModelInput
source§impl PartialEq for UpdateModelInput
impl PartialEq for UpdateModelInput
source§fn eq(&self, other: &UpdateModelInput) -> bool
fn eq(&self, other: &UpdateModelInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateModelInput
Auto Trait Implementations§
impl Freeze for UpdateModelInput
impl RefUnwindSafe for UpdateModelInput
impl Send for UpdateModelInput
impl Sync for UpdateModelInput
impl Unpin for UpdateModelInput
impl UnwindSafe for UpdateModelInput
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.