pub struct TimerId(/* private fields */);Expand description
A tenant-scoped durable timer identifier.
Implementations§
Source§impl TimerId
impl TimerId
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 TimerId
Source§impl<'de> Deserialize<'de> for TimerId
impl<'de> Deserialize<'de> for TimerId
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 TimerId
Source§impl JsonSchema for TimerId
impl JsonSchema for TimerId
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 TimerId
impl Ord for TimerId
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 TimerId
impl PartialOrd for TimerId
impl StructuralPartialEq for TimerId
Auto Trait Implementations§
impl Forget for TimerId
impl Freeze for TimerId
impl Move for TimerId
impl RefUnwindSafe for TimerId
impl Send for TimerId
impl Sync for TimerId
impl Unpin for TimerId
impl UnsafeUnpin for TimerId
impl UnwindSafe for TimerId
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