#[non_exhaustive]pub struct DisclosedSpan {
pub commit_id: Hash,
pub tree_hash: Hash,
pub path: Vec<(Vec<u8>, EntryMode)>,
pub leaf_id: Hash,
pub signer: [u8; 32],
pub signature_valid: bool,
pub offset: u64,
pub bytes: Vec<u8>,
pub first: u32,
pub last: u32,
pub span_start: u64,
pub chunk_inner_root: Hash,
}Expand description
An authenticated byte range spanning at least two chunks.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commit_id: HashTrusted commit id.
tree_hash: HashRoot tree id from the signed commit.
path: Vec<(Vec<u8>, EntryMode)>Authenticated path and entry modes.
leaf_id: HashChunkedBlob leaf id.
signer: [u8; 32]Public key embedded in the commit.
signature_valid: boolWhether the embedded signature verifies; key trust is caller policy.
offset: u64Absolute content offset.
bytes: Vec<u8>Verified content bytes in the requested range.
first: u32First included chunk index.
last: u32Last included chunk index.
span_start: u64Authenticated absolute beginning of the first chunk.
chunk_inner_root: HashAuthenticated bare chunk BMT root.
Trait Implementations§
Source§impl Clone for DisclosedSpan
impl Clone for DisclosedSpan
Source§impl Debug for DisclosedSpan
impl Debug for DisclosedSpan
impl Eq for DisclosedSpan
Source§impl PartialEq for DisclosedSpan
impl PartialEq for DisclosedSpan
impl StructuralPartialEq for DisclosedSpan
Auto Trait Implementations§
impl Freeze for DisclosedSpan
impl RefUnwindSafe for DisclosedSpan
impl Send for DisclosedSpan
impl Sync for DisclosedSpan
impl Unpin for DisclosedSpan
impl UnsafeUnpin for DisclosedSpan
impl UnwindSafe for DisclosedSpan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more