pub struct RepositoryInfo {
pub root: String,
pub layer_schema: String,
pub sections: BTreeMap<String, String>,
pub git: GitState,
pub discovery: String,
pub source_classes: Vec<(String, String)>,
pub kind_sources: Vec<String>,
pub scope_origin: Origin,
pub scope_path: String,
pub observed: RepositoryObservations,
}Expand description
What the index knows about the repository it was built from.
Fields§
§root: StringThe repository root, absolute.
layer_schema: StringThe manifest’s schema, ai-repository/v1.
sections: BTreeMap<String, String>Manifest section name to repository-relative path.
git: GitStateWhat git said, or why it could not be asked.
discovery: Stringvcs or filesystem.
source_classes: Vec<(String, String)>Source class id to kind, in declared order.
kind_sources: Vec<String>The kinds files the reader was configured from: the distribution’s, then the repository’s own when it has one.
scope_origin: OriginWhere the scope was read from: repository or distribution.
scope_path: StringThe scope file: repository-relative for the repository’s own, the share path for the distribution’s default.
observed: RepositoryObservationsWhen the index and the git state it carries were read. Defaults to empty so that a record written before the freshness contract still reads.
Trait Implementations§
Source§impl Clone for RepositoryInfo
impl Clone for RepositoryInfo
Source§fn clone(&self) -> RepositoryInfo
fn clone(&self) -> RepositoryInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepositoryInfo
impl Debug for RepositoryInfo
Source§impl<'de> Deserialize<'de> for RepositoryInfo
impl<'de> Deserialize<'de> for RepositoryInfo
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
impl Eq for RepositoryInfo
Source§impl JsonSchema for RepositoryInfo
impl JsonSchema for RepositoryInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RepositoryInfo
impl PartialEq for RepositoryInfo
Source§fn eq(&self, other: &RepositoryInfo) -> bool
fn eq(&self, other: &RepositoryInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepositoryInfo
impl Serialize for RepositoryInfo
impl StructuralPartialEq for RepositoryInfo
Auto Trait Implementations§
impl Freeze for RepositoryInfo
impl RefUnwindSafe for RepositoryInfo
impl Send for RepositoryInfo
impl Sync for RepositoryInfo
impl Unpin for RepositoryInfo
impl UnsafeUnpin for RepositoryInfo
impl UnwindSafe for RepositoryInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.