pub struct NodeInput {
pub data: FileData,
pub filename: String,
pub mime_type: Option<String>,
pub params: Map<String, Value>,
}Expand description
The input data that a node receives for processing.
Fields§
§data: FileDataFile content — in-memory bytes or a path on disk.
Most processors call input.data.into_bytes() at the top of process().
Processors that move/copy files can use write_to() / copy_to() directly
for zero-copy operations on FileData::Path variants.
filename: StringThe original filename (e.g., “photo.jpg”, “data.csv”). Used to determine the file format and to generate output filenames.
mime_type: Option<String>The MIME type of the input (e.g., “image/jpeg”, “text/csv”).
None when the MIME type wasn’t provided by the caller.
params: Map<String, Value>Configuration parameters for the node (e.g., quality level, target format, dimensions). A JSON-compatible map where keys are parameter names from @bnto/nodes schemas.
Auto Trait Implementations§
impl Freeze for NodeInput
impl RefUnwindSafe for NodeInput
impl Send for NodeInput
impl Sync for NodeInput
impl Unpin for NodeInput
impl UnsafeUnpin for NodeInput
impl UnwindSafe for NodeInput
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