pub struct SignalMessage {
pub role: Role,
pub kind: String,
pub tag_name: Option<String>,
pub content: String,
pub attributes: Option<BTreeMap<String, String>>,
pub timestamp: DateTime<Utc>,
}Expand description
A Flue “signal” message — a framework-injected lifecycle event that lives in the message stream alongside user/assistant turns.
Fields§
§role: RoleAlways signal.
kind: StringThe signal type identifier.
tag_name: Option<String>Optional tag name for structured signals.
content: StringThe signal body.
attributes: Option<BTreeMap<String, String>>Optional attributes.
timestamp: DateTime<Utc>When the signal fired.
Trait Implementations§
Source§impl Clone for SignalMessage
impl Clone for SignalMessage
Source§fn clone(&self) -> SignalMessage
fn clone(&self) -> SignalMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalMessage
impl Debug for SignalMessage
Source§impl<'de> Deserialize<'de> for SignalMessage
impl<'de> Deserialize<'de> for SignalMessage
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SignalMessage
impl RefUnwindSafe for SignalMessage
impl Send for SignalMessage
impl Sync for SignalMessage
impl Unpin for SignalMessage
impl UnsafeUnpin for SignalMessage
impl UnwindSafe for SignalMessage
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
Mutably borrows from an owned value. Read more