pub struct BundleBuilder {
pub manifest: Manifest,
/* private fields */
}Expand description
Builder for constructing ahu bundles.
Fields§
§manifest: ManifestImplementations§
Source§impl BundleBuilder
impl BundleBuilder
pub fn new(manifest: Manifest) -> Self
Sourcepub fn add_entry(&mut self, entry_key: [u8; 32], response_der: Vec<u8>)
pub fn add_entry(&mut self, entry_key: [u8; 32], response_der: Vec<u8>)
Add an entry. certid_der is the DER encoding of the CertID;
response_der is the complete DER-encoded OCSPResponse.
pub fn add_entry_with_discriminator( &mut self, entry_key: [u8; 32], discriminator: u16, response_der: Vec<u8>, )
Sourcepub fn add_dual_entry(
&mut self,
entry_key_1: [u8; 32],
entry_key_2: [u8; 32],
response_der: Vec<u8>,
)
pub fn add_dual_entry( &mut self, entry_key_1: [u8; 32], entry_key_2: [u8; 32], response_der: Vec<u8>, )
Add a dual-CertID entry: one response payload indexed under two keys.
Both records carry the full payload so that sorting doesn’t break the pairing. During build, we deduplicate by data content so the payload is stored only once in the data section.
pub fn add_dual_entry_with_discriminator( &mut self, entry_key_1: [u8; 32], entry_key_2: [u8; 32], response_der: Vec<u8>, discriminator: u16, )
Sourcepub fn add_tombstone(&mut self, entry_key: [u8; 32], discriminator: u16)
pub fn add_tombstone(&mut self, entry_key: [u8; 32], discriminator: u16)
Add a tombstone (delta only). The discriminator must match the target record’s discriminator to suppress the correct algorithm variant.
Auto Trait Implementations§
impl Freeze for BundleBuilder
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnsafeUnpin for BundleBuilder
impl UnwindSafe for BundleBuilder
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