#[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 ==
.