pub enum ClaimProofState {
Unknown,
Broken,
Partial,
FullChainVerified,
}Expand description
Proof state as it participates in claim reporting.
Unknown is explicit because ADR 0037 forbids silently treating absent
proof closure as local unsigned authority.
Variants§
Unknown
No proof closure was supplied.
Broken
The proof closure is broken and can support diagnostics only.
Partial
The proof closure is incomplete but no broken edge was observed.
FullChainVerified
Every required proof edge for the claim passed.
Implementations§
Source§impl ClaimProofState
impl ClaimProofState
Sourcepub const fn claim_ceiling(self) -> ClaimCeiling
pub const fn claim_ceiling(self) -> ClaimCeiling
Highest claim ceiling this proof state can support.
Trait Implementations§
Source§impl Clone for ClaimProofState
impl Clone for ClaimProofState
Source§fn clone(&self) -> ClaimProofState
fn clone(&self) -> ClaimProofState
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 ClaimProofState
impl Debug for ClaimProofState
Source§impl<'de> Deserialize<'de> for ClaimProofState
impl<'de> Deserialize<'de> for ClaimProofState
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
Source§impl From<ProofState> for ClaimProofState
impl From<ProofState> for ClaimProofState
Source§fn from(value: ProofState) -> Self
fn from(value: ProofState) -> Self
Converts to this type from the input type.
Source§impl Hash for ClaimProofState
impl Hash for ClaimProofState
Source§impl JsonSchema for ClaimProofState
impl JsonSchema for ClaimProofState
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ClaimProofState
impl Ord for ClaimProofState
Source§fn cmp(&self, other: &ClaimProofState) -> Ordering
fn cmp(&self, other: &ClaimProofState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClaimProofState
impl PartialEq for ClaimProofState
Source§fn eq(&self, other: &ClaimProofState) -> bool
fn eq(&self, other: &ClaimProofState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ClaimProofState
impl PartialOrd for ClaimProofState
Source§impl Serialize for ClaimProofState
impl Serialize for ClaimProofState
impl Copy for ClaimProofState
impl Eq for ClaimProofState
impl StructuralPartialEq for ClaimProofState
Auto Trait Implementations§
impl Freeze for ClaimProofState
impl RefUnwindSafe for ClaimProofState
impl Send for ClaimProofState
impl Sync for ClaimProofState
impl Unpin for ClaimProofState
impl UnsafeUnpin for ClaimProofState
impl UnwindSafe for ClaimProofState
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