pub struct AuditCheckpoint {
pub tree_size: u64,
pub root_hash: String,
}Expand description
GET /v1/audit/checkpoint.
Fields§
§tree_size: u64How many leaves the tree has.
root_hash: StringThe tree’s root hash, standard base64 (as in a C2SP checkpoint —
unlike base_sha256 and the other file hashes on this API, which
stay lowercase hex).
Implementations§
Source§impl AuditCheckpoint
impl AuditCheckpoint
Sourcepub fn to_header_value(&self) -> String
pub fn to_header_value(&self) -> String
The CHECKPOINT_HEADER value for this checkpoint.
Sourcepub fn parse_header_value(value: &str) -> Option<Self>
pub fn parse_header_value(value: &str) -> Option<Self>
Reads a CHECKPOINT_HEADER value back. None if it is not
<tree_size> <root_hash>.
Trait Implementations§
Source§impl Clone for AuditCheckpoint
impl Clone for AuditCheckpoint
Source§impl Debug for AuditCheckpoint
impl Debug for AuditCheckpoint
Source§impl Default for AuditCheckpoint
impl Default for AuditCheckpoint
Source§impl<'de> Deserialize<'de> for AuditCheckpoint
impl<'de> Deserialize<'de> for AuditCheckpoint
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 Eq for AuditCheckpoint
Source§impl PartialEq for AuditCheckpoint
impl PartialEq for AuditCheckpoint
Source§impl Serialize for AuditCheckpoint
impl Serialize for AuditCheckpoint
impl StructuralPartialEq for AuditCheckpoint
Auto Trait Implementations§
impl Freeze for AuditCheckpoint
impl RefUnwindSafe for AuditCheckpoint
impl Send for AuditCheckpoint
impl Sync for AuditCheckpoint
impl Unpin for AuditCheckpoint
impl UnsafeUnpin for AuditCheckpoint
impl UnwindSafe for AuditCheckpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.