pub struct ReconstructedState {
pub messages: Vec<Message>,
pub last_seq: Option<u64>,
pub provider_name: String,
pub model: String,
pub cwd: String,
}Expand description
The result of folding a session’s event log up to some point.
Fields§
§messages: Vec<Message>Agent-ready message history, ready for hydration into MessageState.
last_seq: Option<u64>The highest seq folded, or None if the log was empty.
provider_name: String§model: String§cwd: StringTrait Implementations§
Source§impl Clone for ReconstructedState
impl Clone for ReconstructedState
Source§fn clone(&self) -> ReconstructedState
fn clone(&self) -> ReconstructedState
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 ReconstructedState
impl Debug for ReconstructedState
Source§impl Default for ReconstructedState
impl Default for ReconstructedState
Source§fn default() -> ReconstructedState
fn default() -> ReconstructedState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReconstructedState
impl RefUnwindSafe for ReconstructedState
impl Send for ReconstructedState
impl Sync for ReconstructedState
impl Unpin for ReconstructedState
impl UnsafeUnpin for ReconstructedState
impl UnwindSafe for ReconstructedState
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