pub(super) struct StagedRepositoryGraph {Show 14 fields
project: ProjectInstanceId,
mutation: RepositoryGraphMutation,
entities: Vec<GraphEntity>,
relations: Vec<LogicalRelation>,
occurrences: Vec<RelationOccurrence>,
coverage: Vec<CoverageRecord>,
entity_exports: Vec<EntityResolutionKey>,
relation_dependencies: Vec<RelationDependencyKey>,
document_unresolved_reasons: Vec<(LogicalRelationKey, DocumentTargetUnresolvedReason)>,
identity_rejections: Vec<GraphIdentityRejection>,
scan_policy: RootScanPolicy,
document_target_states: Vec<(String, DocumentTargetUnresolvedReason)>,
database: Option<StagedGraphDatabase>,
retained_bytes: u64,
}Expand description
Complete normalized graph and canonical-key rows waiting for publication.
Fields§
§project: ProjectInstanceIdProject identity owning every staged graph fact.
mutation: RepositoryGraphMutationFull or affected-path replacement selected by the staging caller.
entities: Vec<GraphEntity>Stable typed entities ready for normalized persistence.
relations: Vec<LogicalRelation>Deduplicated logical relationships ready for persistence.
occurrences: Vec<RelationOccurrence>Exact source occurrences retained separately from logical relations.
coverage: Vec<CoverageRecord>Parser and relation coverage facts for staged source paths.
entity_exports: Vec<EntityResolutionKey>Canonical resolution keys exported by staged entities.
relation_dependencies: Vec<RelationDependencyKey>Canonical dependency keys retained by staged relations.
document_unresolved_reasons: Vec<(LogicalRelationKey, DocumentTargetUnresolvedReason)>Closed reasons retained only for unresolved canonical document relations.
identity_rejections: Vec<GraphIdentityRejection>Bounded typed parser-identity rejections committed with this generation.
scan_policy: RootScanPolicyEffective scan policy used to recheck non-indexed document targets before commit.
document_target_states: Vec<(String, DocumentTargetUnresolvedReason)>Non-indexed target states observed while resolving document candidates.
database: Option<StagedGraphDatabase>Optional disposable database replacing the in-memory row vectors.
retained_bytes: u64Conservative bytes retained until the parent publication completes.
Implementations§
Source§impl StagedRepositoryGraph
impl StagedRepositoryGraph
Sourcepub(super) const fn retained_bytes(&self) -> u64
pub(super) const fn retained_bytes(&self) -> u64
Return conservative retained bytes counted toward the parent staging budget.
Sourcepub(super) fn revalidate_document_targets(
&self,
root: &Path,
) -> Result<(), CliError>
pub(super) fn revalidate_document_targets( &self, root: &Path, ) -> Result<(), CliError>
Refuse publication if a consulted non-indexed target changed after resolution.
Sourcepub(super) fn apply(
&self,
publication: &mut IndexPublicationGuard<'_>,
control: &IndexWorkControl,
) -> Result<(), CliError>
pub(super) fn apply( &self, publication: &mut IndexPublicationGuard<'_>, control: &IndexWorkControl, ) -> Result<(), CliError>
Apply the complete staged graph through the parent publication transaction.
Auto Trait Implementations§
impl !Freeze for StagedRepositoryGraph
impl !RefUnwindSafe for StagedRepositoryGraph
impl !Sync for StagedRepositoryGraph
impl !UnwindSafe for StagedRepositoryGraph
impl Send for StagedRepositoryGraph
impl Unpin for StagedRepositoryGraph
impl UnsafeUnpin for StagedRepositoryGraph
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more