pub struct HistoryState {
pub messages: Vec<Message>,
pub metadata: HistoryRewriteMetadata,
}Expand description
Mutable state passed through the history rewrite pipeline.
Fields§
§messages: Vec<Message>§metadata: HistoryRewriteMetadataImplementations§
Source§impl HistoryState
impl HistoryState
pub fn from_snapshot(snapshot: &SessionSnapshot) -> Self
Trait Implementations§
Source§impl Clone for HistoryState
impl Clone for HistoryState
Source§fn clone(&self) -> HistoryState
fn clone(&self) -> HistoryState
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 moreAuto Trait Implementations§
impl Freeze for HistoryState
impl RefUnwindSafe for HistoryState
impl Send for HistoryState
impl Sync for HistoryState
impl Unpin for HistoryState
impl UnsafeUnpin for HistoryState
impl UnwindSafe for HistoryState
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