pub struct ProjectionManifest { /* private fields */ }Expand description
One published projection generation, described exactly.
Implementations§
Source§impl ProjectionManifest
impl ProjectionManifest
Sourcepub fn try_new(
key: ProjectionKey,
generation: u64,
checkpoint: SourceCheckpoint,
schema_version: u32,
fact_version: u32,
object: ObjectDescriptor,
artifact_object: ExactObjectRef,
publisher: String,
fence: PublisherFence,
) -> Result<Self, ModelError>
pub fn try_new( key: ProjectionKey, generation: u64, checkpoint: SourceCheckpoint, schema_version: u32, fact_version: u32, object: ObjectDescriptor, artifact_object: ExactObjectRef, publisher: String, fence: PublisherFence, ) -> Result<Self, ModelError>
Records one exact published generation.
§Errors
Returns ModelError::Bounds for a zero generation, a zero schema or
fact version, or an empty publisher.
Sourcepub const fn key(&self) -> &ProjectionKey
pub const fn key(&self) -> &ProjectionKey
Returns the projection key.
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Returns the projection generation.
Sourcepub const fn checkpoint(&self) -> &SourceCheckpoint
pub const fn checkpoint(&self) -> &SourceCheckpoint
Returns the source checkpoint.
Sourcepub const fn schema_version(&self) -> u32
pub const fn schema_version(&self) -> u32
Returns the schema version.
Sourcepub const fn fact_version(&self) -> u32
pub const fn fact_version(&self) -> u32
Returns the fact version.
Sourcepub const fn object(&self) -> &ObjectDescriptor
pub const fn object(&self) -> &ObjectDescriptor
Returns the manifest’s own object descriptor.
Sourcepub const fn artifact_object(&self) -> &ExactObjectRef
pub const fn artifact_object(&self) -> &ExactObjectRef
Returns the exact artifact object reference.
Sourcepub const fn fence(&self) -> &PublisherFence
pub const fn fence(&self) -> &PublisherFence
Returns the publisher fence.
Trait Implementations§
Source§impl Clone for ProjectionManifest
impl Clone for ProjectionManifest
Source§fn clone(&self) -> ProjectionManifest
fn clone(&self) -> ProjectionManifest
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 ProjectionManifest
impl Debug for ProjectionManifest
impl Eq for ProjectionManifest
Source§impl PartialEq for ProjectionManifest
impl PartialEq for ProjectionManifest
impl StructuralPartialEq for ProjectionManifest
Auto Trait Implementations§
impl Freeze for ProjectionManifest
impl RefUnwindSafe for ProjectionManifest
impl Send for ProjectionManifest
impl Sync for ProjectionManifest
impl Unpin for ProjectionManifest
impl UnsafeUnpin for ProjectionManifest
impl UnwindSafe for ProjectionManifest
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