pub struct SourceRef {
pub kind: SourceKind,
pub id: SourceId,
pub trust: TrustClass,
pub privacy: PrivacyClass,
pub correlation: Vec<CorrelationEntry>,
pub redacted_summary: Option<String>,
}Expand description
Defines the source ref SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§kind: SourceKindKind/category for this record, capability, event, or detected resource.
id: SourceIdStable identifier for this record.
trust: TrustClassTrust class used when deciding whether context or capabilities may be admitted.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
correlation: Vec<CorrelationEntry>Collection of correlation values. Ordering and membership should be treated as part of the serialized contract when relevant.
redacted_summary: Option<String>Redacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl SourceRef
impl SourceRef
Sourcepub fn new(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> 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 with_kind(kind: SourceKind, id: impl Into<String>) -> Self
pub fn with_kind(kind: SourceKind, id: impl Into<String>) -> Self
Returns this value with its kind setting replaced. The method follows builder-style data construction and does not execute external work.