pub struct SharedStorageMetadataBuilder { /* private fields */ }Expand description
Builder for SharedStorageMetadata.
Implementations§
Sourcepub fn creation_time<VALUE: Into<TimeSinceEpoch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn creation_time<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
Time when the origin’s shared storage was last created.
Sourcepub fn length<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn length<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Number of key-value pairs stored in origin’s shared storage.
Sourcepub fn remaining_budget<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn remaining_budget<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Current amount of bits of entropy remaining in the navigation budget.
Sourcepub fn bytes_used<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn bytes_used<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Total number of bytes stored as key-value pairs in origin’s shared storage.
Sourcepub fn build(
&self,
) -> Result<SharedStorageMetadata, SharedStorageMetadataBuilderError>
pub fn build( &self, ) -> Result<SharedStorageMetadata, SharedStorageMetadataBuilderError>
Trait Implementations§
Source§fn clone(&self) -> SharedStorageMetadataBuilder
fn clone(&self) -> SharedStorageMetadataBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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