pub struct Contract {Show 18 fields
pub schema_version: u32,
pub status: Status,
pub maturity: Maturity,
pub ecosystems: Vec<Ecosystem>,
pub targets: Vec<Target>,
pub versioning: VersioningBase,
pub versioning_pattern: Option<String>,
pub changelog: Changelog,
pub conventional_commits: bool,
pub release: Release,
pub contribution_provenance: ContributionProvenance,
pub provenance_level: ProvenanceLevel,
pub dependency_bot: DependencyBot,
pub health_badges: Vec<HealthBadge>,
pub license: String,
pub docs_site: DocsSite,
pub extra_fields: Map<String, Value>,
pub warnings: Vec<String>,
}Expand description
The canonical, fully-defaulted, targets-expanded OSS-RELEASE.md contract.
This is the exact shape of SCHEMA.md §4 (the stable machine contract). Every
field is present and defaulted; versioning is the base enum with the
calver pattern split into Self::versioning_pattern; extra_fields holds
preserved unknown frontmatter keys (forward-compat); warnings holds the
non-fatal notes. Field order matches SCHEMA.md §4 for readable output; JSON
consumers key-access, so order is not part of the contract.
Fields§
§schema_version: u32Contract schema version (bounded by KNOWN_SCHEMA_VERSION).
status: StatusApproval gate.
maturity: MaturityMaturity dial.
ecosystems: Vec<Ecosystem>Packaging ecosystems, de-duplicated to canonical order.
targets: Vec<Target>Concrete publish targets (expanded from ecosystems when omitted).
versioning: VersioningBaseBase versioning scheme.
versioning_pattern: Option<String>The calver pattern string, or null for non-calver schemes.
changelog: ChangelogChangelog configuration.
conventional_commits: boolWhether /oss-release-cut may derive the bump from commit types.
release: ReleaseRelease model + layout.
contribution_provenance: ContributionProvenanceContributor sign-off requirement.
provenance_level: ProvenanceLevelBuild-provenance level.
dependency_bot: DependencyBotDependency-update bot.
health_badges: Vec<HealthBadge>README health badges.
license: StringSPDX license id/expression.
docs_site: DocsSiteOptional documentation-site generator.
extra_fields: Map<String, Value>Preserved unknown frontmatter keys under a known schema_version
(forward-compat); never dropped.
warnings: Vec<String>Non-fatal notes (aspirational draft producers, the unknown-field report).