#[non_exhaustive]pub enum RequestPermissionOutcome {
Cancelled,
Selected(SelectedPermissionOutcome),
Other(OtherRequestPermissionOutcome),
}unstable_protocol_v2 only.Expand description
The outcome of a permission request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Cancelled
Active session work was cancelled before the user responded.
When a client sends a session/cancel notification to cancel active
session work, it MUST respond to all pending session/request_permission
requests with this Cancelled outcome.
See protocol docs: Cancellation
Selected(SelectedPermissionOutcome)
The user selected one of the provided options.
Other(OtherRequestPermissionOutcome)
Custom or future permission outcome.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
Agents that do not understand this outcome MUST NOT treat it as approval. They should preserve the raw payload when storing, replaying, proxying, or forwarding permission responses, and otherwise fail or decline the permission request according to policy.
Trait Implementations§
Source§impl Clone for RequestPermissionOutcome
impl Clone for RequestPermissionOutcome
Source§fn clone(&self) -> RequestPermissionOutcome
fn clone(&self) -> RequestPermissionOutcome
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 RequestPermissionOutcome
impl Debug for RequestPermissionOutcome
Source§impl<'de> Deserialize<'de> for RequestPermissionOutcome
impl<'de> Deserialize<'de> for RequestPermissionOutcome
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 RequestPermissionOutcome
Source§impl IntoV1 for RequestPermissionOutcome
impl IntoV1 for RequestPermissionOutcome
Source§impl JsonSchema for RequestPermissionOutcome
impl JsonSchema for RequestPermissionOutcome
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 RequestPermissionOutcome
impl PartialEq for RequestPermissionOutcome
Source§fn eq(&self, other: &RequestPermissionOutcome) -> bool
fn eq(&self, other: &RequestPermissionOutcome) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RequestPermissionOutcome
impl Serialize for RequestPermissionOutcome
impl StructuralPartialEq for RequestPermissionOutcome
Auto Trait Implementations§
impl Freeze for RequestPermissionOutcome
impl RefUnwindSafe for RequestPermissionOutcome
impl Send for RequestPermissionOutcome
impl Sync for RequestPermissionOutcome
impl Unpin for RequestPermissionOutcome
impl UnsafeUnpin for RequestPermissionOutcome
impl UnwindSafe for RequestPermissionOutcome
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.