#[non_exhaustive]pub enum WorkspacePlacement {
Shared,
Isolated,
Unknown(String),
}Expand description
A subagent child’s workspace placement: shared when the spawn requested no
worktree isolation, isolated when it did. Open; unknown values read as
unknown. Experimental.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The child shares its parent’s workspace.
Isolated
The child runs in its own worktree.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for WorkspacePlacement
impl Clone for WorkspacePlacement
Source§impl Debug for WorkspacePlacement
impl Debug for WorkspacePlacement
Source§impl<'de> Deserialize<'de> for WorkspacePlacement
impl<'de> Deserialize<'de> for WorkspacePlacement
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 Eq for WorkspacePlacement
Source§impl PartialEq for WorkspacePlacement
impl PartialEq for WorkspacePlacement
Source§impl Serialize for WorkspacePlacement
impl Serialize for WorkspacePlacement
impl StructuralPartialEq for WorkspacePlacement
Auto Trait Implementations§
impl Forget for WorkspacePlacement
impl Freeze for WorkspacePlacement
impl Move for WorkspacePlacement
impl RefUnwindSafe for WorkspacePlacement
impl Send for WorkspacePlacement
impl Sync for WorkspacePlacement
impl Unpin for WorkspacePlacement
impl UnsafeUnpin for WorkspacePlacement
impl UnwindSafe for WorkspacePlacement
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