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