pub struct SessionRecord {Show 20 fields
pub session_id: SessionId,
pub namespace_id: String,
pub owner_id: Option<String>,
pub revision: u64,
pub deletion_fence: SessionDeletionFence,
pub title: Option<String>,
pub workspace: Option<String>,
pub profile: Option<String>,
pub status: SessionStatus,
pub state: ResumableState,
pub environment_state: Option<EnvironmentStateRef>,
pub stream_cursors: Vec<StreamCursorRef>,
pub trace_context: TraceContext,
pub parent_session_id: Option<SessionId>,
pub head_run_id: Option<RunId>,
pub head_success_run_id: Option<RunId>,
pub active_run_id: Option<RunId>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub metadata: Metadata,
}Expand description
Durable session record.
Fields§
§session_id: SessionIdSession id.
namespace_id: StringHost-derived store/tenant namespace. Legacy records default to local.
owner_id: Option<String>Host-derived owner/principal. Lineage and metadata never assign authority.
revision: u64Monotonic optimistic concurrency revision.
deletion_fence: SessionDeletionFenceDeletion/continuation fence.
title: Option<String>User-facing title.
workspace: Option<String>Workspace identifier or path.
profile: Option<String>Runtime profile or model profile name.
status: SessionStatusSession status.
state: ResumableStateLast exported context state.
environment_state: Option<EnvironmentStateRef>Latest exported environment state reference.
stream_cursors: Vec<StreamCursorRef>Latest stream cursor refs by family.
trace_context: TraceContextSession trace context.
parent_session_id: Option<SessionId>Parent session id for forks or delegated flows.
head_run_id: Option<RunId>Latest run in the session sequence.
head_success_run_id: Option<RunId>Latest completed run usable as continuation source.
active_run_id: Option<RunId>Currently queued, running, or waiting run.
created_at: DateTime<Utc>Creation time.
updated_at: DateTime<Utc>Last update time.
metadata: MetadataMetadata.
Implementations§
Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§fn clone(&self) -> SessionRecord
fn clone(&self) -> SessionRecord
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 SessionRecord
impl Debug for SessionRecord
Source§impl<'de> Deserialize<'de> for SessionRecord
impl<'de> Deserialize<'de> for SessionRecord
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 SessionRecord
Source§impl PartialEq for SessionRecord
impl PartialEq for SessionRecord
Source§impl Serialize for SessionRecord
impl Serialize for SessionRecord
impl StructuralPartialEq for SessionRecord
Source§impl VersionedRecord for SessionRecord
impl VersionedRecord for SessionRecord
Source§const ALLOW_BARE_V0: bool = true
const ALLOW_BARE_V0: bool = true
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnsafeUnpin for SessionRecord
impl UnwindSafe for SessionRecord
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