pub struct Generator {
pub name: String,
pub url: Option<String>,
}Expand description
The tool that built the site, credited in the footer of every shell that carries one.
The engine does not name itself. A renderer with no generator writes an
empty footer slot and no <footer> element, so a caller that wants a
“Generated by …” line is the one that asks for it — and a caller embedding
this crate in something else credits that, rather than shipping a footer
pointing at a program its readers never ran.
Fields§
§name: StringDisplay name, e.g. "Diaryx". HTML-escaped when rendered.
url: Option<String>Where the name links, if anywhere. HTML-escaped when rendered.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnsafeUnpin for Generator
impl UnwindSafe for Generator
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