pub struct Ask {
pub text: String,
pub warning: Option<String>,
pub always: bool,
pub choice: Option<Choice>,
}Expand description
The special part of an approval card (see Step::ask).
Fields§
§text: StringWhat saying yes means.
warning: Option<String>Shown prominently, e.g. that it installs system-wide.
always: boolOnly a person can allow it: no policy, grant or --auto-approve does.
choice: Option<Choice>A question for the user (the ask_user tool, 13.8): the card offers these choices
instead of Allow, and is answered with ClientMsg::AnswerQuestion. A client that
doesn’t know it shows Allow/Deny (Allow then means “no answer”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ask
impl<'de> Deserialize<'de> for Ask
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 Ask
impl StructuralPartialEq for Ask
Auto Trait Implementations§
impl Forget for Ask
impl Freeze for Ask
impl Move 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