#[non_exhaustive]pub struct RecordedSession {
pub id: String,
pub started_at: DateTime<Utc>,
pub events: Vec<RecordedEvent>,
pub checkpoints: Vec<StateCheckpoint>,
}Expand description
A complete recorded session with events and state checkpoints. Serializable for export/import.
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.id: StringUnique session identifier (UUID).
started_at: DateTime<Utc>When the recording session began.
events: Vec<RecordedEvent>All events captured during the session, in order.
checkpoints: Vec<StateCheckpoint>State checkpoints created during the session.
Implementations§
Source§impl RecordedSession
impl RecordedSession
Sourcepub fn new(
id: impl Into<String>,
started_at: DateTime<Utc>,
events: Vec<RecordedEvent>,
checkpoints: Vec<StateCheckpoint>,
) -> Self
pub fn new( id: impl Into<String>, started_at: DateTime<Utc>, events: Vec<RecordedEvent>, checkpoints: Vec<StateCheckpoint>, ) -> Self
Creates a recorded session from its parts (e.g. when importing a
session built outside a live EventRecorder).
Trait Implementations§
Source§impl Clone for RecordedSession
impl Clone for RecordedSession
Source§impl Debug for RecordedSession
impl Debug for RecordedSession
Source§impl<'de> Deserialize<'de> for RecordedSession
impl<'de> Deserialize<'de> for RecordedSession
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 Eq for RecordedSession
Source§impl PartialEq for RecordedSession
impl PartialEq for RecordedSession
Source§impl Serialize for RecordedSession
impl Serialize for RecordedSession
impl StructuralPartialEq for RecordedSession
Auto Trait Implementations§
impl Freeze for RecordedSession
impl RefUnwindSafe for RecordedSession
impl Send for RecordedSession
impl Sync for RecordedSession
impl Unpin for RecordedSession
impl UnsafeUnpin for RecordedSession
impl UnwindSafe for RecordedSession
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