Enum async_openai::types::InputSource
source · pub enum InputSource {
Path {
path: PathBuf,
},
Bytes {
filename: String,
bytes: Bytes,
},
VecU8 {
filename: String,
vec: Vec<u8>,
},
}
Variants§
Trait Implementations§
source§impl Clone for InputSource
impl Clone for InputSource
source§fn clone(&self) -> InputSource
fn clone(&self) -> InputSource
Returns a copy of the value. Read more
1.0.0 · 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 InputSource
impl Debug for InputSource
source§impl Default for InputSource
impl Default for InputSource
source§impl PartialEq for InputSource
impl PartialEq for InputSource
source§fn eq(&self, other: &InputSource) -> bool
fn eq(&self, other: &InputSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputSource
Auto Trait Implementations§
impl RefUnwindSafe for InputSource
impl Send for InputSource
impl Sync for InputSource
impl Unpin for InputSource
impl UnwindSafe for InputSource
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