pub struct SourceAttestation {Show 14 fields
pub locator: String,
pub encoding: IngestEncoding,
pub format: IngestRdfFormat,
pub uncompressed_bytes: u64,
pub wire_bytes: Option<u64>,
pub triples: u64,
pub uncompressed_sha256_hex: Option<String>,
pub wire_sha256_hex: Option<String>,
pub window_commitment_hex: Option<String>,
pub window_bytes: u64,
pub window_count: u64,
pub etag: Option<String>,
pub content_length: Option<u64>,
pub retrieved_unix: u64,
}Fields§
§locator: String§encoding: IngestEncoding§format: IngestRdfFormat§uncompressed_bytes: u64§wire_bytes: Option<u64>§triples: u64§uncompressed_sha256_hex: Option<String>SHA-256 of the full decompressed source. Present only after a complete single-pass hash (no crash mid-stream without resume).
wire_sha256_hex: Option<String>SHA-256 of the on-the-wire bytes (compressed if the server sent gzip/zstd).
window_commitment_hex: Option<String>SHA-256 of the concatenation of 16 MiB window hashes. Always available after at least one full window; used to verify a prefix of an incomplete job.
window_bytes: u64§window_count: u64§etag: Option<String>§content_length: Option<u64>§retrieved_unix: u64Implementations§
Source§impl SourceAttestation
impl SourceAttestation
Sourcepub fn verify_story(&self) -> &'static str
pub fn verify_story(&self) -> &'static str
Human-readable verification instructions depending on which digest was recorded (full SHA-256, 16 MiB window commitment, or none yet).
Trait Implementations§
Source§impl Clone for SourceAttestation
impl Clone for SourceAttestation
Source§impl Debug for SourceAttestation
impl Debug for SourceAttestation
Source§impl<'de> Deserialize<'de> for SourceAttestation
impl<'de> Deserialize<'de> for SourceAttestation
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
impl Eq for SourceAttestation
Source§impl PartialEq for SourceAttestation
impl PartialEq for SourceAttestation
Source§impl Serialize for SourceAttestation
impl Serialize for SourceAttestation
impl StructuralPartialEq for SourceAttestation
Auto Trait Implementations§
impl Freeze for SourceAttestation
impl RefUnwindSafe for SourceAttestation
impl Send for SourceAttestation
impl Sync for SourceAttestation
impl Unpin for SourceAttestation
impl UnsafeUnpin for SourceAttestation
impl UnwindSafe for SourceAttestation
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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