pub struct EnvelopeMembershipEvidence { /* private fields */ }Expand description
Declared and derived envelope membership, with supporting evidence.
Implementations§
Source§impl EnvelopeMembershipEvidence
impl EnvelopeMembershipEvidence
Sourcepub fn try_new(
request: EnvelopeMembershipRequest,
declared: Vec<ObjectId>,
derived: Vec<ObjectId>,
evaluated_objects: usize,
evidence: Evidence,
) -> Result<Self, EnvelopeMembershipError>
pub fn try_new( request: EnvelopeMembershipRequest, declared: Vec<ObjectId>, derived: Vec<ObjectId>, evaluated_objects: usize, evidence: Evidence, ) -> Result<Self, EnvelopeMembershipError>
Both sets are sorted and deduplicated so agreement is decided by content, never by the order an adapter happened to walk the model.
pub fn request(&self) -> EnvelopeMembershipRequest
Sourcepub fn evaluated_objects(&self) -> usize
pub fn evaluated_objects(&self) -> usize
How many objects the derivation considered.
pub fn evidence(&self) -> &Evidence
Sourcepub fn declared_only(&self) -> Vec<ObjectId>
pub fn declared_only(&self) -> Vec<ObjectId>
Declared on the envelope but not derived there.
Sourcepub fn derived_only(&self) -> Vec<ObjectId>
pub fn derived_only(&self) -> Vec<ObjectId>
Derived on the envelope but not declared there.
Trait Implementations§
Source§impl Clone for EnvelopeMembershipEvidence
impl Clone for EnvelopeMembershipEvidence
Source§fn clone(&self) -> EnvelopeMembershipEvidence
fn clone(&self) -> EnvelopeMembershipEvidence
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 EnvelopeMembershipEvidence
impl Debug for EnvelopeMembershipEvidence
impl StructuralPartialEq for EnvelopeMembershipEvidence
Auto Trait Implementations§
impl Freeze for EnvelopeMembershipEvidence
impl RefUnwindSafe for EnvelopeMembershipEvidence
impl Send for EnvelopeMembershipEvidence
impl Sync for EnvelopeMembershipEvidence
impl Unpin for EnvelopeMembershipEvidence
impl UnsafeUnpin for EnvelopeMembershipEvidence
impl UnwindSafe for EnvelopeMembershipEvidence
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