Improve image generation perf
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user