pub struct RuntimeSessionCatalogEntry { /* private fields */ }Expand description
Small RuntimeStore-owned catalog projection for session listing and lifecycle discovery.
This is intentionally incapable of carrying transcript, graph, component, or serialized Session body data. WholeBlob and HeadCanonical stores update it in the same atomic commit as their physical session authority.
Implementations§
Source§impl RuntimeSessionCatalogEntry
impl RuntimeSessionCatalogEntry
Sourcepub fn from_session(
session: &Session,
persistence_profile: RuntimeSessionPersistenceProfile,
runtime_state: Option<RuntimeState>,
) -> Result<Self, RuntimeStoreError>
pub fn from_session( session: &Session, persistence_profile: RuntimeSessionPersistenceProfile, runtime_state: Option<RuntimeState>, ) -> Result<Self, RuntimeStoreError>
Derive a validated, body-free catalog projection from a typed Session.
This value is listing metadata only. It does not certify the Session,
issue store authority, authorize adoption, or prove that any physical
row is current. A custom RuntimeStore must commit the returned entry
atomically with the physical body and its own store-issued authority.
Malformed catalog-owned metadata is rejected rather than omitted.
Sourcepub fn from_head(
head: &SessionHead,
persistence_profile: RuntimeSessionPersistenceProfile,
runtime_state: Option<RuntimeState>,
) -> Result<Self, RuntimeStoreError>
pub fn from_head( head: &SessionHead, persistence_profile: RuntimeSessionPersistenceProfile, runtime_state: Option<RuntimeState>, ) -> Result<Self, RuntimeStoreError>
Derive a validated, body-free catalog projection from a canonical head.
This is the HeadCanonical counterpart of Self::from_session. It
materializes only the head’s bounded catalog metadata projection and
does not mint CAS authority or authorize a store transition. The custom
backend remains responsible for atomically committing this projection
with its exact physical head and store-issued authority.
pub fn session_id(&self) -> &SessionId
pub const fn persistence_profile(&self) -> RuntimeSessionPersistenceProfile
pub const fn created_at(&self) -> SystemTime
pub const fn updated_at(&self) -> SystemTime
pub const fn message_count(&self) -> usize
pub const fn total_tokens(&self) -> u64
pub fn labels(&self) -> &BTreeMap<String, String>
pub const fn lifecycle_terminal(&self) -> Option<SessionLifecycleTerminal>
pub const fn runtime_state(&self) -> Option<RuntimeState>
Trait Implementations§
Source§impl Clone for RuntimeSessionCatalogEntry
impl Clone for RuntimeSessionCatalogEntry
Source§fn clone(&self) -> RuntimeSessionCatalogEntry
fn clone(&self) -> RuntimeSessionCatalogEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeSessionCatalogEntry
impl Debug for RuntimeSessionCatalogEntry
Source§impl<'de> Deserialize<'de> for RuntimeSessionCatalogEntry
impl<'de> Deserialize<'de> for RuntimeSessionCatalogEntry
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>,
impl Eq for RuntimeSessionCatalogEntry
impl StructuralPartialEq for RuntimeSessionCatalogEntry
Auto Trait Implementations§
impl Freeze for RuntimeSessionCatalogEntry
impl RefUnwindSafe for RuntimeSessionCatalogEntry
impl Send for RuntimeSessionCatalogEntry
impl Sync for RuntimeSessionCatalogEntry
impl Unpin for RuntimeSessionCatalogEntry
impl UnsafeUnpin for RuntimeSessionCatalogEntry
impl UnwindSafe for RuntimeSessionCatalogEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.