pub enum WsEvent {
ActionPerformed {
action_type: String,
target: String,
content: String,
timestamp: String,
},
ApprovalQueued {
id: i64,
action_type: String,
content: String,
media_paths: Vec<String>,
},
ApprovalUpdated {
id: i64,
status: String,
action_type: String,
actor: Option<String>,
},
FollowerUpdate {
count: i64,
change: i64,
},
RuntimeStatus {
running: bool,
active_loops: Vec<String>,
},
TweetDiscovered {
tweet_id: String,
author: String,
score: f64,
timestamp: String,
},
ActionSkipped {
action_type: String,
reason: String,
timestamp: String,
},
ContentScheduled {
id: i64,
content_type: String,
scheduled_for: Option<String>,
},
CircuitBreakerTripped {
state: String,
error_count: u32,
cooldown_remaining_seconds: u64,
timestamp: String,
},
Error {
message: String,
},
}Expand description
Events pushed to WebSocket clients.
Variants§
ActionPerformed
An automation action was performed (reply, tweet, thread, etc.).
ApprovalQueued
A new item was queued for approval.
ApprovalUpdated
An approval item’s status was updated (approved, rejected, edited).
FollowerUpdate
Follower count changed.
RuntimeStatus
Automation runtime status changed.
TweetDiscovered
A tweet was discovered and scored by the discovery loop.
ActionSkipped
An action was skipped (rate limited, below threshold, safety filter).
ContentScheduled
A new content item was scheduled via the composer.
CircuitBreakerTripped
Circuit breaker state changed.
Error
An error occurred.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsEvent
impl<'de> Deserialize<'de> for WsEvent
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 WsEvent
impl RefUnwindSafe for WsEvent
impl Send for WsEvent
impl Sync for WsEvent
impl Unpin for WsEvent
impl UnsafeUnpin for WsEvent
impl UnwindSafe for WsEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more