pub struct NodeInput {
pub data: Vec<u8>,
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: Vec<u8>The raw file data (bytes). For an image, this is the JPEG/PNG/WebP binary data. For a CSV, this is the UTF-8 text content as bytes.
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