pub struct Gallery { /* private fields */ }Expand description
A rendered gallery. Displays as its HTML; with the askama feature, Askama doesn’t escape it.
Implementations§
Source§impl Gallery
impl Gallery
Sourcepub fn new(manifest: &Value, options: &Options) -> Result<Self, Error>
pub fn new(manifest: &Value, options: &Options) -> Result<Self, Error>
The gallery for a parsed manifest.
Sourcepub fn from_json(manifest: &str, options: &Options) -> Result<Self, Error>
pub fn from_json(manifest: &str, options: &Options) -> Result<Self, Error>
The gallery for a manifest’s JSON text (a file the build wrote, or include_str!).
pub fn as_str(&self) -> &str
Trait Implementations§
impl Eq for Gallery
impl StructuralPartialEq for Gallery
Auto Trait Implementations§
impl Forget for Gallery
impl Freeze for Gallery
impl Move for Gallery
impl RefUnwindSafe for Gallery
impl Send for Gallerywhere
RawVecInner: Send,
impl Sync for Gallerywhere
RawVecInner: Sync,
impl Unpin for Gallery
impl UnsafeUnpin for Gallery
impl UnwindSafe for Gallerywhere
RawVecInner: UnwindSafe,
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