pub struct SnipRef {
pub content_root: [u8; 32],
pub snip_file_id: Option<[u8; 32]>,
pub size_bytes: u64,
pub schema_version: u32,
}Expand description
Off-chain content pointer. No URL, no plaintext, no keys. The actual object lives in SNIP; the chain holds only this pointer + a commitment + an access policy.
Fields§
§content_root: [u8; 32]§snip_file_id: Option<[u8; 32]>§size_bytes: u64§schema_version: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for SnipRef
impl<'de> Deserialize<'de> for SnipRef
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
impl Eq for SnipRef
impl StructuralPartialEq for SnipRef
Auto Trait Implementations§
impl Freeze for SnipRef
impl RefUnwindSafe for SnipRef
impl Send for SnipRef
impl Sync for SnipRef
impl Unpin for SnipRef
impl UnsafeUnpin for SnipRef
impl UnwindSafe for SnipRef
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