pub struct ProvenanceEnvelope {
pub input_hash: String,
pub submitted_at: SystemTime,
pub source_system: String,
pub submitted_by: String,
pub correlation_id: String,
pub metadata: Value,
}Expand description
Provenance information for audit trail
Fields§
§input_hash: StringInput data hash (for integrity verification)
submitted_at: SystemTimeTimestamp when problem was submitted
source_system: StringSource system that created this problem
submitted_by: StringUser or service that submitted
correlation_id: StringCorrelation ID for distributed tracing
metadata: ValueAdditional metadata
Implementations§
Source§impl ProvenanceEnvelope
impl ProvenanceEnvelope
Sourcepub fn new(
source_system: impl Into<String>,
submitted_by: impl Into<String>,
) -> Self
pub fn new( source_system: impl Into<String>, submitted_by: impl Into<String>, ) -> Self
Create with minimal info
Sourcepub fn with_correlation_id(self, id: impl Into<String>) -> Self
pub fn with_correlation_id(self, id: impl Into<String>) -> Self
Set correlation ID
Sourcepub fn with_input_hash(self, hash: impl Into<String>) -> Self
pub fn with_input_hash(self, hash: impl Into<String>) -> Self
Set input hash
Sourcepub fn with_metadata(self, metadata: Value) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Set metadata
Trait Implementations§
Source§impl Clone for ProvenanceEnvelope
impl Clone for ProvenanceEnvelope
Source§fn clone(&self) -> ProvenanceEnvelope
fn clone(&self) -> ProvenanceEnvelope
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 ProvenanceEnvelope
impl Debug for ProvenanceEnvelope
Source§impl Default for ProvenanceEnvelope
impl Default for ProvenanceEnvelope
Source§impl<'de> Deserialize<'de> for ProvenanceEnvelope
impl<'de> Deserialize<'de> for ProvenanceEnvelope
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
Auto Trait Implementations§
impl Freeze for ProvenanceEnvelope
impl RefUnwindSafe for ProvenanceEnvelope
impl Send for ProvenanceEnvelope
impl Sync for ProvenanceEnvelope
impl Unpin for ProvenanceEnvelope
impl UnsafeUnpin for ProvenanceEnvelope
impl UnwindSafe for ProvenanceEnvelope
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