pub struct OpenSession {
pub session_id: String,
pub started_at: String,
pub owner: String,
pub worker: String,
pub provider: String,
pub provider_session: String,
pub branch: String,
pub start_head: String,
pub foreign: bool,
}Expand description
The open episode this checkout points at, when there is one.
One execution episode belongs to one provider session, and several can be open in one
checkout at once — two windows of the same provider are two workers. What is read here
is state/session-current.yaml, the pointer to the episode of this checkout; a worker
that knows its own provider session resolves its own episode instead, which is what
mj_session_here_file in lib/common.sh does and what stamps each ledger line.
Fields§
§session_id: StringThe episode’s id.
started_at: StringWhen it opened.
owner: StringWho opened it.
worker: StringThe worker identity, when one was supplied. Never inferred.
provider: StringThe provider whose event opened it, when one did.
provider_session: StringThat provider’s own session identity — the string the prompt archive stamps on the same worker’s records, and the name this episode is keyed by. Empty for an episode opened by hand, which is the one episode no provider session owns.
branch: StringThe branch it opened on.
start_head: StringThe commit it opened at.
foreign: boolTrue when the open record here belongs to another checkout. Such a record is reported and never treated as this checkout’s episode.
Trait Implementations§
Source§impl Clone for OpenSession
impl Clone for OpenSession
Source§fn clone(&self) -> OpenSession
fn clone(&self) -> OpenSession
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 OpenSession
impl Debug for OpenSession
Source§impl<'de> Deserialize<'de> for OpenSession
impl<'de> Deserialize<'de> for OpenSession
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 OpenSession
Source§impl JsonSchema for OpenSession
impl JsonSchema for OpenSession
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for OpenSession
impl PartialEq for OpenSession
Source§fn eq(&self, other: &OpenSession) -> bool
fn eq(&self, other: &OpenSession) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenSession
impl Serialize for OpenSession
impl StructuralPartialEq for OpenSession
Auto Trait Implementations§
impl Freeze for OpenSession
impl RefUnwindSafe for OpenSession
impl Send for OpenSession
impl Sync for OpenSession
impl Unpin for OpenSession
impl UnsafeUnpin for OpenSession
impl UnwindSafe for OpenSession
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.