mithril_common/signable_builder/
signed_entity.rs

1use chrono::{DateTime, Utc};
2
3use super::Artifact;
4use crate::entities::SignedEntityType;
5
6/// Aggregate for signed entity
7#[derive(Debug, Clone)]
8pub struct SignedEntity<T>
9where
10    T: Artifact,
11{
12    /// Signed entity id.
13    pub signed_entity_id: String,
14
15    /// Signed entity type.
16    pub signed_entity_type: SignedEntityType,
17
18    /// Certificate id for this signed entity.
19    pub certificate_id: String,
20
21    /// Artifact
22    pub artifact: T,
23
24    /// Date and time when the signed_entity was created
25    pub created_at: DateTime<Utc>,
26}