pub enum TrustLevel {
Strict,
Compatible,
Observational,
}Expand description
Trust level for foreign account validation.
Variants§
Strict
Full validation: owner + layout_id + exact size + not closed.
Compatible
Version-compatible: owner + layout_id + minimum size.
Observational
Best-effort: layout_id match only. For tooling and indexers.
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
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 PartialEq for TrustLevel
impl PartialEq for TrustLevel
Source§fn eq(&self, other: &TrustLevel) -> bool
fn eq(&self, other: &TrustLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TrustLevel
impl Eq for TrustLevel
impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnsafeUnpin for TrustLevel
impl UnwindSafe for TrustLevel
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