pub struct ConfirmationQuestion {
pub id: [u8; 32],
pub device_label: String,
pub agent: String,
pub workspace: String,
pub title: String,
pub action_label: String,
pub resource_label: String,
pub arguments: Vec<(String, String)>,
pub risk: String,
pub kind: String,
pub undoable: bool,
pub ask: Option<PersonAsk>,
}Expand description
A question a device of the person’s puts to them on another of their own devices: one invocation of an action their grants leave to them.
The device asking is the transport-authenticated one, so the labels here are shown as that device’s own words; the answer names this one invocation and nothing else.
Fields§
§id: [u8; 32]Names this question, so the answer names it back.
device_label: StringThe device that asks, as it is labelled to the person.
agent: StringThe agent the invocation is by, by its id: the device asks for an agent it acts for over its own session. Empty for the person’s own invocation.
workspace: StringThe workspace the invocation runs in.
title: StringThe group the invocation is a step of, by the title its agent gave it; empty when it named none.
action_label: StringThe action by the title its app declares, and the record it acts on by its name, as the asking device labels them.
resource_label: String§arguments: Vec<(String, String)>The arguments it would run with, as a reviewer reads them
(Draft::summary): secrets withheld.
risk: StringWhat the action risks, by RiskLevel::name.
kind: StringWhat it is able to do, by ActionKind’s name
(read, undoable, outside); empty when the asker cannot say.
undoable: boolWhether Undo takes it back
(ActionContract::can_be_undone).
ask: Option<PersonAsk>What the agent asks in its own words, where it asks the person
something rather than to allow an action (ASK): the action fields
above are empty then, and the person answers with one of its choices.
Trait Implementations§
Source§impl Clone for ConfirmationQuestion
impl Clone for ConfirmationQuestion
Source§impl Debug for ConfirmationQuestion
impl Debug for ConfirmationQuestion
Source§impl Default for ConfirmationQuestion
impl Default for ConfirmationQuestion
Source§impl<'de> Deserialize<'de> for ConfirmationQuestion
impl<'de> Deserialize<'de> for ConfirmationQuestion
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 ConfirmationQuestion
Source§impl PartialEq for ConfirmationQuestion
impl PartialEq for ConfirmationQuestion
Source§impl Serialize for ConfirmationQuestion
impl Serialize for ConfirmationQuestion
impl StructuralPartialEq for ConfirmationQuestion
Auto Trait Implementations§
impl Forget for ConfirmationQuestion
impl Freeze for ConfirmationQuestion
impl Move for ConfirmationQuestion
impl RefUnwindSafe for ConfirmationQuestion
impl Send for ConfirmationQuestion
impl Sync for ConfirmationQuestion
impl Unpin for ConfirmationQuestion
impl UnsafeUnpin for ConfirmationQuestion
impl UnwindSafe for ConfirmationQuestion
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more