pub struct ArtifactMetadata {Show 14 fields
pub artifact_type: String,
pub context_id: ContextId,
pub created_at: String,
pub task_id: TaskId,
pub rendering_hints: Option<Value>,
pub source: Option<String>,
pub mcp_execution_id: Option<String>,
pub mcp_schema: Option<Value>,
pub is_internal: Option<bool>,
pub fingerprint: Option<String>,
pub tool_name: Option<String>,
pub execution_index: Option<usize>,
pub skill_id: Option<String>,
pub skill_name: Option<String>,
}Fields§
§artifact_type: String§context_id: ContextId§created_at: String§task_id: TaskId§rendering_hints: Option<Value>§source: Option<String>§mcp_execution_id: Option<String>§mcp_schema: Option<Value>§is_internal: Option<bool>§fingerprint: Option<String>§tool_name: Option<String>§execution_index: Option<usize>§skill_id: Option<String>§skill_name: Option<String>Implementations§
Source§impl ArtifactMetadata
impl ArtifactMetadata
pub fn new( artifact_type: String, context_id: ContextId, task_id: TaskId, ) -> ArtifactMetadata
pub fn with_rendering_hints(self, hints: Value) -> ArtifactMetadata
pub fn with_source(self, source: String) -> ArtifactMetadata
pub fn with_mcp_execution_id(self, id: String) -> ArtifactMetadata
pub fn with_mcp_schema(self, schema: Value) -> ArtifactMetadata
pub const fn with_is_internal(self, is_internal: bool) -> ArtifactMetadata
pub fn with_fingerprint(self, fingerprint: String) -> ArtifactMetadata
pub fn with_tool_name(self, tool_name: String) -> ArtifactMetadata
pub const fn with_execution_index(self, index: usize) -> ArtifactMetadata
pub fn with_skill_id(self, skill_id: String) -> ArtifactMetadata
pub fn with_skill_name(self, skill_name: String) -> ArtifactMetadata
pub fn with_skill( self, skill_id: String, skill_name: String, ) -> ArtifactMetadata
pub fn new_validated( artifact_type: String, context_id: ContextId, task_id: TaskId, ) -> Result<ArtifactMetadata, ValidationError>
Trait Implementations§
Source§impl Clone for ArtifactMetadata
impl Clone for ArtifactMetadata
Source§fn clone(&self) -> ArtifactMetadata
fn clone(&self) -> ArtifactMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ArtifactMetadata
impl Debug for ArtifactMetadata
Source§impl<'de> Deserialize<'de> for ArtifactMetadata
impl<'de> Deserialize<'de> for ArtifactMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArtifactMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArtifactMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MetadataValidation for ArtifactMetadata
impl MetadataValidation for ArtifactMetadata
fn required_string_fields(&self) -> Vec<(&'static str, &str)>
fn validate_required_fields(&self) -> Result<(), ValidationError>
Source§impl PartialEq for ArtifactMetadata
impl PartialEq for ArtifactMetadata
Source§impl Serialize for ArtifactMetadata
impl Serialize for ArtifactMetadata
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
Source§impl Validate for ArtifactMetadata
impl Validate for ArtifactMetadata
impl Eq for ArtifactMetadata
impl StructuralPartialEq for ArtifactMetadata
Auto Trait Implementations§
impl Freeze for ArtifactMetadata
impl RefUnwindSafe for ArtifactMetadata
impl Send for ArtifactMetadata
impl Sync for ArtifactMetadata
impl Unpin for ArtifactMetadata
impl UnwindSafe for ArtifactMetadata
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more