pub struct InvestigationState {
pub session_id: String,
pub turns: Vec<InvestigationTurn>,
pub created_at: SystemTime,
pub last_active: SystemTime,
/* private fields */
}Expand description
The accumulated state of one investigation session.
Fields§
§session_id: StringThe session identifier.
turns: Vec<InvestigationTurn>Completed turns in chronological order.
created_at: SystemTimeWhen the session was first created.
last_active: SystemTimeWhen the session was last updated.
Implementations§
Source§impl InvestigationState
impl InvestigationState
Sourcepub fn turn_count(&self) -> usize
pub fn turn_count(&self) -> usize
Number of completed turns.
Trait Implementations§
Source§impl Clone for InvestigationState
impl Clone for InvestigationState
Source§fn clone(&self) -> InvestigationState
fn clone(&self) -> InvestigationState
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 InvestigationState
impl Debug for InvestigationState
Source§impl<'de> Deserialize<'de> for InvestigationState
impl<'de> Deserialize<'de> for InvestigationState
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
Auto Trait Implementations§
impl Freeze for InvestigationState
impl RefUnwindSafe for InvestigationState
impl Send for InvestigationState
impl Sync for InvestigationState
impl Unpin for InvestigationState
impl UnsafeUnpin for InvestigationState
impl UnwindSafe for InvestigationState
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