Skip to content

identity

Structs

  • RunIdentity - Deterministic identity tuple associated with a firma run execution.

Enums

  • SandboxId - Sandbox identifier — either explicitly provided by the operator or

Struct

Deterministic identity tuple associated with a firma run execution.

Values are generated once per execution and then reused everywhere in the runtime to keep attribution stable.

Fields:

  • sandbox_id: SandboxId
  • session_id: String
  • profile: String

Methods:

  • fn new<impl Into<String>>(profile: impl Trait) -> Self - Create a new run identity for a profile.
  • fn env_pairs(self: &Self) -> BTreeMap<String, String> - Environment variables injected into the wrapped process for
  • fn attribution_headers(self: &Self) -> BTreeMap<String, String> - Header-style attribution keys suitable for transport bridges.
  • fn full_attribution_headers(self: &Self) -> BTreeMap<String, String> - Full set of attribution headers including agent and host-user identity.

Traits: Eq

Trait Implementations:

  • Deserialize
    • fn deserialize<__D>(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>
  • Clone
    • fn clone(self: &Self) -> RunIdentity
  • PartialEq
    • fn eq(self: &Self, other: &RunIdentity) -> bool
  • Serialize
    • fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

Enum

Sandbox identifier — either explicitly provided by the operator or auto-generated for this execution.

Variants:

  • Custom(String) - User-supplied value (via FIRMA_RUN_SANDBOX_ID or deserialization).
  • Generated(String) - Auto-generated UUID v7, stored as formatted string.

Methods:

  • fn compact(self: &Self) -> String - Shortened form for log fields: first 8 hex chars for generated

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> SandboxId
  • PartialEq
    • fn eq(self: &Self, other: &SandboxId) -> bool
  • Serialize
    • fn serialize<S>(self: &Self, serializer: S) -> Result<<S as >::Ok, <S as >::Error>
  • AsRef
    • fn as_ref(self: &Self) -> &str
  • Default
    • fn default() -> Self
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • AsRef
    • fn as_ref(self: &Self) -> &Path
  • From
    • fn from(s: &str) -> Self
  • AsRef
    • fn as_ref(self: &Self) -> &OsStr
  • From
    • fn from(s: String) -> Self
  • Deserialize
    • fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>
  • Display
    • fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result