pub struct Resolve {
pub resolution: Offer,
pub choice: Option<usize>,
pub chosen: Vec<usize>,
pub typed: Vec<String>,
pub files: Vec<String>,
pub edits: Vec<DraftEdit>,
}Expand description
The arguments of RESOLVE: the person’s answer, and for a question that offers choices
the one they picked, by its place among AskedFacts::choices.
Fields§
§resolution: Offer§choice: Option<usize>§chosen: Vec<usize>The choices picked, for a question that offers many (AskedFacts::many).
typed: Vec<String>What the person typed, one entry per take, in order (AskedFacts::takes). A secret
one is never written anywhere: the record and its history keep the answer without it.
files: Vec<String>The files picked, as URIs (AskedFacts::files).
edits: Vec<DraftEdit>What the person changed in the call before approving, each a field of
AskedFacts::form set to what they wrote: the call runs with its arguments so changed,
admitted again as a fresh call with them would be, so the action’s own contract checks
them. Only with an approve.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resolve
impl<'de> Deserialize<'de> for Resolve
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 Resolve
impl StructuralPartialEq for Resolve
Auto Trait Implementations§
impl Forget for Resolve
impl Freeze for Resolve
impl Move for Resolve
impl RefUnwindSafe for Resolve
impl Send for Resolve
impl Sync for Resolve
impl Unpin for Resolve
impl UnsafeUnpin for Resolve
impl UnwindSafe for Resolve
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,
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> ⓘ
Converts
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> ⓘ
Converts
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