#[non_exhaustive]pub struct MetadataStoreState {
pub disk_utilization_bytes: i64,
/* private fields */
}Available on crate feature
metadata-service only.Expand description
Represents state information for a MetadataStore.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.disk_utilization_bytes: i64The disk utilization of the MetadataStore in bytes.
Implementations§
Source§impl MetadataStoreState
impl MetadataStoreState
pub fn new() -> Self
Sourcepub fn set_disk_utilization_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_disk_utilization_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of disk_utilization_bytes.
§Example
ⓘ
let x = MetadataStoreState::new().set_disk_utilization_bytes(42);Trait Implementations§
Source§impl Clone for MetadataStoreState
impl Clone for MetadataStoreState
Source§fn clone(&self) -> MetadataStoreState
fn clone(&self) -> MetadataStoreState
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 moreSource§impl Debug for MetadataStoreState
impl Debug for MetadataStoreState
Source§impl Default for MetadataStoreState
impl Default for MetadataStoreState
Source§fn default() -> MetadataStoreState
fn default() -> MetadataStoreState
Returns the “default value” for a type. Read more
Source§impl Message for MetadataStoreState
impl Message for MetadataStoreState
Source§impl PartialEq for MetadataStoreState
impl PartialEq for MetadataStoreState
impl StructuralPartialEq for MetadataStoreState
Auto Trait Implementations§
impl Freeze for MetadataStoreState
impl RefUnwindSafe for MetadataStoreState
impl Send for MetadataStoreState
impl Sync for MetadataStoreState
impl Unpin for MetadataStoreState
impl UnsafeUnpin for MetadataStoreState
impl UnwindSafe for MetadataStoreState
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