pub struct SignedTreeHead {
pub tree_size: u64,
pub timestamp: u64,
pub root_hash: [u8; 32],
pub signature: Vec<u8>,
}Expand description
An unverified signed tree head (STH), as returned from the server. This encapsulate the state of the tree at some point in time.
This struct stores the signature but does not store the public key or log id.
Fields§
§tree_size: u64§timestamp: u64§root_hash: [u8; 32]§signature: Vec<u8>Digitally signed struct
Implementations§
Trait Implementations§
Source§impl Clone for SignedTreeHead
impl Clone for SignedTreeHead
Source§fn clone(&self) -> SignedTreeHead
fn clone(&self) -> SignedTreeHead
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 SignedTreeHead
impl Debug for SignedTreeHead
Source§impl PartialEq for SignedTreeHead
impl PartialEq for SignedTreeHead
impl Eq for SignedTreeHead
impl StructuralPartialEq for SignedTreeHead
Auto Trait Implementations§
impl Freeze for SignedTreeHead
impl RefUnwindSafe for SignedTreeHead
impl Send for SignedTreeHead
impl Sync for SignedTreeHead
impl Unpin for SignedTreeHead
impl UnwindSafe for SignedTreeHead
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