pub struct DailyPublication {
pub date: String,
pub root_hash: String,
pub entry_count: u64,
pub hourly_roots: Vec<String>,
pub previous_day_root: String,
pub created_at: String,
pub signature: Option<PublicationSignature>,
pub tsa_timestamp: Option<TsaTimestamp>,
}Expand description
Daily audit publication
Fields§
§date: StringPublication date
root_hash: StringRoot hash of all hourly roots
entry_count: u64Total entry count
hourly_roots: Vec<String>Hourly root hashes
previous_day_root: StringPrevious day root (for chaining)
created_at: StringCreation timestamp
signature: Option<PublicationSignature>Signature
tsa_timestamp: Option<TsaTimestamp>TSA timestamp
Implementations§
Source§impl DailyPublication
impl DailyPublication
Sourcepub fn to_canonical_json_bytes(&self) -> Result<Vec<u8>, LogError>
pub fn to_canonical_json_bytes(&self) -> Result<Vec<u8>, LogError>
Export as canonical deterministic JSON bytes.
Sourcepub fn to_canonical_json(&self) -> Result<String, LogError>
pub fn to_canonical_json(&self) -> Result<String, LogError>
Export as compact deterministic JSON string.
Sourcepub fn to_canonical_json_gzip(&self) -> Result<Vec<u8>, LogError>
pub fn to_canonical_json_gzip(&self) -> Result<Vec<u8>, LogError>
Export as gzip-compressed canonical JSON.
Sourcepub fn publication_basename(&self) -> String
pub fn publication_basename(&self) -> String
Build a deterministic basename suitable for filesystem/object publication backends.
Sourcepub fn recompute_root_hash(&self) -> String
pub fn recompute_root_hash(&self) -> String
Recompute the publication root from hourly_roots.
Sourcepub fn verify_root_hash(&self) -> bool
pub fn verify_root_hash(&self) -> bool
Check whether the stored root_hash matches the recomputed value.
Trait Implementations§
Source§impl Clone for DailyPublication
impl Clone for DailyPublication
Source§fn clone(&self) -> DailyPublication
fn clone(&self) -> DailyPublication
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 DailyPublication
impl Debug for DailyPublication
Source§impl<'de> Deserialize<'de> for DailyPublication
impl<'de> Deserialize<'de> for DailyPublication
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 DailyPublication
impl RefUnwindSafe for DailyPublication
impl Send for DailyPublication
impl Sync for DailyPublication
impl Unpin for DailyPublication
impl UnsafeUnpin for DailyPublication
impl UnwindSafe for DailyPublication
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