pub struct RealtimeInputFrame {
pub frame_id: RealtimeFrameId,
pub media_kind: RealtimeMediaKind,
pub content_refs: Vec<ContentRef>,
pub redacted_summary: String,
pub cursor: StreamCursor,
pub privacy: PrivacyClass,
pub retention: RetentionClass,
}Expand description
Carries the realtime input frame 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§
§frame_id: RealtimeFrameIdStable frame id used for typed lineage, lookup, or dedupe.
media_kind: RealtimeMediaKindKind discriminator for media kind. Use it to route finite match arms without parsing display text.
content_refs: Vec<ContentRef>Content references associated with this record; resolving them is a separate policy-gated step.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
cursor: StreamCursorCursor identifying a replay, export, or subscription position. Use it to resume without widening the original scope.
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.
Implementations§
Source§impl RealtimeInputFrame
impl RealtimeInputFrame
Sourcepub fn media_ref(
media_kind: RealtimeMediaKind,
content_ref: ContentRef,
redacted_summary: impl Into<String>,
) -> Self
pub fn media_ref( media_kind: RealtimeMediaKind, content_ref: ContentRef, redacted_summary: impl Into<String>, ) -> Self
Builds the media ref 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 with_cursor(self, cursor: StreamCursor) -> Self
pub fn with_cursor(self, cursor: StreamCursor) -> Self
Returns this value with its cursor setting replaced. The method follows builder-style data construction and does not execute external work.
Trait Implementations§
Source§impl Clone for RealtimeInputFrame
impl Clone for RealtimeInputFrame
Source§fn clone(&self) -> RealtimeInputFrame
fn clone(&self) -> RealtimeInputFrame
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 RealtimeInputFrame
impl Debug for RealtimeInputFrame
Source§impl<'de> Deserialize<'de> for RealtimeInputFrame
impl<'de> Deserialize<'de> for RealtimeInputFrame
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 PartialEq for RealtimeInputFrame
impl PartialEq for RealtimeInputFrame
Source§fn eq(&self, other: &RealtimeInputFrame) -> bool
fn eq(&self, other: &RealtimeInputFrame) -> bool
self and other values to be equal, and is used by ==.