pub struct Artifact {
pub id: String,
pub label: Option<String>,
pub mime_type: Option<String>,
pub uri: Option<String>,
pub metadata: RunMetadata,
}Expand description
A handle to an artifact produced by a run.
Artifacts are references, not storage: this type carries no bytes and does not define persistence, cleanup, or permissions.
Fields§
§id: StringArtifact id, unique within the producing application or store.
label: Option<String>Optional human-facing label.
mime_type: Option<String>Optional MIME type.
uri: Option<String>Optional application- or store-owned URI.
metadata: RunMetadataArtifact metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
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
impl Eq for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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