pub struct CertificateHeader {
pub certificate: Certificate,
pub tree: HashTree,
pub version: u8,
pub expr_path: Option<Vec<String>>,
}
Expand description
Parsed Ic-Certificate
header, containing a certificate and tree.
Fields§
§certificate: Certificate
The Certificate
contained in the header.
tree: HashTree
A pruned hash tree containing a witness that certifies the response for the given certificate.
version: u8
The version of the verification algorithm that should be used to verify the response.
expr_path: Option<Vec<String>>
The path in the HashTree
pointing to the CEL expression used to calulate the response’s certification.
This field is not present for response verification v1.
Implementations§
Source§impl CertificateHeader
impl CertificateHeader
Sourcepub fn from(header_value: &str) -> ResponseVerificationResult<CertificateHeader>
pub fn from(header_value: &str) -> ResponseVerificationResult<CertificateHeader>
Parses the given header and returns a new CertificateHeader.
Trait Implementations§
Source§impl Debug for CertificateHeader
impl Debug for CertificateHeader
Source§impl PartialEq for CertificateHeader
impl PartialEq for CertificateHeader
impl Eq for CertificateHeader
impl StructuralPartialEq for CertificateHeader
Auto Trait Implementations§
impl Freeze for CertificateHeader
impl RefUnwindSafe for CertificateHeader
impl Send for CertificateHeader
impl Sync for CertificateHeader
impl Unpin for CertificateHeader
impl UnwindSafe for CertificateHeader
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