pub struct UsageForTypeBuilder { /* private fields */ }Expand description
Builder for UsageForType.
Implementations§
Source§impl UsageForTypeBuilder
impl UsageForTypeBuilder
Sourcepub fn storage_type<VALUE: Into<StorageType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn storage_type<VALUE: Into<StorageType>>( &mut self, value: VALUE, ) -> &mut Self
Name of storage type.
Sourcepub fn usage<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn usage<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Storage usage (bytes).
Sourcepub fn build(&self) -> Result<UsageForType, UsageForTypeBuilderError>
pub fn build(&self) -> Result<UsageForType, UsageForTypeBuilderError>
Trait Implementations§
Source§impl Clone for UsageForTypeBuilder
impl Clone for UsageForTypeBuilder
Source§fn clone(&self) -> UsageForTypeBuilder
fn clone(&self) -> UsageForTypeBuilder
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§
impl Freeze for UsageForTypeBuilder
impl RefUnwindSafe for UsageForTypeBuilder
impl Send for UsageForTypeBuilder
impl Sync for UsageForTypeBuilder
impl Unpin for UsageForTypeBuilder
impl UnsafeUnpin for UsageForTypeBuilder
impl UnwindSafe for UsageForTypeBuilder
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