pub struct ManagedSnipRef {
pub snip_ref: SnipRef,
pub access_policy: ContentAccessPolicy,
}Expand description
A SnipRef is never carried bare in education chain state — it is
always paired with its ContentAccessPolicy. Using this wrapper in
every payload makes a dangling content ref structurally impossible.
Fields§
§snip_ref: SnipRef§access_policy: ContentAccessPolicyTrait Implementations§
Source§impl Clone for ManagedSnipRef
impl Clone for ManagedSnipRef
Source§fn clone(&self) -> ManagedSnipRef
fn clone(&self) -> ManagedSnipRef
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 ManagedSnipRef
impl Debug for ManagedSnipRef
Source§impl<'de> Deserialize<'de> for ManagedSnipRef
impl<'de> Deserialize<'de> for ManagedSnipRef
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 PartialEq for ManagedSnipRef
impl PartialEq for ManagedSnipRef
Source§fn eq(&self, other: &ManagedSnipRef) -> bool
fn eq(&self, other: &ManagedSnipRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ManagedSnipRef
impl Serialize for ManagedSnipRef
impl Eq for ManagedSnipRef
impl StructuralPartialEq for ManagedSnipRef
Auto Trait Implementations§
impl Freeze for ManagedSnipRef
impl RefUnwindSafe for ManagedSnipRef
impl Send for ManagedSnipRef
impl Sync for ManagedSnipRef
impl Unpin for ManagedSnipRef
impl UnsafeUnpin for ManagedSnipRef
impl UnwindSafe for ManagedSnipRef
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