pub struct Scope {
pub name: String,
pub dir: String,
pub language: Language,
pub framework: String,
pub build_tool: BuildTool,
pub registry: Registry,
pub release: StageRelease,
pub test_threshold: Option<f64>,
pub ci_workflow: Option<String>,
}Expand description
Scopes(上下文维度):定义规则的边界。
通过 scope 为不同组件挂载不同的 Stages、Platforms、Sources 组合。
Fields§
§name: String§dir: String§language: Language语言与框架信息(属于 Sources 维度,但按 scope 声明)。
framework: String§build_tool: BuildTool§registry: Registry该 scope 的制品库(覆盖全局 Platforms)。
release: StageRelease该 scope 的发布配置(覆盖全局 Stages.release)。
test_threshold: Option<f64>该 scope 的测试阈值(覆盖全局 Stages.test.threshold)。
ci_workflow: Option<String>CI workflow 名称。未设置时按 build-{scope} 约定推导。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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