#[non_exhaustive]pub enum PermissionResolution {
Selected {
option_id: PermissionOptionId,
},
Cancelled,
}Expand description
The user’s response to an Ask.
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.
Selected
The user selected an option; option_id is provided by the ACP
PermissionOption.
Fields
§
option_id: PermissionOptionIdCancelled
The user cancelled the turn before making a selection.
Trait Implementations§
Source§impl Clone for PermissionResolution
impl Clone for PermissionResolution
Source§fn clone(&self) -> PermissionResolution
fn clone(&self) -> PermissionResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionResolution
impl Debug for PermissionResolution
Source§impl<'de> Deserialize<'de> for PermissionResolution
impl<'de> Deserialize<'de> for PermissionResolution
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 PermissionResolution
Source§impl PartialEq for PermissionResolution
impl PartialEq for PermissionResolution
Source§fn eq(&self, other: &PermissionResolution) -> bool
fn eq(&self, other: &PermissionResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PermissionResolution
impl Serialize for PermissionResolution
impl StructuralPartialEq for PermissionResolution
Auto Trait Implementations§
impl Freeze for PermissionResolution
impl RefUnwindSafe for PermissionResolution
impl Send for PermissionResolution
impl Sync for PermissionResolution
impl Unpin for PermissionResolution
impl UnsafeUnpin for PermissionResolution
impl UnwindSafe for PermissionResolution
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