pub struct Session {
pub id: SessionId,
pub project_id: ProjectId,
pub experiment_id: Option<ExperimentId>,
pub variant: SessionVariant,
pub config_id: ConfigId,
pub started_at: DateTime<Utc>,
pub ended_at: DateTime<Utc>,
pub adapter_session_ref: Option<String>,
}Expand description
One recorded user session.
Fields§
§id: SessionIdSession identity.
project_id: ProjectIdOwning project.
experiment_id: Option<ExperimentId>Experiment active when the session started, if any.
variant: SessionVariantWhich variant was deployed for this session.
config_id: ConfigIdThe exact config row that was active.
started_at: DateTime<Utc>Start time.
ended_at: DateTime<Utc>End time.
adapter_session_ref: Option<String>Opaque adapter-specific reference (e.g., transcript filename).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more