pub struct AnswerablePrompt {
pub prompt: String,
pub options: Vec<AnswerOption>,
pub fingerprint: [u8; 32],
pub region_lines: usize,
}Expand description
A blocked prompt the operator can answer from the queue without focusing the
pane. Produced by ManifestRule::extract_answer and carried on the badge
to the sideline; the mux server re-verifies fingerprint against its live
grid before injecting a chosen option’s keystroke (Locked 3).
Fields§
§prompt: StringThe lines above the first option, display-only.
options: Vec<AnswerOption>§fingerprint: [u8; 32]blake3 of the region text the human reads - the server’s freshness key.
region_lines: usizeThe N of bottom_non_empty_lines(N), so the server re-reads the same
region window to re-hash.
Trait Implementations§
Source§impl Clone for AnswerablePrompt
impl Clone for AnswerablePrompt
Source§fn clone(&self) -> AnswerablePrompt
fn clone(&self) -> AnswerablePrompt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnswerablePrompt
impl Debug for AnswerablePrompt
Source§impl<'de> Deserialize<'de> for AnswerablePrompt
impl<'de> Deserialize<'de> for AnswerablePrompt
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 AnswerablePrompt
Source§impl PartialEq for AnswerablePrompt
impl PartialEq for AnswerablePrompt
Source§impl Serialize for AnswerablePrompt
impl Serialize for AnswerablePrompt
impl StructuralPartialEq for AnswerablePrompt
Auto Trait Implementations§
impl Freeze for AnswerablePrompt
impl RefUnwindSafe for AnswerablePrompt
impl Send for AnswerablePrompt
impl Sync for AnswerablePrompt
impl Unpin for AnswerablePrompt
impl UnsafeUnpin for AnswerablePrompt
impl UnwindSafe for AnswerablePrompt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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.