pub struct SessionMutation {
pub harness: String,
pub session: Option<String>,
pub cwd: Option<PathBuf>,
pub connection: Option<String>,
pub base_url: Option<String>,
pub bearer: Option<String>,
pub profile: Option<String>,
pub surface: Option<String>,
pub homes: HarnessHomes,
}Expand description
One mutating request, in the uniform Domain 11 vocabulary.
Fields§
§harness: StringHarness that owns the conversation.
session: Option<String>Harness-native conversation id, or supercode session name. Required
for every verb but new.
cwd: Option<PathBuf>Working directory the new conversation belongs to (new).
connection: Option<String>Live runtime connection id, for the slash-command doors.
base_url: Option<String>Already-running OpenCode server this conversation lives on. Without it the HTTP door is refused rather than guessing an endpoint.
bearer: Option<String>Bearer credential for the OpenCode server, when it requires one. Never narrated.
profile: Option<String>Hermes profile name — a profile IS a full HERMES_HOME. For the
orchestrator it is the profile FOLDER the binding belongs to.
surface: Option<String>ORC-13: the surface key a conversation is bound to, in the IR’s own
rendering (platform|chat_type|chat_id|thread_id|participant_id).
This is how the orchestrator’s conversations are named — its binding
has no id of its own, only the surface it holds.
homes: HarnessHomesStorage roots, so an isolated home is addressed the same way the read side addresses it.
Trait Implementations§
Source§impl Clone for SessionMutation
impl Clone for SessionMutation
Source§fn clone(&self) -> SessionMutation
fn clone(&self) -> SessionMutation
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 SessionMutation
impl Debug for SessionMutation
Source§impl Default for SessionMutation
impl Default for SessionMutation
Source§fn default() -> SessionMutation
fn default() -> SessionMutation
Source§impl<'de> Deserialize<'de> for SessionMutation
impl<'de> Deserialize<'de> for SessionMutation
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 SessionMutation
Source§impl PartialEq for SessionMutation
impl PartialEq for SessionMutation
Source§impl Serialize for SessionMutation
impl Serialize for SessionMutation
impl StructuralPartialEq for SessionMutation
Auto Trait Implementations§
impl Freeze for SessionMutation
impl RefUnwindSafe for SessionMutation
impl Send for SessionMutation
impl Sync for SessionMutation
impl Unpin for SessionMutation
impl UnsafeUnpin for SessionMutation
impl UnwindSafe for SessionMutation
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§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.