pub struct Leaf {
pub hash: [u8; 32],
pub timestamp: u64,
pub is_pre_cert: bool,
pub x509_chain: Vec<Vec<u8>>,
pub tbs_cert: Option<Vec<u8>>,
pub issuer_key_hash: Option<Vec<u8>>,
pub extensions: Vec<u8>,
}Expand description
A parsed leaf.
Parse a JSON get-entries response to this with
TryFrom<&jsons::LeafEntry>::try_from.
Fields§
§hash: [u8; 32]What they call “leaf hash”.
timestamp: u64The leaf timestamp provided by the log.
is_pre_cert: bool§x509_chain: Vec<Vec<u8>>The first cert is the end entity cert (or pre cert, if is_pre_cert is
true), and the last is the root CA.
tbs_cert: Option<Vec<u8>>When is_pre_cert is true, this contains the tbs certificate found at the leaf input data. You should verify that this is the same certificate as x509_chain[0], except not signed.
issuer_key_hash: Option<Vec<u8>>§extensions: Vec<u8>Raw extensions data. Ignored. Length not included.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Leaf
impl RefUnwindSafe for Leaf
impl Send for Leaf
impl Sync for Leaf
impl Unpin for Leaf
impl UnwindSafe for Leaf
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