Skip to main content

Report

Struct Report 

Source
pub struct Report {
Show 26 fields pub ledger_index: u32, pub confirmed_hash: Option<String>, pub matches_claim: bool, pub unl_size: usize, pub effective_size: usize, pub quorum: usize, pub signers: usize, pub policy_differs: bool, pub policy_observed_after: bool, pub rule: &'static str, pub policy_window: Option<(u32, u32)>, pub missing_publishers: Vec<String>, pub policies: Vec<PolicyUsed>, pub negative_unl: Vec<String>, pub with_claimed_negative_unl: Option<ClaimedNegativeUnl>, pub not_seen: Vec<String>, pub conflicting: Vec<String>, pub unattributed: usize, pub untrusted_publishers: Vec<String>, pub problems: Vec<String>, pub transactions: Vec<TxCheck>, pub chain_ok: bool, pub target_ledger: Option<u32>, pub target_hash: Option<String>, pub objects: Vec<ObjectCheck>, pub skip_hops: usize,
}
Expand description

The result of verifying a bundle.

Fields§

§ledger_index: u32§confirmed_hash: Option<String>

The hash that reached quorum under the verifier’s policy.

§matches_claim: bool

Whether it matches the one claimed in the bundle.

§unl_size: usize§effective_size: usize§quorum: usize§signers: usize§policy_differs: bool

The bundle’s policy differs from the verifier’s.

§policy_observed_after: bool

The bundle builder saw the lists later than the ledger’s first validation.

§rule: &'static str

The rule used to compute the quorum. Currently always full-unl: 80% of the whole UNL, Negative UNL not applied, since the bundle has no proof of its inclusion in the flag ledger state. This is our own policy, not a reproduction of the historical xrpld quorum.

§policy_window: Option<(u32, u32)>

The time window used to pick lists: from the earliest to the latest signing time of full votes for the hash from known validators, seconds since the XRPL epoch.

§missing_publishers: Vec<String>

Configured publishers with no list in effect in the window. If not empty, the policy is incomplete and there is no confirmation.

§policies: Vec<PolicyUsed>

Every policy that could have been in effect in the window, and the result for each. The report’s confirmed_hash is set only if they all agree and the policy is complete.

§negative_unl: Vec<String>

The Negative UNL claimed by the bundle: the builder’s word only, not part of the verdict.

§with_claimed_negative_unl: Option<ClaimedNegativeUnl>

What the result would be with the claimed Negative UNL, for diagnostics only.

§not_seen: Vec<String>§conflicting: Vec<String>§unattributed: usize§untrusted_publishers: Vec<String>

Responses from publishers the verifier does not trust: not counted toward quorum.

§problems: Vec<String>

What in the bundle failed checks: signatures, sequences, formats.

§transactions: Vec<TxCheck>

Per transaction in the bundle (version 2).

§chain_ok: bool

The header chain checks out (or there is none).

§target_ledger: Option<u32>

The bundle’s target ledger: the first header of the last skip hop, the first in the chain, otherwise the confirmed one.

§target_hash: Option<String>§objects: Vec<ObjectCheck>

Per state object in the bundle (version 3).

§skip_hops: usize

Skip hops that check out (version 4); with chain_ok, all of them did.

Trait Implementations§

Source§

impl Clone for Report

Source§

fn clone(&self) -> Report

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Report

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Report

Source§

fn eq(&self, other: &Report) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Report

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Report

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.