pub(super) struct StagedRepositoryGraph {
project: ProjectInstanceId,
mutation: RepositoryGraphMutation,
entities: Vec<GraphEntity>,
relations: Vec<LogicalRelation>,
occurrences: Vec<RelationOccurrence>,
coverage: Vec<CoverageRecord>,
entity_exports: Vec<EntityResolutionKey>,
relation_dependencies: Vec<RelationDependencyKey>,
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.
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 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 Send for StagedRepositoryGraph
impl !Sync for StagedRepositoryGraph
impl Unpin for StagedRepositoryGraph
impl !UnwindSafe 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