pub struct ProjectContext {
pub commit_guidelines: Option<String>,
pub pr_guidelines: Option<String>,
pub valid_scopes: Vec<ScopeDefinition>,
pub feature_contexts: HashMap<String, FeatureContext>,
pub project_conventions: ProjectConventions,
pub ecosystem: Ecosystem,
}Expand description
Project-level context discovered from configuration files.
Fields§
§commit_guidelines: Option<String>Project-specific commit guidelines from .omni-dev/commit-guidelines.md.
pr_guidelines: Option<String>Project-specific PR guidelines from .omni-dev/pr-guidelines.md.
valid_scopes: Vec<ScopeDefinition>Valid scopes and their descriptions from .omni-dev/scopes.yaml.
feature_contexts: HashMap<String, FeatureContext>Feature-specific context from .omni-dev/context/.
project_conventions: ProjectConventionsParsed conventions from CONTRIBUTING.md.
ecosystem: EcosystemDetected ecosystem (rust, node, python, etc.).
Trait Implementations§
Source§impl Clone for ProjectContext
impl Clone for ProjectContext
Source§fn clone(&self) -> ProjectContext
fn clone(&self) -> ProjectContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectContext
impl Debug for ProjectContext
Source§impl Default for ProjectContext
impl Default for ProjectContext
Source§fn default() -> ProjectContext
fn default() -> ProjectContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectContext
impl<'de> Deserialize<'de> for ProjectContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectContext
impl RefUnwindSafe for ProjectContext
impl Send for ProjectContext
impl Sync for ProjectContext
impl Unpin for ProjectContext
impl UnsafeUnpin for ProjectContext
impl UnwindSafe for ProjectContext
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