pub struct WikiSessionInfo {
pub wiki_id: String,
pub tool: String,
pub path: PathBuf,
pub status: WikiSessionStatus,
pub mjolnir_session_id: Option<String>,
pub profile_id: Option<String>,
pub target_template_id: Option<String>,
pub harness: Option<HarnessKind>,
pub title: String,
pub project: String,
pub nothing_to_restore: bool,
}Expand description
One row of the SessionWiki index, with what Mjolnir knows about it.
This is what mj resume --wiki branches on and what mj sessions --session reports when the id names no Mjolnir session.
Fields§
§wiki_id: StringThe SessionWiki id of the row.
tool: StringThe tool that produced the session, as SessionWiki names it.
path: PathBufThe transcript path the index stores for the row.
status: WikiSessionStatus§mjolnir_session_id: Option<String>The Mjolnir session id, for a row Mjolnir itself published.
profile_id: Option<String>The profile the session last ran under, from the index’s own tags.
target_template_id: Option<String>The target template the session ran on, from the index’s own tags.
harness: Option<HarnessKind>The harness that drove the session, from the tags for a Mjolnir row and from the tool name for a native one.
title: String§project: String§nothing_to_restore: boolSet for an archived Mjolnir row whose transcript holds no prompt,
which mj resume --wiki has nothing to restore from. Sent only when
set, so a daemon that predates it and a client that predates it both
read every other row unchanged.
Trait Implementations§
Source§impl Clone for WikiSessionInfo
impl Clone for WikiSessionInfo
Source§fn clone(&self) -> WikiSessionInfo
fn clone(&self) -> WikiSessionInfo
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 WikiSessionInfo
impl Debug for WikiSessionInfo
Source§impl<'de> Deserialize<'de> for WikiSessionInfo
impl<'de> Deserialize<'de> for WikiSessionInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WikiSessionInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WikiSessionInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for WikiSessionInfo
Source§impl PartialEq for WikiSessionInfo
impl PartialEq for WikiSessionInfo
Source§impl Serialize for WikiSessionInfo
impl Serialize for WikiSessionInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for WikiSessionInfo
Auto Trait Implementations§
impl Freeze for WikiSessionInfo
impl RefUnwindSafe for WikiSessionInfo
impl Send for WikiSessionInfo
impl Sync for WikiSessionInfo
impl Unpin for WikiSessionInfo
impl UnsafeUnpin for WikiSessionInfo
impl UnwindSafe for WikiSessionInfo
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
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<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.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> ⓘ
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> ⓘ
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