pub struct Ask {
pub text: Option<String>,
pub allow: Option<String>,
pub deny: Option<String>,
pub always: Option<AskAlways>,
pub scopes: Vec<AskScope>,
pub scope: Option<String>,
}Expand description
The contents of a tool’s approval panel (ask), drawn while its status
is ask.
Fields§
§text: Option<String>The question.
allow: Option<String>The Allow button’s label.
deny: Option<String>The Deny button’s label.
always: Option<AskAlways>The Always button (card only).
scopes: Vec<AskScope>The radios of the scopes look (default once, session, always).
scope: Option<String>The scope selected, sent as the actions’ value.
Implementations§
Trait Implementations§
impl Eq for Ask
impl StructuralPartialEq for Ask
Auto Trait Implementations§
impl Freeze for Ask
impl RefUnwindSafe for Ask
impl Send for Ask
impl Sync for Ask
impl Unpin for Ask
impl UnsafeUnpin for Ask
impl UnwindSafe for Ask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.