pub struct CarriedState {
pub label: String,
pub body: String,
}Expand description
A tool’s own state, on its way across a compaction.
label names it in the rebuilt prompt (the tool’s name is the obvious
choice); body is reproduced exactly, because verbatim is the whole point.
Fields§
§label: String§body: StringTrait Implementations§
Source§impl Clone for CarriedState
impl Clone for CarriedState
Source§fn clone(&self) -> CarriedState
fn clone(&self) -> CarriedState
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 CarriedState
impl Debug for CarriedState
impl Eq for CarriedState
Source§impl PartialEq for CarriedState
impl PartialEq for CarriedState
impl StructuralPartialEq for CarriedState
Auto Trait Implementations§
impl Freeze for CarriedState
impl RefUnwindSafe for CarriedState
impl Send for CarriedState
impl Sync for CarriedState
impl Unpin for CarriedState
impl UnsafeUnpin for CarriedState
impl UnwindSafe for CarriedState
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