pub struct AskOption {
pub id: PermissionOptionId,
pub name: String,
pub kind: PermissionOptionKind,
pub allows: bool,
}Expand description
A permission option presented to the user.
kind is the ACP UI hint; allows is the policy-level “allow/deny” decision.
They are usually consistent (AllowOnce / AllowAlways → allows = true), but
decoupling
lets future partial-allow options like AllowReadOnly be added without breaking the
current shape.
Fields§
§id: PermissionOptionId§name: String§kind: PermissionOptionKind§allows: boolWhether the user’s selection allows (true) or denies (false) this option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AskOption
impl<'de> Deserialize<'de> for AskOption
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 AskOption
impl StructuralPartialEq for AskOption
Auto Trait Implementations§
impl Freeze for AskOption
impl RefUnwindSafe for AskOption
impl Send for AskOption
impl Sync for AskOption
impl Unpin for AskOption
impl UnsafeUnpin for AskOption
impl UnwindSafe for AskOption
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