pub enum RemediationAction {
SignIn,
SwitchAccount,
ShowAccount,
ReviewSandboxPolicy,
AllowSandboxOutbound,
Unknown,
}Expand description
What the user must do to recover from a failure, named as an action rather than as one client’s affordance. The runtime cannot know which affordance a client offers — a slash command, a settings pane, a link — so the accompanying message stays host-agnostic and each client renders its own copy from this value. Absent when the runtime knows of no action the user can take.
Variants§
SignIn
Authenticate again with the Copilot backend. The current credential is absent, expired, or rejected.
SwitchAccount
Authenticate as a different account. The current account exists but lacks access to the requested resource.
ShowAccount
Inspect which account is currently authenticated before deciding what to change.
ReviewSandboxPolicy
Review or widen the sandbox policy. The blocked path or host is named by the accompanying message or by the tool result the action arrived with.
AllowSandboxOutbound
Permit outbound network access in the sandbox policy.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for RemediationAction
impl Clone for RemediationAction
Source§fn clone(&self) -> RemediationAction
fn clone(&self) -> RemediationAction
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 RemediationAction
impl Debug for RemediationAction
Source§impl Default for RemediationAction
impl Default for RemediationAction
Source§fn default() -> RemediationAction
fn default() -> RemediationAction
Source§impl<'de> Deserialize<'de> for RemediationAction
impl<'de> Deserialize<'de> for RemediationAction
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 RemediationAction
Source§impl PartialEq for RemediationAction
impl PartialEq for RemediationAction
Source§impl Serialize for RemediationAction
impl Serialize for RemediationAction
impl StructuralPartialEq for RemediationAction
Auto Trait Implementations§
impl Freeze for RemediationAction
impl RefUnwindSafe for RemediationAction
impl Send for RemediationAction
impl Sync for RemediationAction
impl Unpin for RemediationAction
impl UnsafeUnpin for RemediationAction
impl UnwindSafe for RemediationAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.