pub struct Provenance {
pub signature: Option<String>,
pub key_id: Option<String>,
pub algorithm: Option<String>,
pub signed_fields: Option<Vec<String>>,
pub signed_at: Option<DateTime<Utc>>,
}Expand description
Provenance information for data integrity verification.
Fields§
§signature: Option<String>HMAC-SHA256 signature of the event.
key_id: Option<String>Key ID used for signing.
algorithm: Option<String>Signature algorithm (e.g., “hmac-sha256”).
signed_fields: Option<Vec<String>>Fields included in signature.
signed_at: Option<DateTime<Utc>>Timestamp when signature was created.
Implementations§
Source§impl Provenance
impl Provenance
Sourcepub fn with_signature(self, signature: impl Into<String>) -> Self
pub fn with_signature(self, signature: impl Into<String>) -> Self
Set the signature.
Sourcepub fn with_key_id(self, key_id: impl Into<String>) -> Self
pub fn with_key_id(self, key_id: impl Into<String>) -> Self
Set the key ID.
Sourcepub fn with_signed_fields(self, fields: Vec<String>) -> Self
pub fn with_signed_fields(self, fields: Vec<String>) -> Self
Set signed fields.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
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 Provenance
impl Debug for Provenance
Source§impl Default for Provenance
impl Default for Provenance
Source§fn default() -> Provenance
fn default() -> Provenance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Provenance
impl<'de> Deserialize<'de> for Provenance
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 Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnwindSafe for Provenance
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