pub struct InvocationId(/* private fields */);Expand description
A tenant-scoped external invocation identifier.
Implementations§
Source§impl InvocationId
impl InvocationId
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§
Source§impl Clone for InvocationId
impl Clone for InvocationId
impl Copy for InvocationId
Source§impl Debug for InvocationId
impl Debug for InvocationId
Source§impl<'de> Deserialize<'de> for InvocationId
impl<'de> Deserialize<'de> for InvocationId
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 Display for InvocationId
impl Display for InvocationId
impl Eq for InvocationId
Source§impl From<InvocationId> for Uuid
impl From<InvocationId> for Uuid
Source§fn from(value: InvocationId) -> Self
fn from(value: InvocationId) -> Self
Converts to this type from the input type.
Source§impl FromStr for InvocationId
impl FromStr for InvocationId
Source§impl Hash for InvocationId
impl Hash for InvocationId
Source§impl JsonSchema for InvocationId
impl JsonSchema for InvocationId
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 InvocationId
impl Ord for InvocationId
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 PartialEq for InvocationId
impl PartialEq for InvocationId
Source§impl PartialOrd for InvocationId
impl PartialOrd for InvocationId
Source§impl Serialize for InvocationId
impl Serialize for InvocationId
impl StructuralPartialEq for InvocationId
Auto Trait Implementations§
impl Forget for InvocationId
impl Freeze for InvocationId
impl Move for InvocationId
impl RefUnwindSafe for InvocationId
impl Send for InvocationId
impl Sync for InvocationId
impl Unpin for InvocationId
impl UnsafeUnpin for InvocationId
impl UnwindSafe for InvocationId
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