#[non_exhaustive]pub struct TerminalExitStatus {
pub exit_code: Option<u32>,
pub signal: Option<String>,
pub meta: Option<Meta>,
}Expand description
Exit status of a terminal command.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exit_code: Option<u32>The process exit code (may be null if terminated by signal).
signal: Option<String>The signal that terminated the process (may be null if exited normally).
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl TerminalExitStatus
impl TerminalExitStatus
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds TerminalExitStatus with the required fields set; optional fields start unset or empty.
Sourcepub fn exit_code(self, exit_code: impl IntoOption<u32>) -> Self
pub fn exit_code(self, exit_code: impl IntoOption<u32>) -> Self
The process exit code (may be null if terminated by signal).
Sourcepub fn signal(self, signal: impl IntoOption<String>) -> Self
pub fn signal(self, signal: impl IntoOption<String>) -> Self
The signal that terminated the process (may be null if exited normally).
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for TerminalExitStatus
impl Clone for TerminalExitStatus
Source§fn clone(&self) -> TerminalExitStatus
fn clone(&self) -> TerminalExitStatus
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 TerminalExitStatus
impl Debug for TerminalExitStatus
Source§impl Default for TerminalExitStatus
impl Default for TerminalExitStatus
Source§fn default() -> TerminalExitStatus
fn default() -> TerminalExitStatus
Source§impl<'de> Deserialize<'de> for TerminalExitStatus
impl<'de> Deserialize<'de> for TerminalExitStatus
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 TerminalExitStatus
Source§impl JsonSchema for TerminalExitStatus
impl JsonSchema for TerminalExitStatus
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 TerminalExitStatus
impl PartialEq for TerminalExitStatus
Source§fn eq(&self, other: &TerminalExitStatus) -> bool
fn eq(&self, other: &TerminalExitStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TerminalExitStatus
impl Serialize for TerminalExitStatus
impl StructuralPartialEq for TerminalExitStatus
Auto Trait Implementations§
impl Freeze for TerminalExitStatus
impl RefUnwindSafe for TerminalExitStatus
impl Send for TerminalExitStatus
impl Sync for TerminalExitStatus
impl Unpin for TerminalExitStatus
impl UnsafeUnpin for TerminalExitStatus
impl UnwindSafe for TerminalExitStatus
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
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.