pub struct ContextId(pub String);Expand description
Opaque unique identifier for a conversation context.
A context groups related tasks under a single logical conversation thread.
Like TaskId, IDs are compared as raw byte strings without Unicode
normalization.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextId
impl<'de> Deserialize<'de> for ContextId
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 From<&str> for ContextId
Note: This accepts empty strings for backward compatibility.
Prefer ContextId::try_new which rejects empty/whitespace-only strings.
impl From<&str> for ContextId
Note: This accepts empty strings for backward compatibility.
Prefer ContextId::try_new which rejects empty/whitespace-only strings.
Source§impl From<String> for ContextId
Note: This accepts empty strings for backward compatibility.
Prefer ContextId::try_new which rejects empty/whitespace-only strings.
impl From<String> for ContextId
Note: This accepts empty strings for backward compatibility.
Prefer ContextId::try_new which rejects empty/whitespace-only strings.
impl Eq for ContextId
impl StructuralPartialEq for ContextId
Auto Trait Implementations§
impl Freeze for ContextId
impl RefUnwindSafe for ContextId
impl Send for ContextId
impl Sync for ContextId
impl Unpin for ContextId
impl UnsafeUnpin for ContextId
impl UnwindSafe for ContextId
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