pub struct ImageSourceInfo<'a> {
dimensions: Option<FrameDimensions>,
mimetype: Option<&'a str>,
filesize: Option<u32>,
is_animated: Option<bool>,
}
Expand description
Information about the source of an image.
Fields§
§dimensions: Option<FrameDimensions>
The dimensions of the image.
mimetype: Option<&'a str>
The MIME type of the image.
filesize: Option<u32>
The file size of the image.
is_animated: Option<bool>
Whether the image is animated.
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§fn from(value: &'a AvatarImageInfo) -> Self
fn from(value: &'a AvatarImageInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ThumbnailInfo> for ImageSourceInfo<'a>
impl<'a> From<&'a ThumbnailInfo> for ImageSourceInfo<'a>
Source§fn from(value: &'a ThumbnailInfo) -> Self
fn from(value: &'a ThumbnailInfo) -> Self
Converts to this type from the input type.
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§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 more