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