pub enum FileStreamItem {
Metadata(FileMetadata),
Template(RequestTemplateInput),
Abort,
Error(String),
}Expand description
Items that can be yielded from a file upload stream
Variants§
Metadata(FileMetadata)
File metadata (should be first item in stream)
Template(RequestTemplateInput)
A request template parsed from JSONL
Abort
Producer is aborting the stream. Fusillade should rollback and stop processing.
Error(String)
👎Deprecated:
Use FileStreamItem::Abort and retain the producer error locally instead
Deprecated compatibility path for callers that still surface producer parse errors here.
Trait Implementations§
Source§impl Clone for FileStreamItem
impl Clone for FileStreamItem
Source§fn clone(&self) -> FileStreamItem
fn clone(&self) -> FileStreamItem
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 FileStreamItem
impl Debug for FileStreamItem
Auto Trait Implementations§
impl Freeze for FileStreamItem
impl RefUnwindSafe for FileStreamItem
impl Send for FileStreamItem
impl Sync for FileStreamItem
impl Unpin for FileStreamItem
impl UnsafeUnpin for FileStreamItem
impl UnwindSafe for FileStreamItem
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