pub struct ServerExecuteSnapshot {
pub message_count: usize,
pub last_message_id: Option<String>,
pub has_pending_question: bool,
pub pending_question_tool_call_id: Option<String>,
pub has_pending_user_message: bool,
}Expand description
Server-side snapshot of session state used for sync comparison.
Fields§
§message_count: usize§last_message_id: Option<String>§has_pending_question: bool§pending_question_tool_call_id: Option<String>§has_pending_user_message: boolImplementations§
Source§impl ServerExecuteSnapshot
impl ServerExecuteSnapshot
pub fn from_session(session: &Session) -> Self
Source§impl ServerExecuteSnapshot
impl ServerExecuteSnapshot
pub fn to_sync_info(&self, reason: Option<ExecuteSyncReason>) -> ExecuteSyncInfo
Trait Implementations§
Source§impl Clone for ServerExecuteSnapshot
impl Clone for ServerExecuteSnapshot
Source§fn clone(&self) -> ServerExecuteSnapshot
fn clone(&self) -> ServerExecuteSnapshot
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 ServerExecuteSnapshot
impl Debug for ServerExecuteSnapshot
Source§impl PartialEq for ServerExecuteSnapshot
impl PartialEq for ServerExecuteSnapshot
impl Eq for ServerExecuteSnapshot
impl StructuralPartialEq for ServerExecuteSnapshot
Auto Trait Implementations§
impl Freeze for ServerExecuteSnapshot
impl RefUnwindSafe for ServerExecuteSnapshot
impl Send for ServerExecuteSnapshot
impl Sync for ServerExecuteSnapshot
impl Unpin for ServerExecuteSnapshot
impl UnsafeUnpin for ServerExecuteSnapshot
impl UnwindSafe for ServerExecuteSnapshot
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<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
Compare self to
key and return true if they are equal.