pub struct SessionCatalogEntry { /* private fields */ }Expand description
Immutable host-facing catalog entry derived from durable session state.
Implementations§
Source§impl SessionCatalogEntry
impl SessionCatalogEntry
Sourcepub fn from_snapshot(
snapshot: &SessionSnapshot,
name: Option<SessionName>,
) -> Result<Self, SessionStoreError>
pub fn from_snapshot( snapshot: &SessionSnapshot, name: Option<SessionName>, ) -> Result<Self, SessionStoreError>
Builds a catalog projection from one immutable durable snapshot.
§Errors
Returns an error when the snapshot has no durable records.
Sourcepub const fn session_id(&self) -> SessionId
pub const fn session_id(&self) -> SessionId
Returns session identity.
Sourcepub const fn name(&self) -> Option<&SessionName>
pub const fn name(&self) -> Option<&SessionName>
Returns the optional display name.
Sourcepub const fn updated_at(&self) -> ProtocolTimestamp
pub const fn updated_at(&self) -> ProtocolTimestamp
Returns the latest durable record timestamp.
Sourcepub const fn profile_id(&self) -> &ProfileId
pub const fn profile_id(&self) -> &ProfileId
Returns the active product profile.
Sourcepub const fn provider_id(&self) -> Option<&ProviderId>
pub const fn provider_id(&self) -> Option<&ProviderId>
Returns the active provider when configured.
Sourcepub const fn model_ref(&self) -> Option<&ModelRef>
pub const fn model_ref(&self) -> Option<&ModelRef>
Returns the provider-qualified active model when configured.
Sourcepub const fn message_count(&self) -> usize
pub const fn message_count(&self) -> usize
Returns the active transcript message count.
Sourcepub const fn pending_approval_count(&self) -> usize
pub const fn pending_approval_count(&self) -> usize
Returns the number of pending durable approvals.
Trait Implementations§
Source§impl Clone for SessionCatalogEntry
impl Clone for SessionCatalogEntry
Source§fn clone(&self) -> SessionCatalogEntry
fn clone(&self) -> SessionCatalogEntry
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 SessionCatalogEntry
impl Debug for SessionCatalogEntry
impl Eq for SessionCatalogEntry
Source§impl PartialEq for SessionCatalogEntry
impl PartialEq for SessionCatalogEntry
impl StructuralPartialEq for SessionCatalogEntry
Auto Trait Implementations§
impl Freeze for SessionCatalogEntry
impl RefUnwindSafe for SessionCatalogEntry
impl Send for SessionCatalogEntry
impl Sync for SessionCatalogEntry
impl Unpin for SessionCatalogEntry
impl UnsafeUnpin for SessionCatalogEntry
impl UnwindSafe for SessionCatalogEntry
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