Skip to main content

Crate postproject_core

Crate postproject_core 

Source
Expand description

Application-neutral domain types and service contracts for PostProject.

This crate deliberately has no persistence, FFI, or application-framework dependencies. Backends and adapters depend on this crate, never the reverse.

Structs§

Activity
A production operation connecting input and output representations.
ActivityEdgeSnapshot
Fingerprint evidence captured for one activity edge at commit time.
ActivityId
Stable identity of a production activity.
ActivityInput
One representation consumed by an activity.
ActivityKind
A namespaced, open-world production activity kind.
ActivityOutput
One representation produced by an activity.
ActivityRole
A namespaced, open-world role for an activity input or output.
AgentIdentity
A person, organization, application instance, or service responsible for an activity.
ArtifactDependencyPathSegment
One authored edge in a dependency path captured for an activity input.
ArtifactEvaluation
Complete, explainable result of evaluating one produced representation.
ArtifactEvaluationLimits
Explicit bounds for transitive artifact evaluation.
ArtifactReproducibilityReport
Structured answer to whether production knowledge can reproduce an artifact.
Asset
Logical identity for one piece of production media.
AssetId
Stable logical identity of an asset.
AvailabilityIssue
A resource- or frame-specific availability diagnostic.
CancellationToken
A cloneable flag that asks a running operation to stop.
CommitReceipt
The production and revision actually produced by a successful commit.
Confidence
A deterministic confidence value in basis points from 0 through 10,000.
ContentStructure
A validated description of how resources realize one representation.
DecimalValue
An exact base-ten decimal represented as coefficient * 10^-scale.
DecisionBase
Detached optimistic context; it does not retain a read view or a lock.
Dependency
One typed dependency occurrence in a representation’s observed set.
DependencyKind
An open-world, namespaced dependency kind.
DependencyQueryLimits
Bounds for a direct or transitive dependency query.
DependencyQueryMatch
One object reached by a bounded dependency or dependent query.
DependencySet
One complete ordered observation of a representation’s dependencies.
Error
An application-neutral error with a stable category and useful context.
ExternalIdentifier
An identifier assigned by an external standard, vendor, or application.
FileFacts
Cheap filesystem facts observed for one resource.
FilteredRevisionPage
One page of revisions that contain at least one event of a filter’s types.
FingerprintSnapshot
One immutable fingerprint value captured at a semantic revision.
FrameRange
An inclusive, regularly stepped frame domain.
HostObjectBinding
Portable reference from a host document to one production-scoped object.
IdentifierScheme
An extensible scheme name for an external identifier.
IdentifierSchemeDefinition
Documentation and optional local validation for one identifier scheme.
ImageSequenceDescriptor
A compact description of one regular or sparse image sequence.
Job
One persisted request for production work.
JobClaim
Attribution and lease data for one active claim.
JobClaimId
Capability identifying one active job claim.
JobCompletion
Durable result of successfully completing a job.
JobFailure
Bounded diagnostic recorded for failed work.
JobId
Stable identity of one requested production job.
JobKind
An open-world, namespaced kind of requested work.
JobQuery
Optional exact predicates for durable job enumeration.
KnownMediaMatch
One owning path from known storage evidence to logical production media.
Locator
A URI identifying one access route to a resource.
LocatorId
Stable identity of one access route to a resource.
LocatorIdentity
Canonical current locator identity used to find known media.
MediaRoot
An ordered filesystem or URI boundary searched by the resolver.
MediaRootId
Stable identity of a configured resolver search root.
MetadataAssertion
One independently repeatable assertion about a target object.
MetadataField
One named member of an ordered structured metadata value.
MetadataMatch
A metadata assertion together with the object carrying it.
MetadataProperty
A globally meaningful property formed from a vocabulary and local name.
MetadataPropertyAlias
One externally defined spelling corresponding to a property.
MetadataPropertyDefinition
Advisory type, cardinality, and mapping information for one property.
MetadataQuery
Optional exact scalar predicate for a metadata-property query.
MetadataValue
A bounded, recursively typed metadata value.
MetadataVocabularyDefinition
Documentation and property hints for one metadata vocabulary.
OriginIdentity
Identity of the integrating application or process that committed a revision.
OriginalMediaImport
A validated aggregate representing an imported asset and original media.
Production
Production identity and header metadata; mutable collections use read queries.
ProductionId
Stable identity of a production.
PropertyId
A property name local to a metadata vocabulary.
ProvenanceQueryLimits
Bounds for a provenance ancestor or descendant query.
ProvenanceQueryMatch
One representation reached by a provenance traversal.
QueryCursor
Opaque, query-scoped keyset continuation token.
QueryPage
One bounded page returned by a named domain query.
QueryPageRequest
Page size and optional continuation supplied to a named query.
RationalRate
A positive, normalized rational rate.
RationalTime
An exact integer value measured at a rational rate.
RationalValue
An exact normalized rational number.
RegenerationJobPlan
A non-persisted job request and copied parameters for one artifact.
RelinkSelection
Copied verified locations and the coherent database decision they belong to.
Representation
One encoded or derived form of an asset.
RepresentationFingerprint
Versioned, structure-aware identity evidence for a representation.
RepresentationId
Stable identity of an encoded or derived asset representation.
RepresentationImport
A validated representation and the storage resources that realize it.
RepresentationResolution
Representation-level availability with ordered per-resource detail.
RequestedJobOutput
The representation a successful job is expected to add.
ResolutionCandidate
A possible resource locator considered by the resolver.
ResolutionEvidence
Structured evidence with optional human-readable context.
Resource
A storage-level component used to realize a representation.
ResourceFingerprint
Versioned identity evidence derived from one storage resource.
ResourceId
Stable identity of stored content used by a representation.
ResourceMember
One resource’s role and requiredness within a content structure.
ResourceResolution
An explainable result for one resource, independent of representation shape.
ResourceRole
A namespaced, open-world role for a resource within a representation.
Revision
One committed production mutation transaction in local sequence order.
RevisionContext
Optional origin and message applied to one transaction’s revision.
RevisionEvent
One deterministically ordered semantic event within a revision.
RevisionEventFilter
Non-empty set of event types that selects revisions for a filtered page.
RevisionId
Stable identity of one durable production revision.
SequenceNaming
How the files of an image sequence are named in one place.
StaleArtifactQuery
Filters a paginated stale-artifact query.
TimeRange
A half-open time range with a non-negative duration.
Timestamp
A UTC instant represented as microseconds since the Unix epoch.
ToolIdentity
The software or service that performed a production activity.
TransactionConflict
Machine-readable details for one optimistic transaction conflict.
TransactionId
Stable identity of a domain transaction.
TransactionLifecycle
A small state machine shared by storage-backed domain transactions.
VocabularyId
An extensible identifier for a metadata vocabulary or namespace.

