pub struct HeroExtraction {
pub html: String,
pub image_url: Option<String>,
pub overlay_text: Option<String>,
}Expand description
Captured Hero data after extraction.
The pipeline threads these into ParsedDocument:
html— rendered<section class="moss-hero">…</section>lands in the template hero slot.image_url— drives the homepage-hero rung of the cover chain.overlay_text— drives the homepage-hero rung of the description chain (first-paragraph text extraction).
Fields§
§html: String§image_url: Option<String>§overlay_text: Option<String>Trait Implementations§
Source§impl Clone for HeroExtraction
impl Clone for HeroExtraction
Source§fn clone(&self) -> HeroExtraction
fn clone(&self) -> HeroExtraction
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 moreSource§impl Debug for HeroExtraction
impl Debug for HeroExtraction
Source§impl Default for HeroExtraction
impl Default for HeroExtraction
Source§fn default() -> HeroExtraction
fn default() -> HeroExtraction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HeroExtraction
impl RefUnwindSafe for HeroExtraction
impl Send for HeroExtraction
impl Sync for HeroExtraction
impl Unpin for HeroExtraction
impl UnsafeUnpin for HeroExtraction
impl UnwindSafe for HeroExtraction
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