Improve image generation perf

This commit is contained in:
2024-09-06 14:43:04 +02:00
parent b136f46a6f
commit 7f483af9cf
9 changed files with 82 additions and 49 deletions

View File

@ -3,21 +3,15 @@ pub struct Link {
pub label: String,
}
#[derive(Default)]
pub struct HeaderProps {
pub back_link: Option<Link>,
}
impl Default for HeaderProps {
fn default() -> Self {
Self { back_link: None }
}
}
impl HeaderProps {
pub fn with_back_link(link: Link) -> Self {
Self {
back_link: Some(link),
..Default::default()
}
}
}