pub struct Program<'a> {
pub name: &'a str,
pub version: &'a str,
pub about: &'a str,
pub commands: &'a [Command<'a>],
pub exit_status: &'a [(&'a str, &'a str)],
pub see_also: &'a [&'a str],
pub date: &'a str,
}Expand description
What the generators need to know about the program that the inputs do not say.
Fields§
§name: &'a strThe executable’s name, as typed (snapall).
version: &'a strThe version shown in the man page footer.
about: &'a strOne line, for the man page’s NAME section.
commands: &'a [Command<'a>]Subcommands, in the order they should be listed. May be empty.
exit_status: &'a [(&'a str, &'a str)](status, meaning) pairs for the man page’s EXIT STATUS section.
see_also: &'a [&'a str]Other manual pages, such as snapper(8).
date: &'a strThe man page date, YYYY-MM-DD. A parameter, not a clock reading, so output is
reproducible.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Program<'a>
impl<'a> RefUnwindSafe for Program<'a>
impl<'a> Send for Program<'a>
impl<'a> Sync for Program<'a>
impl<'a> Unpin for Program<'a>
impl<'a> UnsafeUnpin for Program<'a>
impl<'a> UnwindSafe for Program<'a>
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