pub struct UsageForType { /* private fields */ }Expand description
Usage for a storage type.
Implementations§
Source§impl UsageForType
impl UsageForType
pub fn builder(storageType: StorageType, usage: f64) -> UsageForTypeBuilder
pub fn storageType(&self) -> &StorageType
pub fn usage(&self) -> f64
Trait Implementations§
Source§impl Clone for UsageForType
impl Clone for UsageForType
Source§fn clone(&self) -> UsageForType
fn clone(&self) -> UsageForType
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 UsageForType
impl Debug for UsageForType
Source§impl Default for UsageForType
impl Default for UsageForType
Source§fn default() -> UsageForType
fn default() -> UsageForType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageForType
impl<'de> Deserialize<'de> for UsageForType
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
Auto Trait Implementations§
impl Freeze for UsageForType
impl RefUnwindSafe for UsageForType
impl Send for UsageForType
impl Sync for UsageForType
impl Unpin for UsageForType
impl UnsafeUnpin for UsageForType
impl UnwindSafe for UsageForType
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