pub struct AudioInput { /* private fields */ }Expand description
Audio attached to an Item.
Implementations§
Source§impl AudioInput
impl AudioInput
Sourcepub fn bytes(data: impl Into<Vec<u8>>) -> Self
pub fn bytes(data: impl Into<Vec<u8>>) -> Self
Audio that is already in a container the server understands.
Sourcepub fn path(path: impl Into<PathBuf>) -> Self
pub fn path(path: impl Into<PathBuf>) -> Self
Encoded audio read from disk when the request is sent; the format comes from the filename.
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 (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 AudioInput
impl Debug for AudioInput
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 UnsafeUnpin 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