pub struct BundleWrite {
pub bundle_id: String,
pub path: PathBuf,
pub metadata: Value,
pub dimensions: [String; 3],
pub documents: Vec<(String, Value)>,
pub byte_length: u64,
pub arrays: Vec<(String, u64)>,
pub chunk_count: u64,
pub crc32: String,
}Available on crate feature
encoder only.Expand description
One bundle written into a shared store (BundleWrite in the reference).
documents holds every array document the bundle uses, its variable
arrays in the metadata’s order and then the coordinate arrays its
dimensions name; byte_length is those arrays’ objects (each zarr.json
plus shard or chunk), which is what a viewer downloads for the bundle
alone and what its manifest entry reports. crc32 is the CRC-32 of the
group document naming the bundle, stamped once that is written: here the
part’s.
Fields§
§bundle_id: String§path: PathBuf§metadata: Value§dimensions: [String; 3]§documents: Vec<(String, Value)>§byte_length: u64§arrays: Vec<(String, u64)>§chunk_count: u64§crc32: StringImplementations§
Trait Implementations§
Source§impl Clone for BundleWrite
impl Clone for BundleWrite
Auto Trait Implementations§
impl Forget for BundleWrite
impl Freeze for BundleWritewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<(String, Value)>: Freeze,
PhantomData<(String, u64)>: Freeze,
impl Move for BundleWrite
impl RefUnwindSafe for BundleWrite
impl Send for BundleWrite
impl Sync for BundleWrite
impl Unpin for BundleWrite
impl UnsafeUnpin for BundleWritewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
PhantomData<(String, u64)>: UnsafeUnpin,
impl UnwindSafe for BundleWrite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more