pub enum AppNotification {
TaskComplete {
thread_id: String,
turn_id: Option<String>,
result: Value,
},
Item {
thread_id: String,
turn_id: Option<String>,
item: Value,
},
Error {
message: String,
data: Option<Value>,
},
Raw {
method: String,
params: Value,
},
}Expand description
Notification emitted by the app-server.
Variants§
Trait Implementations§
Source§impl Clone for AppNotification
impl Clone for AppNotification
Source§fn clone(&self) -> AppNotification
fn clone(&self) -> AppNotification
Returns a duplicate of the value. Read more
1.0.0 · 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 AppNotification
impl Debug for AppNotification
Source§impl<'de> Deserialize<'de> for AppNotification
impl<'de> Deserialize<'de> for AppNotification
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 AppNotification
impl RefUnwindSafe for AppNotification
impl Send for AppNotification
impl Sync for AppNotification
impl Unpin for AppNotification
impl UnsafeUnpin for AppNotification
impl UnwindSafe for AppNotification
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