pub struct EntityRef {
pub kind: EntityKind,
pub id: EntityId,
pub source: Option<SourceRef>,
pub privacy: PrivacyClass,
pub redacted_summary: Option<String>,
}Expand description
Defines the entity ref SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§kind: EntityKindKind/category for this record, capability, event, or detected resource.
id: EntityIdStable identifier for this record.
source: Option<SourceRef>Source label or ref for this item; it is metadata and does not fetch content by itself.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
redacted_summary: Option<String>Redacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl EntityRef
impl EntityRef
Sourcepub fn new(kind: EntityKind, id: impl Into<EntityId>) -> Self
pub fn new(kind: EntityKind, id: impl Into<EntityId>) -> Self
Creates a new domain::refs value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn run(id: RunId) -> Self
pub fn run(id: RunId) -> Self
Builds the run value with the documented defaults. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn agent(id: AgentId) -> Self
pub fn agent(id: AgentId) -> Self
Returns agent for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Sourcepub fn agent_pool(id: AgentPoolId) -> Self
pub fn agent_pool(id: AgentPoolId) -> Self
Builds the agent pool value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn topic(id: TopicId) -> Self
pub fn topic(id: TopicId) -> Self
Returns an updated value with topic configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn message(id: MessageId) -> Self
pub fn message(id: MessageId) -> Self
Builds the message value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn wake_condition(id: WakeConditionId) -> Self
pub fn wake_condition(id: WakeConditionId) -> Self
Builds the wake condition value. This is data construction and performs no I/O, journal append, event publication, or process work.