pub struct ImageInput { /* private fields */ }Expand description
One in-memory image supplied to a dedicated image turn.
Implementations§
Source§impl ImageInput
impl ImageInput
Sourcepub fn new(
media_type: ImageMediaType,
bytes: impl Into<Vec<u8>>,
) -> Result<Self>
pub fn new( media_type: ImageMediaType, bytes: impl Into<Vec<u8>>, ) -> Result<Self>
Constructs a nonempty image input.
Sourcepub const fn media_type(&self) -> ImageMediaType
pub const fn media_type(&self) -> ImageMediaType
Returns the declared image media type.
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
impl Eq for ImageInput
Source§impl PartialEq for ImageInput
impl PartialEq for ImageInput
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