pub struct SessionSelector { /* private fields */ }Expand description
Selects and loads sessions
Implementations§
Source§impl SessionSelector
impl SessionSelector
Sourcepub fn list_sessions(&self) -> Vec<SessionInfo>
pub fn list_sessions(&self) -> Vec<SessionInfo>
List all available sessions for this project, sorted by most recent first
Sourcepub fn find_session(&self, identifier: &str) -> Option<SessionInfo>
pub fn find_session(&self, identifier: &str) -> Option<SessionInfo>
Find a session by identifier (UUID, partial UUID, or numeric index)
Sourcepub fn resolve_session(&self, arg: &str) -> Option<SessionInfo>
pub fn resolve_session(&self, arg: &str) -> Option<SessionInfo>
Resolve “latest” or specific identifier to a session
Sourcepub fn load_conversation(
&self,
session_info: &SessionInfo,
) -> Result<ConversationRecord>
pub fn load_conversation( &self, session_info: &SessionInfo, ) -> Result<ConversationRecord>
Load a full conversation record from a session
Auto Trait Implementations§
impl Freeze for SessionSelector
impl RefUnwindSafe for SessionSelector
impl Send for SessionSelector
impl Sync for SessionSelector
impl Unpin for SessionSelector
impl UnwindSafe for SessionSelector
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> 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> 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 moreCreates a shared type from an unshared type.