#[non_exhaustive]pub struct Info {
pub session_id: String,
pub model: Option<String>,
pub mode: Option<String>,
pub cwd: Option<String>,
pub harness_version: String,
pub commands: Vec<String>,
pub resumed: bool,
pub client_tools: Vec<String>,
}Expand description
init: the session’s facts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe session’s id.
model: Option<String>The model the session runs.
mode: Option<String>The session’s mode.
cwd: Option<String>The session’s working folder, where harness reports one.
harness_version: StringThe harness version.
commands: Vec<String>The commands this harness takes.
resumed: boolWhether this is a resumed session.
client_tools: Vec<String>The client tools’ names, in order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Info
impl<'de> Deserialize<'de> for Info
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 StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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