#[non_exhaustive]pub struct ListLanguageModelsInput {
pub status_equals: Option<ModelStatus>,
pub name_contains: Option<String>,
pub next_token: Option<String>,
pub max_results: Option<i32>,
}
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.status_equals: Option<ModelStatus>
Returns only custom language models with the specified status. Language models are ordered by creation date, with the newest model first. If you do not include StatusEquals
, all custom language models are returned.
name_contains: Option<String>
Returns only the custom language models that contain the specified string. The search is not case sensitive.
next_token: Option<String>
If your ListLanguageModels
request returns more results than can be displayed, NextToken
is displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, including NextToken
with the value of the copied string. Repeat as needed to view all your results.
max_results: Option<i32>
The maximum number of custom language models to return in each page of results. If there are fewer results than the value that you specify, only the actual results are returned. If you do not specify a value, a default of 5 is used.
Implementations§
source§impl ListLanguageModelsInput
impl ListLanguageModelsInput
sourcepub fn status_equals(&self) -> Option<&ModelStatus>
pub fn status_equals(&self) -> Option<&ModelStatus>
Returns only custom language models with the specified status. Language models are ordered by creation date, with the newest model first. If you do not include StatusEquals
, all custom language models are returned.
sourcepub fn name_contains(&self) -> Option<&str>
pub fn name_contains(&self) -> Option<&str>
Returns only the custom language models that contain the specified string. The search is not case sensitive.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
If your ListLanguageModels
request returns more results than can be displayed, NextToken
is displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, including NextToken
with the value of the copied string. Repeat as needed to view all your results.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of custom language models to return in each page of results. If there are fewer results than the value that you specify, only the actual results are returned. If you do not specify a value, a default of 5 is used.
source§impl ListLanguageModelsInput
impl ListLanguageModelsInput
sourcepub fn builder() -> ListLanguageModelsInputBuilder
pub fn builder() -> ListLanguageModelsInputBuilder
Creates a new builder-style object to manufacture ListLanguageModelsInput
.
Trait Implementations§
source§impl Clone for ListLanguageModelsInput
impl Clone for ListLanguageModelsInput
source§fn clone(&self) -> ListLanguageModelsInput
fn clone(&self) -> ListLanguageModelsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListLanguageModelsInput
impl Debug for ListLanguageModelsInput
source§impl PartialEq for ListLanguageModelsInput
impl PartialEq for ListLanguageModelsInput
impl StructuralPartialEq for ListLanguageModelsInput
Auto Trait Implementations§
impl Freeze for ListLanguageModelsInput
impl RefUnwindSafe for ListLanguageModelsInput
impl Send for ListLanguageModelsInput
impl Sync for ListLanguageModelsInput
impl Unpin for ListLanguageModelsInput
impl UnwindSafe for ListLanguageModelsInput
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