pub struct SessionRole {
pub command: String,
pub cwd: Option<String>,
pub recursion_guard_env: Option<String>,
pub detach: bool,
pub env_remove: Vec<String>,
pub keys: Vec<String>,
}Expand description
[session.<role>] — one opaque outbound command template plus its spawn
context. Model/tools/flags all live inside command, never as fields
(MANIFEST §session roles). No nested tables here (keeps TOML round-trip
emission scalar-before-table clean).
Fields§
§command: StringOpaque command line, with {key} substitution placeholders.
cwd: Option<String>§recursion_guard_env: Option<String>Env var set on summarizer children so their own hooks bail (recursion guard).
detach: bool§env_remove: Vec<String>Env vars to strip from the child’s inherited environment.
keys: Vec<String>Substitution keys spt-core guarantees to fill for this role.
Trait Implementations§
Source§impl Clone for SessionRole
impl Clone for SessionRole
Source§fn clone(&self) -> SessionRole
fn clone(&self) -> SessionRole
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionRole
impl Debug for SessionRole
Source§impl<'de> Deserialize<'de> for SessionRole
impl<'de> Deserialize<'de> for SessionRole
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
Source§impl JsonSchema for SessionRole
impl JsonSchema for SessionRole
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SessionRole
impl PartialEq for SessionRole
Source§impl Serialize for SessionRole
impl Serialize for SessionRole
impl StructuralPartialEq for SessionRole
Auto Trait Implementations§
impl Freeze for SessionRole
impl RefUnwindSafe for SessionRole
impl Send for SessionRole
impl Sync for SessionRole
impl Unpin for SessionRole
impl UnwindSafe for SessionRole
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