pub struct Template { /* private fields */ }Expand description
A template for generating ADRs.
Implementations§
Source§impl Template
impl Template
Sourcepub fn from_string(name: impl Into<String>, content: impl Into<String>) -> Self
pub fn from_string(name: impl Into<String>, content: impl Into<String>) -> Self
Create a template from a string.
Sourcepub fn builtin(format: TemplateFormat) -> Self
pub fn builtin(format: TemplateFormat) -> Self
Get a built-in template by format (uses Full variant).
Sourcepub fn builtin_with_variant(
format: TemplateFormat,
variant: TemplateVariant,
) -> Self
pub fn builtin_with_variant( format: TemplateFormat, variant: TemplateVariant, ) -> Self
Get a built-in template by format and variant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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