pub struct LogSubmissionBundle {
pub log_id: String,
pub leaf_index: u64,
pub inclusion_proof: InclusionProof,
pub signed_checkpoint: SignedCheckpoint,
}Expand description
Result of submitting an attestation to a transparency log.
Named LogSubmissionBundle to avoid collision with the existing
OfflineBundle type in auths-transparency.
Args:
log_id— Stable log identifier for trust config lookup.leaf_index— Zero-based index of the logged leaf.inclusion_proof— Merkle inclusion proof.signed_checkpoint— Signed checkpoint at submission time.
Usage:
ⓘ
let bundle = submit_attestation_to_log(&json, &pk, &sig, &log).await?;
println!("Logged at index {} in {}", bundle.leaf_index, bundle.log_id);Fields§
§log_id: StringStable log identifier for trust config lookup.
leaf_index: u64Zero-based leaf index in the log.
inclusion_proof: InclusionProofMerkle inclusion proof against the checkpoint.
signed_checkpoint: SignedCheckpointSigned checkpoint at submission time.
Trait Implementations§
Source§impl Clone for LogSubmissionBundle
impl Clone for LogSubmissionBundle
Source§fn clone(&self) -> LogSubmissionBundle
fn clone(&self) -> LogSubmissionBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogSubmissionBundle
impl Debug for LogSubmissionBundle
Source§impl<'de> Deserialize<'de> for LogSubmissionBundle
impl<'de> Deserialize<'de> for LogSubmissionBundle
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
Auto Trait Implementations§
impl Freeze for LogSubmissionBundle
impl RefUnwindSafe for LogSubmissionBundle
impl Send for LogSubmissionBundle
impl Sync for LogSubmissionBundle
impl Unpin for LogSubmissionBundle
impl UnsafeUnpin for LogSubmissionBundle
impl UnwindSafe for LogSubmissionBundle
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