pub enum FileInput {
Url(String),
Path(PathBuf),
Bytes {
data: Bytes,
filename: Option<String>,
content_type: Option<String>,
},
}
Expand description
Represents different ways to provide file input to a model.
Variants§
Url(String)
A URL to a publicly accessible file
Path(PathBuf)
A local file path
Bytes
Raw bytes with optional filename and content type
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileInput
impl RefUnwindSafe for FileInput
impl Send for FileInput
impl Sync for FileInput
impl Unpin for FileInput
impl UnwindSafe for FileInput
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