pub struct GeneratedImage {
pub bytes: Bytes,
pub media_type: String,
}Expand description
One image returned by the provider.
Fields§
§bytes: BytesImage bytes (typically PNG / JPEG).
media_type: StringIANA media type.
Trait Implementations§
Source§impl Clone for GeneratedImage
impl Clone for GeneratedImage
Source§fn clone(&self) -> GeneratedImage
fn clone(&self) -> GeneratedImage
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 moreAuto Trait Implementations§
impl !Freeze for GeneratedImage
impl RefUnwindSafe for GeneratedImage
impl Send for GeneratedImage
impl Sync for GeneratedImage
impl Unpin for GeneratedImage
impl UnsafeUnpin for GeneratedImage
impl UnwindSafe for GeneratedImage
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