#[non_exhaustive]pub enum Source {
Content(Bytes),
GcsSource(Box<GcsSource>),
}Expand description
Specifies the source for the document’s content. The input file size should be <= 20MB for
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet The input file size should be <= 20MB and the maximum page limit is 20 for
- application/pdf
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Content(Bytes)
Document’s content represented as a stream of bytes.
GcsSource(Box<GcsSource>)
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
Trait Implementations§
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl !Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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