pub enum StorageMetadataOperation {
RegisterFile {
merkle_root: Hash,
total_size_bytes: u64,
access_list: Vec<Address>,
fee_deposit: u64,
},
UpdateAccessList {
merkle_root: Hash,
new_access_list: Vec<Address>,
},
AddAccess {
merkle_root: Hash,
address: Address,
},
RemoveAccess {
merkle_root: Hash,
address: Address,
},
TopUpFeePool {
merkle_root: Hash,
amount: u64,
},
SubmitStorageProof {
challenge_id: Hash,
merkle_root: Hash,
chunk_index: u32,
chunk_hash: Hash,
merkle_path: Vec<Hash>,
},
}Expand description
Operations on storage metadata
Variants§
RegisterFile
Register a new file’s metadata and lock a fee deposit
UpdateAccessList
Replace the entire access list (owner only)
AddAccess
Append a single address to the access list (owner only)
RemoveAccess
Remove a single address from the access list (owner only)
TopUpFeePool
Top up the fee pool for a file (anyone can do this)
SubmitStorageProof
Submit a Merkle proof for a storage challenge (ArchiveNode only)
Fields
Trait Implementations§
Source§impl Clone for StorageMetadataOperation
impl Clone for StorageMetadataOperation
Source§fn clone(&self) -> StorageMetadataOperation
fn clone(&self) -> StorageMetadataOperation
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 StorageMetadataOperation
impl Debug for StorageMetadataOperation
Source§impl<'de> Deserialize<'de> for StorageMetadataOperation
impl<'de> Deserialize<'de> for StorageMetadataOperation
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 StorageMetadataOperation
impl PartialEq for StorageMetadataOperation
Source§fn eq(&self, other: &StorageMetadataOperation) -> bool
fn eq(&self, other: &StorageMetadataOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StorageMetadataOperation
impl Serialize for StorageMetadataOperation
impl Eq for StorageMetadataOperation
impl StructuralPartialEq for StorageMetadataOperation
Auto Trait Implementations§
impl Freeze for StorageMetadataOperation
impl RefUnwindSafe for StorageMetadataOperation
impl Send for StorageMetadataOperation
impl Sync for StorageMetadataOperation
impl Unpin for StorageMetadataOperation
impl UnsafeUnpin for StorageMetadataOperation
impl UnwindSafe for StorageMetadataOperation
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