#[non_exhaustive]pub struct TurnRef {
pub turn_id: String,
pub command_id: String,
pub display_text: Option<String>,
pub truncated: Option<bool>,
}Expand description
A turn named by the snapshot’s active/queued lists.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.turn_id: StringThe turn’s id, pre-minted per the protocol spec.
command_id: StringThe commandId of the submit that minted it.
display_text: Option<String>queuedTurns[] only: the queued submit’s presentation text, so a late
joiner can render it without waiting for launch. A current host sets it
on every entry it admits; absent means an older host (or a pre-feature
restored entry). Never set on activeTurn: the running turn’s text is
its userMessage item.
truncated: Option<bool>queuedTurns[] only: set when displayText was cut to the
committed-surface budget, mirroring userMessage.truncated. Absent
unless true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TurnRef
impl<'de> Deserialize<'de> for TurnRef
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 TurnRef
impl StructuralPartialEq for TurnRef
Auto Trait Implementations§
impl Freeze for TurnRef
impl RefUnwindSafe for TurnRef
impl Send for TurnRef
impl Sync for TurnRef
impl Unpin for TurnRef
impl UnsafeUnpin for TurnRef
impl UnwindSafe for TurnRef
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