pub enum Who {
Operator,
Agent,
}Expand description
Who wrote one turn of a question’s conversation.
Two values, not three: Question::thread is the record of a single
question stopping and resuming, and the agent that resumes it is always
the one that asked - a fresh consultant would have to be caught up on
everything the first agent already knows, which is the round trip this
module exists to avoid. The names and the wire spelling deliberately match
[crate::chat::Who], which this module does not depend on: the two are the
same idea in two products, and giving them the same shape is what lets the
phone render both with one component.
Variants§
Operator
The person the agent asked.
Agent
The agent that asked, replying to a question of its own rather than answering.
Trait Implementations§
impl Copy for Who
Source§impl<'de> Deserialize<'de> for Who
impl<'de> Deserialize<'de> for Who
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 Who
impl StructuralPartialEq for Who
Auto Trait Implementations§
impl Freeze for Who
impl RefUnwindSafe for Who
impl Send for Who
impl Sync for Who
impl Unpin for Who
impl UnsafeUnpin for Who
impl UnwindSafe for Who
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<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.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