pub struct DestinationRef {
pub kind: DestinationKind,
pub id: DestinationId,
pub privacy: PrivacyClass,
pub retention: RetentionClass,
pub correlation: Vec<CorrelationEntry>,
pub redacted_summary: Option<String>,
}Expand description
Defines the destination ref SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§kind: DestinationKindKind/category for this record, capability, event, or detected resource.
id: DestinationIdStable identifier for this record.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
retention: RetentionClassRetention class used by hosts and sinks when storing or exporting this item.
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 DestinationRef
impl DestinationRef
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: DestinationKind, id: impl Into<String>) -> Self
pub fn with_kind(kind: DestinationKind, 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.
Trait Implementations§
Source§impl Clone for DestinationRef
impl Clone for DestinationRef
Source§fn clone(&self) -> DestinationRef
fn clone(&self) -> DestinationRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DestinationRef
impl Debug for DestinationRef
Source§impl<'de> Deserialize<'de> for DestinationRef
impl<'de> Deserialize<'de> for DestinationRef
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>,
Source§impl Display for DestinationRef
impl Display for DestinationRef
impl Eq for DestinationRef
Source§impl PartialEq for DestinationRef
impl PartialEq for DestinationRef
Source§fn eq(&self, other: &DestinationRef) -> bool
fn eq(&self, other: &DestinationRef) -> bool
self and other values to be equal, and is used by ==.