#[non_exhaustive]pub struct CreateCollectionInput {
pub name: Option<String>,
pub type: Option<CollectionType>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
pub client_token: Option<String>,
}
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.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.
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.
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
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 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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCollectionInput
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more