pub struct FileInput {
pub source: InputSource,
}Available on crate feature
file-types only.Fields§
§source: InputSourceImplementations§
Source§impl FileInput
impl FileInput
pub fn from_bytes(filename: String, bytes: Bytes) -> Self
Available on crate features
audio-types or file-types or image-types or chat-completion-types or completion-types or embedding-types or moderation-types or video-types only.pub fn from_vec_u8(filename: String, vec: Vec<u8>) -> Self
Available on crate features
audio-types or file-types or image-types or chat-completion-types or completion-types or embedding-types or moderation-types or video-types only.Trait Implementations§
Source§impl<P: AsRef<Path>> From<P> for FileInput
Available on crate features audio-types or file-types or image-types or chat-completion-types or completion-types or embedding-types or moderation-types or video-types only.
impl<P: AsRef<Path>> From<P> for FileInput
Available on crate features
audio-types or file-types or image-types or chat-completion-types or completion-types or embedding-types or moderation-types or video-types only.impl StructuralPartialEq for FileInput
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