pub struct ModelInvocationRevision(/* private fields */);Expand description
Monotonic zero-based revision of one logical model invocation.
The decimal-string wire form preserves exact values across languages and
the maximum matches a signed PostgreSQL BIGINT.
Implementations§
Source§impl ModelInvocationRevision
impl ModelInvocationRevision
Sourcepub const fn new(value: u64) -> Result<Self, ModelInvocationRevisionError>
pub const fn new(value: u64) -> Result<Self, ModelInvocationRevisionError>
Constructs a storage-compatible revision.
§Errors
Returns ModelInvocationRevisionError::AboveMaximum above signed
BIGINT.
Sourcepub const fn checked_next(self) -> Option<Self>
pub const fn checked_next(self) -> Option<Self>
Returns the exact next revision or None at the storage ceiling.
Trait Implementations§
Source§impl Clone for ModelInvocationRevision
impl Clone for ModelInvocationRevision
impl Copy for ModelInvocationRevision
Source§impl Debug for ModelInvocationRevision
impl Debug for ModelInvocationRevision
Source§impl<'de> Deserialize<'de> for ModelInvocationRevision
impl<'de> Deserialize<'de> for ModelInvocationRevision
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 ModelInvocationRevision
impl Display for ModelInvocationRevision
impl Eq for ModelInvocationRevision
Source§impl FromStr for ModelInvocationRevision
impl FromStr for ModelInvocationRevision
Source§impl Hash for ModelInvocationRevision
impl Hash for ModelInvocationRevision
Source§impl JsonSchema for ModelInvocationRevision
impl JsonSchema for ModelInvocationRevision
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 ModelInvocationRevision
impl Ord for ModelInvocationRevision
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 ModelInvocationRevision
impl PartialEq for ModelInvocationRevision
Source§impl PartialOrd for ModelInvocationRevision
impl PartialOrd for ModelInvocationRevision
Source§impl Serialize for ModelInvocationRevision
impl Serialize for ModelInvocationRevision
impl StructuralPartialEq for ModelInvocationRevision
Auto Trait Implementations§
impl Forget for ModelInvocationRevision
impl Freeze for ModelInvocationRevision
impl Move for ModelInvocationRevision
impl RefUnwindSafe for ModelInvocationRevision
impl Send for ModelInvocationRevision
impl Sync for ModelInvocationRevision
impl Unpin for ModelInvocationRevision
impl UnsafeUnpin for ModelInvocationRevision
impl UnwindSafe for ModelInvocationRevision
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