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