pub struct TurnId(pub String);Expand description
Identifies a single turn within a session.
Each call to the model within a session gets a unique TurnId. This is
used by compaction and reporting to attribute work to specific turns.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TurnId
impl<'de> Deserialize<'de> for TurnId
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
Source§impl Ord for TurnId
impl Ord for TurnId
Source§impl PartialOrd for TurnId
impl PartialOrd for TurnId
impl Eq for TurnId
impl StructuralPartialEq for TurnId
Auto Trait Implementations§
impl Freeze for TurnId
impl RefUnwindSafe for TurnId
impl Send for TurnId
impl Sync for TurnId
impl Unpin for TurnId
impl UnsafeUnpin for TurnId
impl UnwindSafe for TurnId
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