Skip to main content

Facts

Struct Facts 

Source
pub struct Facts {
Show 17 fields pub repo_root: String, pub is_git: bool, pub has_commits: bool, pub ecosystems: Vec<Ecosystem>, pub packages: Vec<Package>, pub committers_total: usize, pub committers_recent_year: usize, pub tags: Vec<String>, pub has_semver_tag: bool, pub has_ge_1_0_release: bool, pub has_ci: bool, pub dependency_bot: Option<String>, pub has_issues_dir: bool, pub readme_self_label: Option<String>, pub description: Option<String>, pub maturity_signals: MaturitySignals, pub inferred_maturity: Maturity,
}
Expand description

The deterministic repo-fact report — a pure function of (repo tree, git HEAD), emitted by ossctl facts and consumed by /oss-init and audit.

Every field is always present (an empty/unborn repo still gets a defined value for each), mirroring the Python detector’s “exit 0 even for an empty repo” contract.

Fields§

§repo_root: String

The canonicalized repository root the facts were gathered from.

§is_git: bool

Whether the root is inside a git work tree.

§has_commits: bool

Whether the repository has at least one commit (HEAD resolves).

§ecosystems: Vec<Ecosystem>

Detected packaging ecosystems, in canonical order. [binary] when no package manifest is found (a compiled-artifact-only repo).

§packages: Vec<Package>

One entry per root-level package manifest that names a package (plus Cargo.toml/go.mod always, even as a virtual workspace).

§committers_total: usize

Distinct committers across all history (git shortlog -sne --all).

§committers_recent_year: usize

Distinct committers within the last year — a production signal.

§tags: Vec<String>

All tag names in the repository.

§has_semver_tag: bool

Whether any tag parses as a SemVer version (a release signal).

§has_ge_1_0_release: bool

Whether a >=1.0 release exists — a >=1.0 SemVer tag or a manifest version >=1.0. Never probes a registry (that would need the network and break reproducibility).

§has_ci: bool

Whether a CI configuration is present (.github/workflows holding at least one entry, or a known single-file CI config).

§dependency_bot: Option<String>

The detected dependency-update bot (dependabot / renovate), or null.

§has_issues_dir: bool

Whether an issues/ directory is present.

§readme_self_label: Option<String>

"spike" when the README self-labels as pre-release/WIP, else null.

§description: Option<String>

A short project description: the first manifest description, else the first non-heading README line (both truncated to 120 characters).

§maturity_signals: MaturitySignals

The raw truth-table signals behind Self::inferred_maturity.

§inferred_maturity: Maturity

The inferred maturity (SCHEMA.md §4 truth table, tie → mvp).

Trait Implementations§

Source§

impl Clone for Facts

Source§

fn clone(&self) -> Facts

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Facts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Facts

Source§

impl PartialEq for Facts

Source§

fn eq(&self, other: &Facts) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Facts

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Facts

Auto Trait Implementations§

§

impl Freeze for Facts

§

impl RefUnwindSafe for Facts

§

impl Send for Facts

§

impl Sync for Facts

§

impl Unpin for Facts

§

impl UnsafeUnpin for Facts

§

impl UnwindSafe for Facts

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.