pub struct Builder<'a> { /* private fields */ }
Expand description
A builder for creating an execution context to print a license.
Implementations§
source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
sourcepub fn copyright_holder(&mut self, h: Option<&'a str>) -> &mut Self
pub fn copyright_holder(&mut self, h: Option<&'a str>) -> &mut Self
Sets the copyright holder for the generated license.
If the license template does not use a copyright holder, then this value is ignored.
The default is to use authors
field of the package’s manifest (Cargo.toml).
sourcepub fn copyright_year(&mut self, y: Option<&'a str>) -> &mut Self
pub fn copyright_year(&mut self, y: Option<&'a str>) -> &mut Self
Sets the copyright year for the generated license.
If the license template does not use a copyright year, then this value is ignored.
The default is to use this year when generating the license.
sourcepub fn input(&mut self, i: Option<&'a str>) -> &mut Self
pub fn input(&mut self, i: Option<&'a str>) -> &mut Self
Sets the path to a package’s manifest (Cargo.toml) to be used to generate license in the Rich Text Format (RTF).
By default, the license will be printed to STDOUT
unless the
output
method is used.