pub struct SessionArchiveMetadata {Show 14 fields
pub workspace_label: String,
pub workspace_path: String,
pub model: String,
pub provider: String,
pub theme: String,
pub reasoning_effort: String,
pub debug_log_path: Option<String>,
pub loaded_skills: Vec<String>,
pub prompt_cache_lineage_id: Option<String>,
pub external_thread_id: Option<String>,
pub parent_session_id: Option<String>,
pub primary_agent: Option<String>,
pub fork_mode: Option<SessionForkMode>,
pub continuation_metadata: Option<SessionContinuationMetadata>,
}Fields§
§workspace_label: String§workspace_path: String§model: String§provider: String§theme: String§reasoning_effort: String§debug_log_path: Option<String>§loaded_skills: Vec<String>Names of skills loaded in this session
prompt_cache_lineage_id: Option<String>§external_thread_id: Option<String>§parent_session_id: Option<String>§primary_agent: Option<String>§fork_mode: Option<SessionForkMode>§continuation_metadata: Option<SessionContinuationMetadata>Implementations§
Source§impl SessionArchiveMetadata
impl SessionArchiveMetadata
pub fn new( workspace_label: impl Into<String>, workspace_path: impl Into<String>, model: impl Into<String>, provider: impl Into<String>, theme: impl Into<String>, reasoning_effort: impl Into<String>, ) -> Self
Sourcepub fn with_loaded_skills(self, skills: Vec<String>) -> Self
pub fn with_loaded_skills(self, skills: Vec<String>) -> Self
Set loaded skills for this session
Sourcepub fn with_debug_log_path(self, path: Option<String>) -> Self
pub fn with_debug_log_path(self, path: Option<String>) -> Self
Set debug log path associated with this archive.
pub fn with_prompt_cache_lineage_id(self, lineage_id: impl Into<String>) -> Self
pub fn with_external_thread_id(self, thread_id: impl Into<String>) -> Self
pub fn ensure_prompt_cache_lineage_id(self) -> Self
pub fn with_parent_session_id(self, session_id: impl Into<String>) -> Self
pub fn with_primary_agent(self, primary_agent: impl Into<String>) -> Self
pub fn with_fork_mode(self, fork_mode: SessionForkMode) -> Self
pub fn with_continuation_metadata( self, continuation_metadata: Option<SessionContinuationMetadata>, ) -> Self
pub fn budget_limit_continuation(&self) -> Option<&SessionContinuationMetadata>
Trait Implementations§
Source§impl Clone for SessionArchiveMetadata
impl Clone for SessionArchiveMetadata
Source§impl Debug for SessionArchiveMetadata
impl Debug for SessionArchiveMetadata
Source§impl<'de> Deserialize<'de> for SessionArchiveMetadata
impl<'de> Deserialize<'de> for SessionArchiveMetadata
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 SessionArchiveMetadata
Source§impl PartialEq for SessionArchiveMetadata
impl PartialEq for SessionArchiveMetadata
Source§impl Serialize for SessionArchiveMetadata
impl Serialize for SessionArchiveMetadata
impl StructuralPartialEq for SessionArchiveMetadata
Auto Trait Implementations§
impl Forget for SessionArchiveMetadata
impl Freeze for SessionArchiveMetadata
impl Move for SessionArchiveMetadata
impl RefUnwindSafe for SessionArchiveMetadata
impl Send for SessionArchiveMetadata
impl Sync for SessionArchiveMetadata
impl Unpin for SessionArchiveMetadata
impl UnsafeUnpin for SessionArchiveMetadata
impl UnwindSafe for SessionArchiveMetadata
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
impl<T> CacheValue for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
Compare self to
key and return true if they are equal.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 more