#[non_exhaustive]pub struct UploadDocumentsInput {
pub documents: ByteStream,
pub content_type: Option<ContentType>,
}
Expand description
Container for the parameters to the UploadDocuments
request.
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.documents: ByteStream
A batch of documents formatted in JSON or HTML.
content_type: Option<ContentType>
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
Implementations§
source§impl UploadDocumentsInput
impl UploadDocumentsInput
sourcepub fn documents(&self) -> &ByteStream
pub fn documents(&self) -> &ByteStream
A batch of documents formatted in JSON or HTML.
sourcepub fn content_type(&self) -> Option<&ContentType>
pub fn content_type(&self) -> Option<&ContentType>
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
source§impl UploadDocumentsInput
impl UploadDocumentsInput
sourcepub fn builder() -> UploadDocumentsInputBuilder
pub fn builder() -> UploadDocumentsInputBuilder
Creates a new builder-style object to manufacture UploadDocumentsInput
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UploadDocumentsInput
impl !RefUnwindSafe for UploadDocumentsInput
impl Send for UploadDocumentsInput
impl Sync for UploadDocumentsInput
impl Unpin for UploadDocumentsInput
impl !UnwindSafe for UploadDocumentsInput
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.