pub enum ClaimCeiling {
DevOnly,
LocalUnsigned,
SignedLocalLedger,
ExternallyAnchored,
AuthorityGrade,
}Expand description
Maximum truthful reporting level for a claim.
Variants§
DevOnly
Development-only; not reportable as durable evidence.
LocalUnsigned
Local unsigned mechanics only.
SignedLocalLedger
Signed local ledger claim.
ExternallyAnchored
Externally anchored ledger claim.
AuthorityGrade
Authority-grade claim suitable for high-authority reporting.
Implementations§
Source§impl ClaimCeiling
impl ClaimCeiling
Sourcepub fn weakest<I>(ceilings: I) -> Option<Self>where
I: IntoIterator<Item = Self>,
pub fn weakest<I>(ceilings: I) -> Option<Self>where
I: IntoIterator<Item = Self>,
Weakest ceiling from an iterator.
Sourcepub fn mix_to_weakest(self, other: Self) -> Self
pub fn mix_to_weakest(self, other: Self) -> Self
Weaken this ceiling to the weaker of two ceilings.
Trait Implementations§
Source§impl Clone for ClaimCeiling
impl Clone for ClaimCeiling
Source§fn clone(&self) -> ClaimCeiling
fn clone(&self) -> ClaimCeiling
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 ClaimCeiling
impl Debug for ClaimCeiling
Source§impl<'de> Deserialize<'de> for ClaimCeiling
impl<'de> Deserialize<'de> for ClaimCeiling
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 Hash for ClaimCeiling
impl Hash for ClaimCeiling
Source§impl JsonSchema for ClaimCeiling
impl JsonSchema for ClaimCeiling
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 ClaimCeiling
impl Ord for ClaimCeiling
Source§fn cmp(&self, other: &ClaimCeiling) -> Ordering
fn cmp(&self, other: &ClaimCeiling) -> 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 ClaimCeiling
impl PartialEq for ClaimCeiling
Source§fn eq(&self, other: &ClaimCeiling) -> bool
fn eq(&self, other: &ClaimCeiling) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ClaimCeiling
impl PartialOrd for ClaimCeiling
Source§impl Serialize for ClaimCeiling
impl Serialize for ClaimCeiling
impl Copy for ClaimCeiling
impl Eq for ClaimCeiling
impl StructuralPartialEq for ClaimCeiling
Auto Trait Implementations§
impl Freeze for ClaimCeiling
impl RefUnwindSafe for ClaimCeiling
impl Send for ClaimCeiling
impl Sync for ClaimCeiling
impl Unpin for ClaimCeiling
impl UnsafeUnpin for ClaimCeiling
impl UnwindSafe for ClaimCeiling
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