pub struct InteractionView {
pub id: InteractionId,
pub kind: InteractionKind,
pub status: InteractionStatus,
pub blocking: bool,
pub case_ref: CaseRef,
pub title: LocalizedText,
pub body: Option<LocalizedText>,
pub options: Vec<InteractionOptionView>,
pub review_entries: Vec<ReviewDiffEntry>,
pub freeform_prompt: Option<LocalizedText>,
pub metadata: Value,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Client-facing projection of an interaction (spec §18.1).
Fields§
§id: InteractionIdIdentifier.
kind: InteractionKindShape.
status: InteractionStatusStatus.
blocking: boolWhether it blocks the case.
case_ref: CaseRefCase and bound revision the client must echo back.
title: LocalizedTextTitle copy.
body: Option<LocalizedText>Body copy.
options: Vec<InteractionOptionView>Options without actions.
review_entries: Vec<ReviewDiffEntry>Diff entries.
freeform_prompt: Option<LocalizedText>Free-form prompt.
metadata: ValueApplication metadata.
expires_at: Option<DateTime<Utc>>Expiry.
Trait Implementations§
Source§impl Clone for InteractionView
impl Clone for InteractionView
Source§impl Debug for InteractionView
impl Debug for InteractionView
Source§impl<'de> Deserialize<'de> for InteractionView
impl<'de> Deserialize<'de> for InteractionView
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 InteractionView
Source§impl PartialEq for InteractionView
impl PartialEq for InteractionView
Source§impl Serialize for InteractionView
impl Serialize for InteractionView
impl StructuralPartialEq for InteractionView
Auto Trait Implementations§
impl Freeze for InteractionView
impl RefUnwindSafe for InteractionView
impl Send for InteractionView
impl Sync for InteractionView
impl Unpin for InteractionView
impl UnsafeUnpin for InteractionView
impl UnwindSafe for InteractionView
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.