pub trait ProductionRead {
Show 49 methods
// Required methods
fn production(&self) -> &Production;
fn media_roots_page(
&self,
page: &QueryPageRequest,
) -> Result<QueryPage<MediaRoot>>;
fn assets(&self) -> Result<Vec<Asset>>;
fn assets_page(&self, page: &QueryPageRequest) -> Result<QueryPage<Asset>>;
fn asset(&self, asset_id: AssetId) -> Result<Asset>;
fn representation(
&self,
representation_id: RepresentationId,
) -> Result<Representation>;
fn representations(&self, asset_id: AssetId) -> Result<Vec<Representation>>;
fn representations_page(
&self,
asset_id: AssetId,
page: &QueryPageRequest,
) -> Result<QueryPage<Representation>>;
fn resources(
&self,
representation_id: RepresentationId,
) -> Result<Vec<Resource>>;
fn resources_page(
&self,
representation_id: RepresentationId,
page: &QueryPageRequest,
) -> Result<QueryPage<Resource>>;
fn locators(&self, resource_id: ResourceId) -> Result<Vec<Locator>>;
fn locators_page(
&self,
resource_id: ResourceId,
page: &QueryPageRequest,
) -> Result<QueryPage<Locator>>;
fn find_known_media_by_locator(
&self,
locator: &LocatorIdentity,
page: &QueryPageRequest,
) -> Result<QueryPage<KnownMediaMatch>>;
fn find_known_media_by_fingerprint(
&self,
fingerprint: &ResourceFingerprint,
page: &QueryPageRequest,
) -> Result<QueryPage<KnownMediaMatch>>;
fn representations_under_media_root(
&self,
root_name: &str,
page: &QueryPageRequest,
) -> Result<QueryPage<Representation>>;
fn representations_using_resource(
&self,
resource_id: ResourceId,
page: &QueryPageRequest,
) -> Result<QueryPage<Representation>>;
fn unresolved_media(
&self,
page: &QueryPageRequest,
) -> Result<QueryPage<RepresentationId>>;
fn external_identifiers(
&self,
target: ObjectRef,
) -> Result<Vec<ExternalIdentifier>>;
fn find_by_external_identifier(
&self,
scheme: &IdentifierScheme,
value: &str,
qualifier: Option<&str>,
) -> Result<Vec<ObjectRef>>;
fn metadata(&self, target: ObjectRef) -> Result<Vec<MetadataAssertion>>;
fn metadata_values(
&self,
target: ObjectRef,
property: &MetadataProperty,
) -> Result<Vec<MetadataValue>>;
fn query_by_metadata_property(
&self,
property: &MetadataProperty,
) -> Result<Vec<MetadataMatch>>;
fn metadata_query(
&self,
query: &MetadataQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<MetadataMatch>>;
fn activities(&self) -> Result<Vec<Activity>>;
fn activities_producing(
&self,
representation_id: RepresentationId,
) -> Result<Vec<Activity>>;
fn activities_consuming(
&self,
representation_id: RepresentationId,
) -> Result<Vec<Activity>>;
fn activity_outputs(
&self,
query: &ActivityOutputQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<RepresentationId>>;
fn activities_producing_page(
&self,
representation_id: RepresentationId,
page: &QueryPageRequest,
) -> Result<QueryPage<Activity>>;
fn activities_consuming_page(
&self,
representation_id: RepresentationId,
page: &QueryPageRequest,
) -> Result<QueryPage<Activity>>;
fn ancestors(
&self,
representation_id: RepresentationId,
) -> Result<Vec<RepresentationId>>;
fn descendants(
&self,
representation_id: RepresentationId,
) -> Result<Vec<RepresentationId>>;
fn ancestors_page(
&self,
representation_id: RepresentationId,
limits: ProvenanceQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<ProvenanceQueryMatch>>;
fn descendants_page(
&self,
representation_id: RepresentationId,
limits: ProvenanceQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<ProvenanceQueryMatch>>;
fn dependency_set(
&self,
representation_id: RepresentationId,
) -> Result<Option<DependencySet>>;
fn dependencies(
&self,
source: RepresentationId,
limits: DependencyQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<DependencyQueryMatch>>;
fn dependents(
&self,
target: DependencyTarget,
limits: DependencyQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<DependencyQueryMatch>>;
fn evaluate_artifact(
&self,
representation_id: RepresentationId,
limits: ArtifactEvaluationLimits,
) -> Result<ArtifactEvaluation>;
fn artifact_reproducibility(
&self,
representation_id: RepresentationId,
) -> Result<ArtifactReproducibilityReport>;
fn stale_artifacts(
&self,
query: StaleArtifactQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<RepresentationId>>;
fn jobs(
&self,
query: &JobQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<Job>>;
fn job(&self, job_id: JobId) -> Result<Job>;
fn plan_regeneration(
&self,
representation_ids: &[RepresentationId],
) -> Result<Vec<RegenerationJobPlan>>;
fn latest_revision(&self) -> Result<Option<Revision>>;
fn changes_since(&self, sequence: u64, limit: u32) -> Result<Vec<Revision>>;
fn changes_since_filtered(
&self,
sequence: u64,
filter: &RevisionEventFilter,
limit: u32,
) -> Result<FilteredRevisionPage>;
fn events_for_revision(
&self,
revision_id: RevisionId,
) -> Result<Vec<RevisionEvent>>;
fn events_for_revision_page(
&self,
revision_id: RevisionId,
page: &QueryPageRequest,
) -> Result<QueryPage<RevisionEvent>>;
fn objects_changed_since(
&self,
sequence: u64,
page: &QueryPageRequest,
) -> Result<QueryPage<ObjectRef>>;
// Provided method
fn media_roots(&self) -> Result<Vec<MediaRoot>> { ... }
}Expand description
Read operations required from a production persistence backend.
The contract returns domain values and deliberately contains no generic CRUD, query language, connection, or database-row concepts.
Required Methods§
Sourcefn production(&self) -> &Production
fn production(&self) -> &Production
Returns the loaded production identity and header metadata.
Sourcefn media_roots_page(
&self,
page: &QueryPageRequest,
) -> Result<QueryPage<MediaRoot>>
fn media_roots_page( &self, page: &QueryPageRequest, ) -> Result<QueryPage<MediaRoot>>
Queries a bounded page of roots in priority/identity order.
Live readers load current facts; retained sessions use their pinned view.
§Errors
Returns a domain error for an invalid cursor or unreadable stored data.
Sourcefn assets(&self) -> Result<Vec<Asset>>
fn assets(&self) -> Result<Vec<Asset>>
Loads all assets in deterministic order.
Complete-list convenience is capped at 1000; use pages for larger results.
It returns Unsupported rather than truncating the collection.
§Errors
Returns a storage-domain error when persisted data cannot be read or decoded safely.
Sourcefn assets_page(&self, page: &QueryPageRequest) -> Result<QueryPage<Asset>>
fn assets_page(&self, page: &QueryPageRequest) -> Result<QueryPage<Asset>>
Queries one bounded page of assets in creation/identity order.
§Errors
Returns a domain error for an invalid cursor or unreadable storage.
Sourcefn asset(&self, asset_id: AssetId) -> Result<Asset>
fn asset(&self, asset_id: AssetId) -> Result<Asset>
Loads one asset by identity.
§Errors
Returns a not-found error when the asset is absent, or a storage-domain error when persisted data cannot be read or decoded safely.
Sourcefn representation(
&self,
representation_id: RepresentationId,
) -> Result<Representation>
fn representation( &self, representation_id: RepresentationId, ) -> Result<Representation>
Loads one representation, with its structure and fingerprints, by identity.
§Errors
Returns a not-found error when the representation is absent, or a storage-domain error when persisted data cannot be decoded safely.
Sourcefn representations(&self, asset_id: AssetId) -> Result<Vec<Representation>>
fn representations(&self, asset_id: AssetId) -> Result<Vec<Representation>>
Loads every representation belonging to an asset in deterministic order.
Complete-list convenience is capped at 1000; use pages for larger results.
It returns Unsupported rather than truncating the collection.
§Errors
Returns a storage-domain error when persisted data cannot be read or decoded safely.
Sourcefn representations_page(
&self,
asset_id: AssetId,
page: &QueryPageRequest,
) -> Result<QueryPage<Representation>>
fn representations_page( &self, asset_id: AssetId, page: &QueryPageRequest, ) -> Result<QueryPage<Representation>>
Queries one bounded page of representations belonging to an asset.
§Errors
Returns a domain error when the asset is absent, the cursor is invalid, or persisted representation data cannot be decoded safely.
Sourcefn resources(
&self,
representation_id: RepresentationId,
) -> Result<Vec<Resource>>
fn resources( &self, representation_id: RepresentationId, ) -> Result<Vec<Resource>>
Loads resources used by a representation in structural order.
Complete-list convenience is capped at 1000; use pages for larger results.
It returns Unsupported rather than truncating the collection.
§Errors
Returns a storage-domain error when persisted data cannot be read or decoded safely.
Sourcefn resources_page(
&self,
representation_id: RepresentationId,
page: &QueryPageRequest,
) -> Result<QueryPage<Resource>>
fn resources_page( &self, representation_id: RepresentationId, page: &QueryPageRequest, ) -> Result<QueryPage<Resource>>
Queries one bounded page of resources in structural order.
§Errors
Returns a domain error when the representation is absent, the cursor is invalid, or persisted resource data cannot be decoded safely.
Sourcefn locators(&self, resource_id: ResourceId) -> Result<Vec<Locator>>
fn locators(&self, resource_id: ResourceId) -> Result<Vec<Locator>>
Loads every known locator belonging to a resource.
Complete-list convenience is capped at 1000; use pages for larger results.
It returns Unsupported rather than truncating the collection.
§Errors
Returns a storage-domain error when persisted data cannot be read or decoded safely.
Sourcefn locators_page(
&self,
resource_id: ResourceId,
page: &QueryPageRequest,
) -> Result<QueryPage<Locator>>
fn locators_page( &self, resource_id: ResourceId, page: &QueryPageRequest, ) -> Result<QueryPage<Locator>>
Queries one bounded page of locators belonging to a resource.
§Errors
Returns a domain error when the resource is absent, the cursor is invalid, or persisted locator data cannot be decoded safely.
Sourcefn find_known_media_by_locator(
&self,
locator: &LocatorIdentity,
page: &QueryPageRequest,
) -> Result<QueryPage<KnownMediaMatch>>
fn find_known_media_by_locator( &self, locator: &LocatorIdentity, page: &QueryPageRequest, ) -> Result<QueryPage<KnownMediaMatch>>
Finds current resources and their owning production objects by exact canonical locator identity.
The operation is read-only. It returns every candidate and never adopts, relinks, or merges media implicitly.
§Errors
Returns a domain error for an invalid cursor or unreadable storage.
Sourcefn find_known_media_by_fingerprint(
&self,
fingerprint: &ResourceFingerprint,
page: &QueryPageRequest,
) -> Result<QueryPage<KnownMediaMatch>>
fn find_known_media_by_fingerprint( &self, fingerprint: &ResourceFingerprint, page: &QueryPageRequest, ) -> Result<QueryPage<KnownMediaMatch>>
Finds resources whose current effective fingerprint exactly matches, together with every owning representation and asset.
Historical fingerprint observations are not searched. The operation is read-only and returns every candidate without inferring logical identity.
§Errors
Returns a domain error for an invalid cursor or unreadable storage.
Sourcefn representations_under_media_root(
&self,
root_name: &str,
page: &QueryPageRequest,
) -> Result<QueryPage<Representation>>
fn representations_under_media_root( &self, root_name: &str, page: &QueryPageRequest, ) -> Result<QueryPage<Representation>>
Queries representations with a locator recorded under a logical root.
§Errors
Returns a domain error when the root is absent, the cursor is invalid, or persisted representation data cannot be decoded safely.
Sourcefn representations_using_resource(
&self,
resource_id: ResourceId,
page: &QueryPageRequest,
) -> Result<QueryPage<Representation>>
fn representations_using_resource( &self, resource_id: ResourceId, page: &QueryPageRequest, ) -> Result<QueryPage<Representation>>
Queries representations that use a resource, in identity order.
A resource is usually used by one representation, but the model allows several representations to share it, so the result is a bounded page.
§Errors
Returns a domain error when the resource is absent, the cursor is invalid, or persisted representation data cannot be decoded safely.
Sourcefn unresolved_media(
&self,
page: &QueryPageRequest,
) -> Result<QueryPage<RepresentationId>>
fn unresolved_media( &self, page: &QueryPageRequest, ) -> Result<QueryPage<RepresentationId>>
Queries representations whose required resources have no active locator.
§Errors
Returns a domain error for an invalid cursor or unreadable storage.
Sourcefn external_identifiers(
&self,
target: ObjectRef,
) -> Result<Vec<ExternalIdentifier>>
fn external_identifiers( &self, target: ObjectRef, ) -> Result<Vec<ExternalIdentifier>>
Loads external identifiers attached to target in deterministic order.
§Errors
Returns a storage-domain error when persisted data cannot be read or decoded safely, or when the target kind is not supported.
Sourcefn find_by_external_identifier(
&self,
scheme: &IdentifierScheme,
value: &str,
qualifier: Option<&str>,
) -> Result<Vec<ObjectRef>>
fn find_by_external_identifier( &self, scheme: &IdentifierScheme, value: &str, qualifier: Option<&str>, ) -> Result<Vec<ObjectRef>>
Finds objects carrying the exact external scheme and value.
A qualifier restricts matches to identifiers with exactly that
qualifier; None matches any qualifier, including none.
§Errors
Returns a domain error when the lookup value or qualifier is invalid or persisted data cannot be decoded safely.
Sourcefn metadata(&self, target: ObjectRef) -> Result<Vec<MetadataAssertion>>
fn metadata(&self, target: ObjectRef) -> Result<Vec<MetadataAssertion>>
Loads all metadata assertions attached to target in deterministic order.
§Errors
Returns a domain error when the target kind is unsupported or persisted data cannot be decoded safely.
Sourcefn metadata_values(
&self,
target: ObjectRef,
property: &MetadataProperty,
) -> Result<Vec<MetadataValue>>
fn metadata_values( &self, target: ObjectRef, property: &MetadataProperty, ) -> Result<Vec<MetadataValue>>
Loads every ordered value for one property on target.
§Errors
Returns a domain error when the target kind is unsupported or persisted data cannot be decoded safely.
Sourcefn query_by_metadata_property(
&self,
property: &MetadataProperty,
) -> Result<Vec<MetadataMatch>>
fn query_by_metadata_property( &self, property: &MetadataProperty, ) -> Result<Vec<MetadataMatch>>
Finds every object carrying property, preserving value repetition.
§Errors
Returns a domain error when persisted data cannot be decoded safely.
Sourcefn metadata_query(
&self,
query: &MetadataQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<MetadataMatch>>
fn metadata_query( &self, query: &MetadataQuery, page: &QueryPageRequest, ) -> Result<QueryPage<MetadataMatch>>
Queries one bounded page of objects carrying a metadata property.
§Errors
Returns a domain error for an invalid cursor, invalid predicate, or malformed persisted metadata.
Sourcefn activities(&self) -> Result<Vec<Activity>>
fn activities(&self) -> Result<Vec<Activity>>
Loads all production activities in deterministic identity order.
§Errors
Returns a storage-domain error when persisted activity data cannot be read or decoded safely.
Sourcefn activities_producing(
&self,
representation_id: RepresentationId,
) -> Result<Vec<Activity>>
fn activities_producing( &self, representation_id: RepresentationId, ) -> Result<Vec<Activity>>
Loads activities that produce representation_id.
§Errors
Returns a domain error when the representation is absent or persisted activity data cannot be read safely.
Sourcefn activities_consuming(
&self,
representation_id: RepresentationId,
) -> Result<Vec<Activity>>
fn activities_consuming( &self, representation_id: RepresentationId, ) -> Result<Vec<Activity>>
Loads activities that consume representation_id.
§Errors
Returns a domain error when the representation is absent or persisted activity data cannot be read safely.
Sourcefn activity_outputs(
&self,
query: &ActivityOutputQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<RepresentationId>>
fn activity_outputs( &self, query: &ActivityOutputQuery, page: &QueryPageRequest, ) -> Result<QueryPage<RepresentationId>>
Queries activity outputs selected by exact activity or tool identity.
§Errors
Returns a domain error for an invalid cursor or malformed persisted IDs.
Sourcefn activities_producing_page(
&self,
representation_id: RepresentationId,
page: &QueryPageRequest,
) -> Result<QueryPage<Activity>>
fn activities_producing_page( &self, representation_id: RepresentationId, page: &QueryPageRequest, ) -> Result<QueryPage<Activity>>
Queries a bounded page of activities producing one representation.
§Errors
Returns a domain error when the representation is absent, the cursor is invalid, or activity data cannot be decoded safely.
Sourcefn activities_consuming_page(
&self,
representation_id: RepresentationId,
page: &QueryPageRequest,
) -> Result<QueryPage<Activity>>
fn activities_consuming_page( &self, representation_id: RepresentationId, page: &QueryPageRequest, ) -> Result<QueryPage<Activity>>
Queries a bounded page of activities consuming one representation.
§Errors
Returns a domain error when the representation is absent, the cursor is invalid, or activity data cannot be decoded safely.
Sourcefn ancestors(
&self,
representation_id: RepresentationId,
) -> Result<Vec<RepresentationId>>
fn ancestors( &self, representation_id: RepresentationId, ) -> Result<Vec<RepresentationId>>
Returns every transitive provenance ancestor of representation_id.
§Errors
Returns a domain error when the representation is absent or persisted provenance cannot be traversed safely.
Sourcefn descendants(
&self,
representation_id: RepresentationId,
) -> Result<Vec<RepresentationId>>
fn descendants( &self, representation_id: RepresentationId, ) -> Result<Vec<RepresentationId>>
Returns every transitive provenance descendant of representation_id.
§Errors
Returns a domain error when the representation is absent or persisted provenance cannot be traversed safely.
Sourcefn ancestors_page(
&self,
representation_id: RepresentationId,
limits: ProvenanceQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<ProvenanceQueryMatch>>
fn ancestors_page( &self, representation_id: RepresentationId, limits: ProvenanceQueryLimits, page: &QueryPageRequest, ) -> Result<QueryPage<ProvenanceQueryMatch>>
Queries bounded, shortest-depth provenance ancestors.
§Errors
Returns a domain error when the root is absent, the cursor is invalid, or persisted provenance cannot be traversed safely.
Sourcefn descendants_page(
&self,
representation_id: RepresentationId,
limits: ProvenanceQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<ProvenanceQueryMatch>>
fn descendants_page( &self, representation_id: RepresentationId, limits: ProvenanceQueryLimits, page: &QueryPageRequest, ) -> Result<QueryPage<ProvenanceQueryMatch>>
Queries bounded, shortest-depth provenance descendants.
§Errors
Returns a domain error when the root is absent, the cursor is invalid, or persisted provenance cannot be traversed safely.
Sourcefn dependency_set(
&self,
representation_id: RepresentationId,
) -> Result<Option<DependencySet>>
fn dependency_set( &self, representation_id: RepresentationId, ) -> Result<Option<DependencySet>>
Loads the complete dependency observation for a representation.
None means that no dependency set has been recorded. An empty set is
returned as Some and is distinct from missing knowledge.
§Errors
Returns a domain error when the representation is absent or persisted dependency data cannot be decoded safely.
Sourcefn dependencies(
&self,
source: RepresentationId,
limits: DependencyQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<DependencyQueryMatch>>
fn dependencies( &self, source: RepresentationId, limits: DependencyQueryLimits, page: &QueryPageRequest, ) -> Result<QueryPage<DependencyQueryMatch>>
Queries direct or transitive dependency targets in stable key order.
§Errors
Returns a domain error when the source is absent, the cursor does not belong to the query, or persisted dependencies cannot be decoded safely.
Sourcefn dependents(
&self,
target: DependencyTarget,
limits: DependencyQueryLimits,
page: &QueryPageRequest,
) -> Result<QueryPage<DependencyQueryMatch>>
fn dependents( &self, target: DependencyTarget, limits: DependencyQueryLimits, page: &QueryPageRequest, ) -> Result<QueryPage<DependencyQueryMatch>>
Queries direct or transitive dependent representations in stable order.
A representation target includes pinned references and floating asset references recorded as resolved to that representation.
§Errors
Returns a domain error when the target is absent or persisted IDs cannot be decoded safely.
Sourcefn evaluate_artifact(
&self,
representation_id: RepresentationId,
limits: ArtifactEvaluationLimits,
) -> Result<ArtifactEvaluation>
fn evaluate_artifact( &self, representation_id: RepresentationId, limits: ArtifactEvaluationLimits, ) -> Result<ArtifactEvaluation>
Evaluates whether an activity-produced representation still reflects its recorded inputs and output snapshot.
This operation reads production knowledge only and never resolves or accesses media files.
§Errors
Returns a domain error when the target is absent, bounds are invalid, or stored provenance cannot be decoded safely.
Sourcefn artifact_reproducibility(
&self,
representation_id: RepresentationId,
) -> Result<ArtifactReproducibilityReport>
fn artifact_reproducibility( &self, representation_id: RepresentationId, ) -> Result<ArtifactReproducibilityReport>
Reports whether recorded production knowledge can reproduce an artifact.
§Errors
Returns a domain error when the target is absent or stored provenance cannot be decoded safely.
Sourcefn stale_artifacts(
&self,
query: StaleArtifactQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<RepresentationId>>
fn stale_artifacts( &self, query: StaleArtifactQuery, page: &QueryPageRequest, ) -> Result<QueryPage<RepresentationId>>
Queries representations currently evaluated as stale.
§Errors
Returns a domain error when the source is absent, the cursor is invalid, or artifact knowledge cannot be evaluated safely.
Sourcefn jobs(
&self,
query: &JobQuery,
page: &QueryPageRequest,
) -> Result<QueryPage<Job>>
fn jobs( &self, query: &JobQuery, page: &QueryPageRequest, ) -> Result<QueryPage<Job>>
Queries durable jobs in stable identity order.
§Errors
Returns a storage-domain error when persisted job data cannot be read or decoded safely.
Sourcefn job(&self, job_id: JobId) -> Result<Job>
fn job(&self, job_id: JobId) -> Result<Job>
Loads one durable job by identity.
§Errors
Returns a not-found error when the job is absent, or a storage-domain error when its persisted data cannot be decoded safely.
Sourcefn plan_regeneration(
&self,
representation_ids: &[RepresentationId],
) -> Result<Vec<RegenerationJobPlan>>
fn plan_regeneration( &self, representation_ids: &[RepresentationId], ) -> Result<Vec<RegenerationJobPlan>>
Derives non-persisted job requests for existing artifacts.
Each artifact must have exactly one producing activity. The plan copies that activity’s kind, distinct input representations, and typed metadata parameters. The caller explicitly enqueues any returned plan.
§Errors
Returns a domain error when the request is excessive, an artifact is absent, its producing activity is missing or ambiguous, or persisted activity/metadata data cannot be decoded safely.
Sourcefn latest_revision(&self) -> Result<Option<Revision>>
fn latest_revision(&self) -> Result<Option<Revision>>
Returns the newest durable revision, or None for an empty journal.
§Errors
Returns a storage-domain error when persisted revision data is invalid.
Sourcefn changes_since(&self, sequence: u64, limit: u32) -> Result<Vec<Revision>>
fn changes_since(&self, sequence: u64, limit: u32) -> Result<Vec<Revision>>
Returns revisions after sequence in ascending order, capped by limit.
§Errors
Returns a domain error when limit is zero or excessive, or when
persisted revision data is invalid.
Sourcefn changes_since_filtered(
&self,
sequence: u64,
filter: &RevisionEventFilter,
limit: u32,
) -> Result<FilteredRevisionPage>
fn changes_since_filtered( &self, sequence: u64, filter: &RevisionEventFilter, limit: u32, ) -> Result<FilteredRevisionPage>
Returns revisions after sequence that contain at least one event of
the filter’s types, in ascending order, capped by limit.
The page’s through sequence is the cursor for the next filtered page; every matching revision up to it is included.
§Errors
Returns a domain error when limit is zero or excessive, or when
persisted revision data is invalid.
Sourcefn events_for_revision(
&self,
revision_id: RevisionId,
) -> Result<Vec<RevisionEvent>>
fn events_for_revision( &self, revision_id: RevisionId, ) -> Result<Vec<RevisionEvent>>
Loads the semantic events for one revision in stable position order.
§Errors
Returns a domain error when the revision is absent or persisted event data is invalid.
Sourcefn events_for_revision_page(
&self,
revision_id: RevisionId,
page: &QueryPageRequest,
) -> Result<QueryPage<RevisionEvent>>
fn events_for_revision_page( &self, revision_id: RevisionId, page: &QueryPageRequest, ) -> Result<QueryPage<RevisionEvent>>
Returns one bounded page of a revision’s events in position order.
Cursors belong to the revision, production and retained read view.
§Errors
Returns a domain error for an absent revision, an invalid cursor or malformed persisted event data.
Sourcefn objects_changed_since(
&self,
sequence: u64,
page: &QueryPageRequest,
) -> Result<QueryPage<ObjectRef>>
fn objects_changed_since( &self, sequence: u64, page: &QueryPageRequest, ) -> Result<QueryPage<ObjectRef>>
Queries distinct metadata-capable objects touched after a revision.
§Errors
Returns a domain error for an invalid cursor or malformed journal data.
Provided Methods§
Sourcefn media_roots(&self) -> Result<Vec<MediaRoot>>
fn media_roots(&self) -> Result<Vec<MediaRoot>>
Loads current roots up to crate::MAX_QUERY_PAGE_SIZE.
§Errors
Returns an unsupported error if the result exceeds that cap; callers needing more roots use pages. Storage and cursor errors propagate.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".