pub enum ExitHint {
Bare,
Provided(String),
}Expand description
State of the --exit flag for a single session.
Bare means --exit was passed with no argument — the agent must
terminate via zag ps kill self, but the result is unconstrained.
Provided(s) carries a non-empty human-readable description and also
makes zag ps kill require a non-empty result.
On-disk JSON shape is intentionally a string: "" for Bare, "foo"
for Provided("foo"). A missing field (None in Option<ExitHint>)
means --exit was not set at all. This keeps the disk format flat and
human-inspectable while giving Rust callers a typed enum instead of
the previous Option<Option<String>>.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExitHint
impl<'de> Deserialize<'de> for ExitHint
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExitHint
impl StructuralPartialEq for ExitHint
Auto Trait Implementations§
impl Freeze for ExitHint
impl RefUnwindSafe for ExitHint
impl Send for ExitHint
impl Sync for ExitHint
impl Unpin for ExitHint
impl UnsafeUnpin for ExitHint
impl UnwindSafe for ExitHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.