#[non_exhaustive]pub struct CreateCollectionInput {
pub name: Option<String>,
pub type: Option<CollectionType>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
pub standby_replicas: Option<StandbyReplicas>,
pub client_token: Option<String>,
}
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.name: Option<String>
Name of the collection.
type: Option<CollectionType>
The type of collection.
description: Option<String>
Description of the collection.
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
standby_replicas: Option<StandbyReplicas>
Indicates whether standby replicas should be used for a collection.
client_token: Option<String>
Unique, case-sensitive identifier to ensure idempotency of the request.
Implementations§
source§impl CreateCollectionInput
impl CreateCollectionInput
sourcepub fn type(&self) -> Option<&CollectionType>
pub fn type(&self) -> Option<&CollectionType>
The type of collection.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Description of the collection.
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
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()
.
sourcepub fn standby_replicas(&self) -> Option<&StandbyReplicas>
pub fn standby_replicas(&self) -> Option<&StandbyReplicas>
Indicates whether standby replicas should be used for a collection.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier to ensure idempotency of the request.
source§impl CreateCollectionInput
impl CreateCollectionInput
sourcepub fn builder() -> CreateCollectionInputBuilder
pub fn builder() -> CreateCollectionInputBuilder
Creates a new builder-style object to manufacture CreateCollectionInput
.
Trait Implementations§
source§impl Clone for CreateCollectionInput
impl Clone for CreateCollectionInput
source§fn clone(&self) -> CreateCollectionInput
fn clone(&self) -> CreateCollectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCollectionInput
impl Debug for CreateCollectionInput
source§impl PartialEq for CreateCollectionInput
impl PartialEq for CreateCollectionInput
source§fn eq(&self, other: &CreateCollectionInput) -> bool
fn eq(&self, other: &CreateCollectionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCollectionInput
Auto Trait Implementations§
impl Freeze for CreateCollectionInput
impl RefUnwindSafe for CreateCollectionInput
impl Send for CreateCollectionInput
impl Sync for CreateCollectionInput
impl Unpin for CreateCollectionInput
impl UnwindSafe for CreateCollectionInput
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> 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