pub struct SessionWorkingDirectoryRemovedAction {
pub directory: Uri,
}Expand description
A working directory was removed from the session’s {@link SessionState.workingDirectories} set.
Removes directory from the set; a no-op when it is not present. There is no
atomic backend “remove one” primitive — a host reconfigures its agent to the
reduced set — so this action is safe to model as idempotent. A host MAY
decline to apply the removal (e.g. an immutable primary directory, see
{@link MultipleWorkingDirectoriesCapability.immutablePrimary}); it then leaves
the set unchanged. When the agent advertises
{@link MultipleWorkingDirectoriesCapability.primaryReplacement}, clients MUST
NOT use this generic membership action to remove index 0; the host MUST
reject such a removal, leaving the protected slot intact.
Fields§
§directory: UriThe working directory to revoke the session’s agent tool access to.
Trait Implementations§
Source§impl Clone for SessionWorkingDirectoryRemovedAction
impl Clone for SessionWorkingDirectoryRemovedAction
Source§fn clone(&self) -> SessionWorkingDirectoryRemovedAction
fn clone(&self) -> SessionWorkingDirectoryRemovedAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more