pub struct Vars {
pub volume: String,
pub distro: String,
pub distro_version: String,
pub created: String,
pub kernel_source: String,
pub distro_source: String,
}Expand description
Every {{placeholder}} in the template must be represented by a field
on this struct. The frontmatter block in
templates/manifest-template.md is the source of truth for which
placeholders exist; the test template_contains_all_placeholders
guards that contract.
Fields§
§volume: String§distro: String§distro_version: String§created: String§kernel_source: String§distro_source: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Vars
impl RefUnwindSafe for Vars
impl Send for Vars
impl Sync for Vars
impl Unpin for Vars
impl UnsafeUnpin for Vars
impl UnwindSafe for Vars
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more