#[non_exhaustive]pub struct LastTurn {
pub turn_id: String,
pub terminal: TurnTerminal,
pub reason: Option<String>,
pub error: Option<TurnError>,
}Expand description
The last turn/completed the session-view fold applied, restated on
session/resume and session/read so a reopened session can report a
failed last turn.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.turn_id: StringThe turn’s id, as on its turn/completed; clients deduplicate a live
turn/completed against this member by it.
terminal: TurnTerminalThe turn’s terminal.
reason: Option<String>Copied when the turn/completed carried it; a synthesized host-death
failed terminal carries only this (crash, crash_inferred, or
incomplete). Free display text: clients never branch on it.
error: Option<TurnError>Copied when the turn/completed carried it: runtime failed terminals
do, host-death failed terminals do not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LastTurn
impl<'de> Deserialize<'de> for LastTurn
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
impl StructuralPartialEq for LastTurn
Auto Trait Implementations§
impl Forget for LastTurn
impl Freeze for LastTurn
impl Move for LastTurn
impl RefUnwindSafe for LastTurn
impl Send for LastTurn
impl Sync for LastTurn
impl Unpin for LastTurn
impl UnsafeUnpin for LastTurn
impl UnwindSafe for LastTurn
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