pub struct ValidationReport { /* private fields */ }Expand description
Proof object that validation occurred.
This type can only be created within the crate via pub(crate) new().
The private _token field ensures external code cannot construct it.
§Invariants
- Cannot be constructed outside converge-core
- Contains complete validation audit trail
- Immutable once created
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn proposal_id(&self) -> &ProposalId
pub fn proposal_id(&self) -> &ProposalId
Get the proposal ID.
Sourcepub fn checks(&self) -> &[CheckResult]
pub fn checks(&self) -> &[CheckResult]
Get the validation checks.
Sourcepub fn policy_version(&self) -> &ContentHash
pub fn policy_version(&self) -> &ContentHash
Get the policy version hash.
Sourcepub fn validated_at(&self) -> &Timestamp
pub fn validated_at(&self) -> &Timestamp
Get the validation timestamp.
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Check if all validation checks passed.
Sourcepub fn failed_checks(&self) -> Vec<&str>
pub fn failed_checks(&self) -> Vec<&str>
Get the names of failed checks.
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnwindSafe for ValidationReport
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