Enums§

ActivityOutputQuery
Filter selecting activity outputs by exact activity or tool identity.
ArtifactDependencyIssue
Why captured dependency evidence cannot prove currentness.
ArtifactEdgeKind
Which side of an activity supplied fingerprint evidence.
ArtifactKnowledgeReason
One user-explainable reason for a non-current knowledge state.
ArtifactKnowledgeState
Knowledge state of a representation produced by an activity.
ArtifactReproducibilityIssue
One missing condition that prevents an artifact from being reproducible.
ArtifactTraversalLimitKind
Which explicit traversal bound stopped evaluation.
AvailabilityIssueKind
The machine-inspectable category of a representation availability issue.
ConcurrencyClassification
Concurrency policy assigned to a semantic revision event type.
ConflictKeyKind
Stable category of a semantic conflict key.
ContentStructureKind
The structural shape used to realize a representation.
DependencySetStatus
Whether an observed dependency set still describes its source content.
DependencyTarget
The production object named by an authored dependency.
ErrorKind
Stable categories shared by core services and external adapters.
EvidenceKind
A machine-inspectable reason supporting or opposing a resolution candidate.
IdentifierValidationKind
The strength of local validation supplied for a known scheme.
JobLeaseState
Local ownership state; an active handle still needs authoritative validation.
JobState
Validated lifecycle state and its state-specific detail.
JobStateKind
Lifecycle state category for filtering and foreign interfaces.
LocatorAvailability
The last observed availability of a resource locator.
MetadataCardinality
Whether a property accepts at most one assertion or repeated assertions.
MetadataValueKind
The inspectable type of a MetadataValue.
ObjectRef
A typed reference to an object that may carry extensible assertions.
RepresentationAvailability
Aggregated availability of a complete representation.
RepresentationKind
The semantic role of an asset representation.
ResourceResolutionState
The outcome of resolving one storage resource.
RevisionEventKind
One semantic mutation recorded in a durable revision.
RevisionEventType
Payload-free discriminant of a RevisionEventKind.
RevisionWaitOutcome
Outcome of one bounded wait for revisions after a sequence.
SemanticConflictKey
One non-mergeable semantic fact touched by a transaction.
TransactionState
The state of an explicit domain transaction.

