pub struct BinaryInput { /* private fields */ }Expand description
A document or video attached to an Item: bytes plus an optional format token.
Implementations§
Source§impl BinaryInput
impl BinaryInput
Sourcepub fn document_bytes(data: impl Into<Vec<u8>>) -> Self
pub fn document_bytes(data: impl Into<Vec<u8>>) -> Self
A document held in memory.
Sourcepub fn document_path(path: impl Into<PathBuf>) -> Self
pub fn document_path(path: impl Into<PathBuf>) -> Self
A document read from disk; the format comes from the filename.
Sourcepub fn video_bytes(data: impl Into<Vec<u8>>) -> Self
pub fn video_bytes(data: impl Into<Vec<u8>>) -> Self
A video held in memory.
Sourcepub fn video_path(path: impl Into<PathBuf>) -> Self
pub fn video_path(path: impl Into<PathBuf>) -> Self
A video read from disk; the format comes from the filename.
Trait Implementations§
Source§impl Clone for BinaryInput
impl Clone for BinaryInput
Source§fn clone(&self) -> BinaryInput
fn clone(&self) -> BinaryInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BinaryInput
impl Debug for BinaryInput
Source§impl PartialEq for BinaryInput
impl PartialEq for BinaryInput
impl StructuralPartialEq for BinaryInput
Auto Trait Implementations§
impl Freeze for BinaryInput
impl RefUnwindSafe for BinaryInput
impl Send for BinaryInput
impl Sync for BinaryInput
impl Unpin for BinaryInput
impl UnsafeUnpin for BinaryInput
impl UnwindSafe for BinaryInput
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