pub trait LicenseTokens {
type TokenReplacementValues;
// Required method
fn replacement_pairs(
replacements: Self::TokenReplacementValues,
) -> Vec<(&'static str, String)>;
}Expand description
Tokens in license text to be replaced, e.g. yyyy which will be replaced with the copyright
year.
Required Associated Types§
Sourcetype TokenReplacementValues
type TokenReplacementValues
Struct holding the replacement values needed for the tokens used by the license
Required Methods§
Sourcefn replacement_pairs(
replacements: Self::TokenReplacementValues,
) -> Vec<(&'static str, String)>
fn replacement_pairs( replacements: Self::TokenReplacementValues, ) -> Vec<(&'static str, String)>
List of (token to search for, replacement value).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.