pub struct OutputImage {
pub number: u32,
pub source_path: String,
pub slug: String,
pub title: Option<String>,
pub description: Option<String>,
pub dimensions: (u32, u32),
pub generated: BTreeMap<String, GeneratedVariant>,
pub thumbnail: String,
pub full_index_thumbnail: Option<String>,
}Fields§
§number: u32§source_path: String§slug: String§title: Option<String>§description: Option<String>§dimensions: (u32, u32)Original dimensions (width, height)
generated: BTreeMap<String, GeneratedVariant>Generated responsive images: { “800”: { “avif”: “path” }, … }
thumbnail: StringThumbnail path
full_index_thumbnail: Option<String>Extra thumbnail generated for the site-wide “All Photos” page, when
[full_index] generates = true. Uses full_index.thumb_ratio/thumb_size.
Trait Implementations§
Source§impl Debug for OutputImage
impl Debug for OutputImage
Auto Trait Implementations§
impl Freeze for OutputImage
impl RefUnwindSafe for OutputImage
impl Send for OutputImage
impl Sync for OutputImage
impl Unpin for OutputImage
impl UnsafeUnpin for OutputImage
impl UnwindSafe for OutputImage
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> 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