pub struct BatchFile {
pub data: FileData,
pub filename: String,
pub mime_type: Option<String>,
pub metadata: Map<String, Value>,
}Expand description
A single file within a batch input.
Fields§
§data: FileDataThe file content as it arrived: in-memory bytes or a path on disk.
A reference stays a reference, so a batch node never loads files it
only lists; call to_bytes() / into_bytes() when the bytes matter.
filename: StringThe original filename.
mime_type: Option<String>The MIME type, if known.
metadata: Map<String, Value>Per-file metadata the file carries from earlier nodes (lookup rows, flags, the upload’s size). A batch node that passes files through copies it onto its outputs.
Auto Trait Implementations§
impl Freeze for BatchFile
impl RefUnwindSafe for BatchFile
impl Send for BatchFile
impl Sync for BatchFile
impl Unpin for BatchFile
impl UnsafeUnpin for BatchFile
impl UnwindSafe for BatchFile
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