pub struct TemplateContext {
pub project: ProjectInfo,
pub tools: ToolsConfig,
pub review: ReviewConfig,
pub install_command: Option<String>,
pub check_command: Option<String>,
pub workflow_docs: Vec<DocEntry>,
pub design_docs: Vec<DocEntry>,
}Expand description
Context data passed to templates
Fields§
§project: ProjectInfoProject configuration
tools: ToolsConfigTools configuration
review: ReviewConfigReview configuration
install_command: Option<String>Install command (optional)
check_command: Option<String>Check command run before merging (optional)
workflow_docs: Vec<DocEntry>Workflow docs with descriptions
design_docs: Vec<DocEntry>Design docs with descriptions (filtered by project type)
Implementations§
Source§impl TemplateContext
impl TemplateContext
Sourcepub fn from_config(config: &Config) -> Self
pub fn from_config(config: &Config) -> Self
Build template context from project config
Trait Implementations§
Source§impl Debug for TemplateContext
impl Debug for TemplateContext
Auto Trait Implementations§
impl Freeze for TemplateContext
impl RefUnwindSafe for TemplateContext
impl Send for TemplateContext
impl Sync for TemplateContext
impl Unpin for TemplateContext
impl UnsafeUnpin for TemplateContext
impl UnwindSafe for TemplateContext
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