Enum cargo_wix::Template
[−]
[src]
pub enum Template { Apache2, Gpl3, Mit, Wxs, }
The different templates that can be printed using the --print-template
option.
Variants
Apache2
Gpl3
Mit
Wxs
Methods
impl Template
[src]
fn id(&self) -> &str
[src]
Gets the ID for the template.
In the case of a license template, the ID is the SPDX ID which is also used for the
license
field in the package's manifest (Cargo.toml). This is also the same value used
with the --print-template
option.
fn possible_values() -> Vec<String>
[src]
Gets the possible string representations of each variant.
fn to_str(&self) -> &str
[src]
Gets the embedded contents of the template as a string.
Trait Implementations
impl Debug for Template
[src]
impl Clone for Template
[src]
fn clone(&self) -> Template
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Template
[src]
impl PartialEq for Template
[src]
fn eq(&self, __arg_0: &Template) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Display for Template
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more