pub struct MetadataBlock {
pub creator_id: u32,
pub datasets: Vec<DatasetMetadata>,
}Expand description
Metadata created independently by a single creator (e.g. one thread).
In independent mode, each creator accumulates datasets into its own block.
Blocks are later merged into a MetadataIndex.
Fields§
§creator_id: u32Unique identifier for the creator (e.g. thread index).
datasets: Vec<DatasetMetadata>Datasets defined by this creator.
Implementations§
Source§impl MetadataBlock
impl MetadataBlock
Sourcepub fn add_dataset(&mut self, meta: DatasetMetadata)
pub fn add_dataset(&mut self, meta: DatasetMetadata)
Add a dataset to this block.
Trait Implementations§
Source§impl Clone for MetadataBlock
impl Clone for MetadataBlock
Source§fn clone(&self) -> MetadataBlock
fn clone(&self) -> MetadataBlock
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 moreAuto Trait Implementations§
impl Freeze for MetadataBlock
impl RefUnwindSafe for MetadataBlock
impl Send for MetadataBlock
impl Sync for MetadataBlock
impl Unpin for MetadataBlock
impl UnsafeUnpin for MetadataBlock
impl UnwindSafe for MetadataBlock
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