pub struct ToolEvidenceMetadata {
pub identity: String,
pub kind: ToolEvidenceKind,
pub byte_count: usize,
pub content_hash: Option<String>,
pub artifact_handle: Option<String>,
}Expand description
Bounded, provider-neutral metadata about durable tool evidence.
byte_count describes the UTF-8, newline-joined compatibility rendering
when constructed by ToolOutput::ok or ToolOutput::failed. Custom
executors may provide their own exact measurement. artifact_handle is an
application-owned opaque reference and never contains the evidence body.
Fields§
§identity: StringStable identity for this evidence within the owning application.
kind: ToolEvidenceKindCoarse evidence classification.
byte_count: usizeExact UTF-8 byte count at the application’s declared boundary.
content_hash: Option<String>Optional application-computed content hash.
artifact_handle: Option<String>Optional opaque handle for bounded redacted recovery.
Implementations§
Trait Implementations§
Source§impl Clone for ToolEvidenceMetadata
impl Clone for ToolEvidenceMetadata
Source§fn clone(&self) -> ToolEvidenceMetadata
fn clone(&self) -> ToolEvidenceMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolEvidenceMetadata
impl Debug for ToolEvidenceMetadata
Source§impl<'de> Deserialize<'de> for ToolEvidenceMetadata
impl<'de> Deserialize<'de> for ToolEvidenceMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolEvidenceMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolEvidenceMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolEvidenceMetadata
Source§impl PartialEq for ToolEvidenceMetadata
impl PartialEq for ToolEvidenceMetadata
Source§impl Serialize for ToolEvidenceMetadata
impl Serialize for ToolEvidenceMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ToolEvidenceMetadata
Auto Trait Implementations§
impl Freeze for ToolEvidenceMetadata
impl RefUnwindSafe for ToolEvidenceMetadata
impl Send for ToolEvidenceMetadata
impl Sync for ToolEvidenceMetadata
impl Unpin for ToolEvidenceMetadata
impl UnsafeUnpin for ToolEvidenceMetadata
impl UnwindSafe for ToolEvidenceMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.