pub struct Artifact {
pub id: ArtifactId,
pub kind: ArtifactKind,
pub uri: String,
pub label: String,
pub metadata: BTreeMap<String, String>,
pub created_by: ActorId,
pub created_at: DateTime<Utc>,
}Expand description
Reference to evidence with its creating principal and timestamp.
Fields§
§id: ArtifactIdStable entity identity; it must match its containing map key.
kind: ArtifactKindDomain category of this value.
uri: StringNon-empty locator of the evidence.
label: StringHuman-readable evidence description.
metadata: BTreeMap<String, String>Artifact-specific attributes, such as a Git commit hash.
created_by: ActorIdPrincipal responsible for this evidence.
created_at: DateTime<Utc>Timestamp at which the evidence was recorded.
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 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