pub struct ThreadId(/* private fields */);Expand description
A tenant-scoped conversation thread identifier.
Implementations§
Source§impl ThreadId
impl ThreadId
Sourcepub fn from_uuid(value: Uuid) -> Result<Self, GeneratedIdError>
pub fn from_uuid(value: Uuid) -> Result<Self, GeneratedIdError>
Constructs the typed identifier from a UUIDv7 value.
§Errors
Returns GeneratedIdError when the UUID has the wrong version
or variant.
Trait Implementations§
impl Copy for ThreadId
Source§impl<'de> Deserialize<'de> for ThreadId
impl<'de> Deserialize<'de> for ThreadId
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 ThreadId
Source§impl JsonSchema for ThreadId
impl JsonSchema for ThreadId
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ThreadId
impl Ord for ThreadId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ThreadId
impl PartialOrd for ThreadId
impl StructuralPartialEq for ThreadId
Auto Trait Implementations§
impl Forget for ThreadId
impl Freeze for ThreadId
impl Move for ThreadId
impl RefUnwindSafe for ThreadId
impl Send for ThreadId
impl Sync for ThreadId
impl Unpin for ThreadId
impl UnsafeUnpin for ThreadId
impl UnwindSafe for ThreadId
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