pub struct StorageMetadata {
pub merkle_root: Hash,
pub owner: Address,
pub total_size_bytes: u64,
pub access_list: Vec<Address>,
pub fee_pool: u64,
pub created_at: u64,
}Expand description
On-chain metadata for a stored file
Fields§
§merkle_root: HashBlake3 Merkle root of the file’s content tree
owner: AddressOwner/uploader who controls the file
total_size_bytes: u64Total file size in bytes
access_list: Vec<Address>Native ACL — addresses allowed to retrieve the file
fee_pool: u64Locked Koppa (base units) reserved for storage-node payouts
created_at: u64Block height at which the metadata was created
Trait Implementations§
Source§impl Clone for StorageMetadata
impl Clone for StorageMetadata
Source§fn clone(&self) -> StorageMetadata
fn clone(&self) -> StorageMetadata
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 StorageMetadata
impl Debug for StorageMetadata
Source§impl<'de> Deserialize<'de> for StorageMetadata
impl<'de> Deserialize<'de> for StorageMetadata
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 StorageMetadata
impl PartialEq for StorageMetadata
Source§fn eq(&self, other: &StorageMetadata) -> bool
fn eq(&self, other: &StorageMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StorageMetadata
impl Serialize for StorageMetadata
impl Eq for StorageMetadata
impl StructuralPartialEq for StorageMetadata
Auto Trait Implementations§
impl Freeze for StorageMetadata
impl RefUnwindSafe for StorageMetadata
impl Send for StorageMetadata
impl Sync for StorageMetadata
impl Unpin for StorageMetadata
impl UnsafeUnpin for StorageMetadata
impl UnwindSafe for StorageMetadata
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