#[non_exhaustive]pub struct ProjectionFingerprint {
pub workflow: WorkflowKey,
pub version: WorkflowVersion,
pub states: Vec<ProjectedShape>,
}Expand description
Everything one projector emits over a chosen set of states, at one version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workflow: WorkflowKeyThe workflow this projector answers for.
version: WorkflowVersionThe version it declares, which is what the fingerprint is pinned to.
states: Vec<ProjectedShape>One entry per state, in the order they were added.
Implementations§
Source§impl ProjectionFingerprint
impl ProjectionFingerprint
Sourcepub fn of<W: WorkflowDefinition>(definition: &W) -> FingerprintBuilder<'_, W>
pub fn of<W: WorkflowDefinition>(definition: &W) -> FingerprintBuilder<'_, W>
Starts a fingerprint for definition.
Sourcepub fn snapshot_name(&self) -> String
pub fn snapshot_name(&self) -> String
A snapshot name carrying the workflow and the version it pins.
Naming the snapshot after the version is the whole mechanism: a projector that changes without a bump fails against the file that already exists, and one that changes with a bump writes a new file beside the old, so the previous shape stays on record.
Trait Implementations§
Source§impl Clone for ProjectionFingerprint
impl Clone for ProjectionFingerprint
Source§impl Debug for ProjectionFingerprint
impl Debug for ProjectionFingerprint
Source§impl<'de> Deserialize<'de> for ProjectionFingerprint
impl<'de> Deserialize<'de> for ProjectionFingerprint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProjectionFingerprint
Source§impl PartialEq for ProjectionFingerprint
impl PartialEq for ProjectionFingerprint
Source§impl Serialize for ProjectionFingerprint
impl Serialize for ProjectionFingerprint
impl StructuralPartialEq for ProjectionFingerprint
Auto Trait Implementations§
impl Freeze for ProjectionFingerprint
impl RefUnwindSafe for ProjectionFingerprint
impl Send for ProjectionFingerprint
impl Sync for ProjectionFingerprint
impl Unpin for ProjectionFingerprint
impl UnsafeUnpin for ProjectionFingerprint
impl UnwindSafe for ProjectionFingerprint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.