pub struct ImageSourceInfo<'a> {
dimensions: Option<ImageDimensions>,
mimetype: Option<&'a str>,
size: Option<u32>,
}
Expand description
Information about the source of an image.
Fields§
§dimensions: Option<ImageDimensions>
The dimensions of the image.
mimetype: Option<&'a str>
The MIME type of the image.
size: Option<u32>
The file size of the image.
Trait Implementations§
source§impl<'a> Clone for ImageSourceInfo<'a>
impl<'a> Clone for ImageSourceInfo<'a>
source§fn clone(&self) -> ImageSourceInfo<'a>
fn clone(&self) -> ImageSourceInfo<'a>
Returns a copy 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<'a> Debug for ImageSourceInfo<'a>
impl<'a> Debug for ImageSourceInfo<'a>
source§impl<'a> Default for ImageSourceInfo<'a>
impl<'a> Default for ImageSourceInfo<'a>
source§fn default() -> ImageSourceInfo<'a>
fn default() -> ImageSourceInfo<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<&'a ImageInfo> for ImageSourceInfo<'a>
impl<'a> From<&'a ImageInfo> for ImageSourceInfo<'a>
source§impl<'a> From<&'a ImageInfo> for ImageSourceInfo<'a>
impl<'a> From<&'a ImageInfo> for ImageSourceInfo<'a>
source§impl<'a> From<&'a ThumbnailInfo> for ImageSourceInfo<'a>
impl<'a> From<&'a ThumbnailInfo> for ImageSourceInfo<'a>
impl<'a> Copy for ImageSourceInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImageSourceInfo<'a>
impl<'a> RefUnwindSafe for ImageSourceInfo<'a>
impl<'a> Send for ImageSourceInfo<'a>
impl<'a> Sync for ImageSourceInfo<'a>
impl<'a> Unpin for ImageSourceInfo<'a>
impl<'a> UnwindSafe for ImageSourceInfo<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.