pub struct ImageInput {
pub source: InputSource,
}Available on crate feature
video-types and (crate features image-types or video-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Fields§
§source: InputSourceImplementations§
Source§impl ImageInput
impl ImageInput
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 Clone for ImageInput
impl Clone for ImageInput
Source§fn clone(&self) -> ImageInput
fn clone(&self) -> ImageInput
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 ImageInput
impl Debug for ImageInput
Source§impl Default for ImageInput
impl Default for ImageInput
Source§fn default() -> ImageInput
fn default() -> ImageInput
Returns the “default value” for a type. Read more
Source§impl From<ImageInput> for ImageEditInput
Available on crate feature image-types only.
impl From<ImageInput> for ImageEditInput
Available on crate feature
image-types only.Source§fn from(value: ImageInput) -> Self
fn from(value: ImageInput) -> Self
Converts to this type from the input type.
Source§impl<P: AsRef<Path>> From<P> for ImageInput
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) and non-target_family=wasm only.
impl<P: AsRef<Path>> From<P> for ImageInput
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) and non-target_family=wasm only.Source§impl PartialEq for ImageInput
impl PartialEq for ImageInput
Source§fn eq(&self, other: &ImageInput) -> bool
fn eq(&self, other: &ImageInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageInput
Auto Trait Implementations§
impl !Freeze for ImageInput
impl RefUnwindSafe for ImageInput
impl Send for ImageInput
impl Sync for ImageInput
impl Unpin for ImageInput
impl UnsafeUnpin for ImageInput
impl UnwindSafe for ImageInput
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