pub struct DefinitionStateTransform { /* private fields */ }Expand description
Schema contract for one durable state transformation.
The actual pure transformer is runtime-owned and is deliberately absent from durable metadata.
Implementations§
Source§impl DefinitionStateTransform
impl DefinitionStateTransform
Sourcepub const fn new(
source_node: NodeId,
target_node: NodeId,
kind: DefinitionStateKind,
state_id: DefinitionStateTransformId,
source_schema: StateSchemaId,
source_version: StateSchemaVersion,
target_schema: StateSchemaId,
target_version: StateSchemaVersion,
revision: DefinitionUpgradeRevision,
) -> Self
pub const fn new( source_node: NodeId, target_node: NodeId, kind: DefinitionStateKind, state_id: DefinitionStateTransformId, source_schema: StateSchemaId, source_version: StateSchemaVersion, target_schema: StateSchemaId, target_version: StateSchemaVersion, revision: DefinitionUpgradeRevision, ) -> Self
Declares one explicit deterministic state transformation.
Sourcepub const fn source_node(&self) -> &NodeId
pub const fn source_node(&self) -> &NodeId
Borrows the source durable node.
Sourcepub const fn target_node(&self) -> &NodeId
pub const fn target_node(&self) -> &NodeId
Borrows the target durable node.
Sourcepub const fn kind(&self) -> DefinitionStateKind
pub const fn kind(&self) -> DefinitionStateKind
Returns the durable state family.
Sourcepub const fn state_id(&self) -> &DefinitionStateTransformId
pub const fn state_id(&self) -> &DefinitionStateTransformId
Borrows the stable identity of the state-family member.
Sourcepub const fn source_schema(&self) -> &StateSchemaId
pub const fn source_schema(&self) -> &StateSchemaId
Borrows the source schema identifier.
Sourcepub const fn source_version(&self) -> StateSchemaVersion
pub const fn source_version(&self) -> StateSchemaVersion
Returns the source schema version.
Sourcepub const fn target_schema(&self) -> &StateSchemaId
pub const fn target_schema(&self) -> &StateSchemaId
Borrows the target schema identifier.
Sourcepub const fn target_version(&self) -> StateSchemaVersion
pub const fn target_version(&self) -> StateSchemaVersion
Returns the target schema version.
Sourcepub const fn revision(&self) -> &DefinitionUpgradeRevision
pub const fn revision(&self) -> &DefinitionUpgradeRevision
Borrows the deterministic transformer revision.
Trait Implementations§
Source§impl Clone for DefinitionStateTransform
impl Clone for DefinitionStateTransform
Source§impl Debug for DefinitionStateTransform
impl Debug for DefinitionStateTransform
impl Eq for DefinitionStateTransform
Source§impl PartialEq for DefinitionStateTransform
impl PartialEq for DefinitionStateTransform
impl StructuralPartialEq for DefinitionStateTransform
Auto Trait Implementations§
impl Forget for DefinitionStateTransform
impl Freeze for DefinitionStateTransform
impl Move for DefinitionStateTransform
impl RefUnwindSafe for DefinitionStateTransform
impl Send for DefinitionStateTransform
impl Sync for DefinitionStateTransform
impl Unpin for DefinitionStateTransform
impl UnsafeUnpin for DefinitionStateTransform
impl UnwindSafe for DefinitionStateTransform
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