pub struct ChildRunKey { /* private fields */ }Expand description
Integrity-bound logical ownership key for one isolated child Run.
The key binds the complete parent activation and slot. It intentionally excludes physical attempts, fences, clocks, and candidate child Run IDs. Its digest can index an ownership record but cannot authorize admission: the store must prove the activation’s committed readiness, current worker authority, declaration membership, and atomic budget reservation.
Deserialization recomputes the digest. A matching checksum detects drift; it is not a signature and does not authenticate caller-supplied data.
Implementations§
Source§impl ChildRunKey
impl ChildRunKey
Sourcepub fn new(
parent: NodeActivation,
slot: ChildRunSlot,
) -> Result<Self, ChildRunKeyError>
pub fn new( parent: NodeActivation, slot: ChildRunSlot, ) -> Result<Self, ChildRunKeyError>
Computes a deterministic logical key from validated domain values.
Sourcepub const fn parent(&self) -> &NodeActivation
pub const fn parent(&self) -> &NodeActivation
Returns the exact parent logical activation, without physical authority.
Sourcepub const fn slot(&self) -> &ChildRunSlot
pub const fn slot(&self) -> &ChildRunSlot
Returns the declared child slot.
Sourcepub const fn tenant_id(&self) -> &TenantId
pub const fn tenant_id(&self) -> &TenantId
Returns the tenant inherited from the parent activation.
Sourcepub const fn parent_run_id(&self) -> RunId
pub const fn parent_run_id(&self) -> RunId
Returns the parent Run ID, never a generated child ID.
Trait Implementations§
Source§impl Clone for ChildRunKey
impl Clone for ChildRunKey
Source§impl Debug for ChildRunKey
impl Debug for ChildRunKey
Source§impl<'de> Deserialize<'de> for ChildRunKey
impl<'de> Deserialize<'de> for ChildRunKey
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>,
impl Eq for ChildRunKey
Source§impl JsonSchema for ChildRunKey
impl JsonSchema for ChildRunKey
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more