pub struct AttestedBlob {
pub hash: Hash32,
pub role: String,
pub stored: bool,
pub indexed: bool,
pub retrievable: bool,
pub deep: Option<String>,
}Expand description
One declared blob’s verdict, as signed.
Fields§
§hash: Hash32The content address the client declared.
role: StringThe role the asset holds it under, or unknown when the asset does not hold it.
stored: boolThe bytes are present at that address.
indexed: boolA live asset of the caller’s references the address.
retrievable: boolNothing is withholding it.
deep: Option<String>What a deep scan found — intact, corrupt or rate_limited — and absent when none ran.
Trait Implementations§
Source§impl Clone for AttestedBlob
impl Clone for AttestedBlob
Source§fn clone(&self) -> AttestedBlob
fn clone(&self) -> AttestedBlob
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 AttestedBlob
impl Debug for AttestedBlob
Source§impl<'de> Deserialize<'de> for AttestedBlob
impl<'de> Deserialize<'de> for AttestedBlob
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 AttestedBlob
Source§impl PartialEq for AttestedBlob
impl PartialEq for AttestedBlob
Source§fn eq(&self, other: &AttestedBlob) -> bool
fn eq(&self, other: &AttestedBlob) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttestedBlob
impl Serialize for AttestedBlob
impl StructuralPartialEq for AttestedBlob
Auto Trait Implementations§
impl Freeze for AttestedBlob
impl RefUnwindSafe for AttestedBlob
impl Send for AttestedBlob
impl Sync for AttestedBlob
impl Unpin for AttestedBlob
impl UnsafeUnpin for AttestedBlob
impl UnwindSafe for AttestedBlob
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,
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
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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