pub struct WebhookMessage {
pub sender: String,
pub channel: String,
pub body: String,
}Expand description
A validated, control-character-stripped webhook payload forwarded to the agent-input
forwarder (forward_webhooks in the zeph binary).
Deliberately carries sender/channel/body as separate fields rather than a
pre-formatted "[sender@channel] body" string: deciding whether body is a recognized
slash command (and, if so, skipping both the display prefix and the ExternalUntrusted
sanitizer wrap so the agent’s dispatch registries see the raw command) requires
zeph-commands/zeph-core, neither of which this crate depends on. That decision is made
downstream by the forwarder, which already depends on both.
Fields§
§sender: StringDisplay name or identifier of the message sender, control-character-stripped.
channel: StringLogical channel name (e.g. "discord", "slack"), control-character-stripped.
body: StringRaw message body, control-character-stripped.
Trait Implementations§
Source§impl Clone for WebhookMessage
impl Clone for WebhookMessage
Source§fn clone(&self) -> WebhookMessage
fn clone(&self) -> WebhookMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more