Constants§

DUBLIN_CORE_ELEMENTS_VOCABULARY
Dublin Core elements namespace used by XMP and other mappings.
EBUCORE_VOCABULARY
Current EBUCore namespace identity.
EIDR_SCHEME
Entertainment Identifier Registry URNs from RFC 7972.
IDENTIFIER_SCHEMES
Small built-in registry. Unknown schemes remain valid opaque identifiers.
IPTC_VMH_JSON_VOCABULARY
IPTC Video Metadata Hub 1.7 JSON schema identity.
ISAN_SCHEME
International Standard Audiovisual Number URNs from RFC 4246.
MAX_ACTIVITY_EDGES
Maximum number of input or output edges on one activity.
MAX_ACTIVITY_KIND_BYTES
Maximum encoded length of an activity-kind identifier.
MAX_ACTIVITY_ROLE_BYTES
Maximum encoded length of an activity-edge role identifier.
MAX_AUTHORED_REFERENCE_BYTES
Maximum UTF-8 byte length of an authored reference.
MAX_CONTENT_MEMBERS
Maximum number of materialized resource members in one content structure.
MAX_DEPENDENCIES_PER_SET
Maximum number of edges in one observed dependency set.
MAX_DEPENDENCY_KIND_BYTES
Maximum encoded length of an open-world dependency-kind identifier.
MAX_DEPENDENCY_QUERY_DEPTH
Maximum depth accepted by a dependency traversal query.
MAX_DEPENDENCY_QUERY_REPRESENTATIONS
Maximum representations visited by a dependency traversal query.
MAX_FRAME_PADDING
Maximum supported zero-padding width for an image-sequence frame number.
MAX_IDENTIFIER_QUALIFIER_BYTES
Maximum UTF-8 byte length of an optional identifier qualifier.
MAX_IDENTIFIER_SCHEME_BYTES
Maximum UTF-8 byte length of an external identifier scheme.
MAX_IDENTIFIER_VALUE_BYTES
Maximum UTF-8 byte length of an external identifier value.
MAX_JOB_DIAGNOSTIC_BYTES
Maximum UTF-8 byte length of a failure diagnostic.
MAX_JOB_INPUTS
Maximum number of input representations on one job.
MAX_JOB_KIND_BYTES
Maximum encoded length of a namespaced job-kind identifier.
MAX_JOB_LEASE_DURATION
Longest supported job lease: one day.
MAX_LANGUAGE_TAG_BYTES
Maximum byte length of a language tag.
MAX_METADATA_BINARY_BYTES
Maximum byte length of one binary value.
MAX_METADATA_COLLECTION_ITEMS
Maximum number of direct children in a list or structured value.
MAX_METADATA_DECIMAL_SCALE
Maximum number of fractional decimal digits.
MAX_METADATA_NESTING_DEPTH
Maximum nesting depth of lists and structured values, including the root.
MAX_METADATA_TEXT_BYTES
Maximum UTF-8 byte length of one text value.
MAX_METADATA_TOTAL_BYTES
Maximum aggregate payload size of one metadata value.
MAX_METADATA_URI_BYTES
Maximum UTF-8 byte length of one URI value.
MAX_PROPERTY_ID_BYTES
Maximum UTF-8 byte length of a vocabulary-local property identifier.
MAX_PROVENANCE_NAME_BYTES
Maximum UTF-8 byte length of a tool or agent display name.
MAX_PROVENANCE_QUERY_DEPTH
Maximum depth accepted by a provenance traversal query.
MAX_PROVENANCE_QUERY_REPRESENTATIONS
Maximum representations visited by a provenance traversal query.
MAX_PROVENANCE_URI_BYTES
Maximum UTF-8 byte length of an optional tool or vendor URI.
MAX_QUERY_CURSOR_BYTES
Maximum encoded size of an opaque continuation cursor.
MAX_QUERY_PAGE_SIZE
Maximum number of values returned by one query page.
MAX_REGENERATION_PLANS
Maximum artifacts accepted by one regeneration-planning call.
MAX_RESOURCE_ROLE_BYTES
Maximum encoded length of an extensible resource-role identifier.
MAX_REVISION_MESSAGE_BYTES
Maximum UTF-8 byte length of a revision message.
MAX_REVISION_PAGE_SIZE
Maximum revisions returned by one change-feed page.
MAX_REVISION_WAIT
Longest caller-supplied timeout accepted by one revision wait.
MAX_SEQUENCE_EXCEPTIONS
Maximum number of sparse frame exceptions stored in one sequence descriptor.
MAX_SEQUENCE_NAMING_BYTES
Maximum combined UTF-8 length of a sequence naming’s prefix and suffix.
MAX_TOOL_VERSION_BYTES
Maximum UTF-8 byte length of an optional tool version.
MAX_VOCABULARY_ID_BYTES
Maximum UTF-8 byte length of a vocabulary identifier.
METADATA_VOCABULARIES
Small built-in registry. Unknown vocabularies and properties remain valid.
POSTPROJECT_APPLICATION_SCHEME
Application-defined identifiers whose value semantics belong to the host.
POSTPROJECT_METADATA_VOCABULARY
Namespace reserved for the small set of PostProject-owned metadata terms.
SMPTE_UMID_SCHEME
SMPTE UMID values represented according to SMPTE ST 2029.
XMP_BASIC_VOCABULARY
Adobe XMP Basic namespace.

Traits§

JobLease
Backend-owned, production-bound worker capability; never a claim-ID pair.
ProductionRead
Read operations required from a production persistence backend.
ProductionReadSession
An owned coherent production view with a base captured by the same read.
ProductionStore
A production persistence backend with explicit domain transactions.
ProductionStoreTransaction
Transactional mutation operations required from a persistence backend.
RevisionWaiter
Bounded blocking wait for revisions committed after a sequence.

Functions§

identifier_scheme_definition
Finds a built-in definition by exact scheme spelling.
metadata_property_definition
Finds a built-in property hint by exact vocabulary and property spelling.
metadata_vocabulary_definition
Finds a built-in vocabulary definition by exact identifier spelling.
validate_job_lease_duration
Converts a positive, bounded lease duration to exact whole microseconds.
validate_known_identifier
Applies optional built-in validation and reports whether the scheme is known.
validate_revision_wait
Validates the page limit and timeout of one revision wait.

Type Aliases§

Result
The result type returned by core domain operations.