pub struct ImageInput {
pub source: InputSource,
}Available on crate feature
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
Available on (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.
impl Clone for ImageInput
Available on (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.Source§fn clone(&self) -> ImageInput
fn clone(&self) -> ImageInput
Returns a duplicate 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 ImageInput
Available on (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.
impl Debug for ImageInput
Available on (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.Source§impl Default for ImageInput
Available on (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.
impl Default for ImageInput
Available on (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.Source§fn default() -> ImageInput
fn default() -> ImageInput
Returns the “default value” for a type. Read more
Source§impl From<ImageInput> for ImageEditInput
impl From<ImageInput> for ImageEditInput
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 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 only.Source§impl PartialEq for ImageInput
Available on (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.
impl PartialEq for ImageInput
Available on (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.impl StructuralPartialEq for ImageInput
Available on (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.Auto Trait Implementations§
impl !Freeze for ImageInput
impl RefUnwindSafe for ImageInput
impl Send for ImageInput
impl Sync for ImageInput
impl Unpin 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