pub struct ProjectedContextPart {
pub context_item_id: ContextItemId,
pub role: ProjectionRole,
pub content_ref: Option<ContentRef>,
pub text: Option<String>,
pub redacted_summary: String,
pub raw_content_included: bool,
pub privacy_class: PrivacyClass,
pub retention_class: RetentionClass,
}Expand description
Carries the projected context part record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§context_item_id: ContextItemIdStable context item id used for typed lineage, lookup, or dedupe.
role: ProjectionRoleRole used by this record or request.
content_ref: Option<ContentRef>Content reference where payload bytes or structured tool output are stored.
text: Option<String>Optional text value. When absent, callers should use the documented default or skip that optional behavior.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
raw_content_included: boolRaw content or raw-content control for this value. Use it only when policy explicitly allows raw content capture or delivery.
privacy_class: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
retention_class: RetentionClassRetention class used by hosts and sinks when storing or exporting this item.
Trait Implementations§
Source§impl Clone for ProjectedContextPart
impl Clone for ProjectedContextPart
Source§fn clone(&self) -> ProjectedContextPart
fn clone(&self) -> ProjectedContextPart
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 ProjectedContextPart
impl Debug for ProjectedContextPart
Source§impl<'de> Deserialize<'de> for ProjectedContextPart
impl<'de> Deserialize<'de> for ProjectedContextPart
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 ProjectedContextPart
Source§impl PartialEq for ProjectedContextPart
impl PartialEq for ProjectedContextPart
Source§fn eq(&self, other: &ProjectedContextPart) -> bool
fn eq(&self, other: &ProjectedContextPart) -> bool
self and other values to be equal, and is used by ==.