pub struct EventPayload {
pub id: String,
pub source: String,
pub severity: String,
pub content_type: String,
pub text: String,
pub timestamp: String,
pub formatted: String,
pub disclosure: Option<String>,
}Expand description
Canonical runtime event payload carried by RpcEvent::Event.
Server mode internalizes the same formatted event into its owning conversation
rather than exposing a raw transport frame.
All string fields are UTF-8; formatted is the full XML-tagged payload
already safe for injection into the agent context (prompt-injection
stripped by format_event_for_agent).
Fields§
§id: StringUUID of the originating event.
source: StringSource type string (e.g. "discord", "uptime-kuma", "cli").
severity: StringSeverity label: "low" | "medium" | "high" | "critical".
content_type: StringContent type label (e.g. "message", "alert", "subagent_completion").
text: StringRaw event text (before XML wrapping).
timestamp: StringISO-8601 UTC timestamp string.
formatted: StringFull format_event_for_agent output — XML-wrapped, injection-safe.
disclosure: Option<String>Typed disclosure class (spec §9.7) as its canonical snake_case name.
Retained through the wire so RPC/server parents can honor
persistence policy after handoff. Absent = model_visible.
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 EventPayload
impl Debug for EventPayload
Source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
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 EventPayload
Source§impl PartialEq for EventPayload
impl PartialEq for EventPayload
Source§impl Serialize for EventPayload
impl Serialize for EventPayload
impl StructuralPartialEq for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.