pub struct ExecutionCount(/* private fields */);Expand description
A count of graph steps, model attempts, tool calls, branches, delegations, or retries.
The JSON wire form is a canonical unsigned decimal string. Arithmetic is available only through checked methods, so release builds cannot silently wrap accounting values.
Implementations§
Source§impl ExecutionCount
impl ExecutionCount
Sourcepub const fn checked_add(self, other: Self) -> Option<Self>
pub const fn checked_add(self, other: Self) -> Option<Self>
Adds two counts, returning None on overflow.
Sourcepub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_sub(self, other: Self) -> Option<Self>
Subtracts two counts, returning None on underflow.
Sourcepub const fn checked_mul(self, multiplier: u64) -> Option<Self>
pub const fn checked_mul(self, multiplier: u64) -> Option<Self>
Multiplies a count by an integer, returning None on overflow.
Trait Implementations§
Source§impl Clone for ExecutionCount
impl Clone for ExecutionCount
impl Copy for ExecutionCount
Source§impl Debug for ExecutionCount
impl Debug for ExecutionCount
Source§impl Default for ExecutionCount
impl Default for ExecutionCount
Source§impl<'de> Deserialize<'de> for ExecutionCount
impl<'de> Deserialize<'de> for ExecutionCount
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 ExecutionCount
impl Display for ExecutionCount
impl Eq for ExecutionCount
Source§impl From<ExecutionCount> for u64
impl From<ExecutionCount> for u64
Source§fn from(value: ExecutionCount) -> Self
fn from(value: ExecutionCount) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ExecutionCount
impl From<u64> for ExecutionCount
Source§impl FromStr for ExecutionCount
impl FromStr for ExecutionCount
Source§impl Hash for ExecutionCount
impl Hash for ExecutionCount
Source§impl JsonSchema for ExecutionCount
impl JsonSchema for ExecutionCount
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 ExecutionCount
impl Ord for ExecutionCount
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 ExecutionCount
impl PartialEq for ExecutionCount
Source§impl PartialOrd for ExecutionCount
impl PartialOrd for ExecutionCount
Source§impl Serialize for ExecutionCount
impl Serialize for ExecutionCount
impl StructuralPartialEq for ExecutionCount
Auto Trait Implementations§
impl Forget for ExecutionCount
impl Freeze for ExecutionCount
impl Move for ExecutionCount
impl RefUnwindSafe for ExecutionCount
impl Send for ExecutionCount
impl Sync for ExecutionCount
impl Unpin for ExecutionCount
impl UnsafeUnpin for ExecutionCount
impl UnwindSafe for ExecutionCount
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