#[non_exhaustive]pub struct ArrayMetadata {
pub dimensions: Vec<i64>,
pub element_type: String,
pub logical_type: Option<String>,
pub preferred_subarray_dimensions: Vec<i64>,
pub store_created: Option<i64>,
pub store_last_write: Option<i64>,
}Expand description
Shape and element type of a dataset, without reading it.
The answer to ETP’s GetDataArrayMetadata, and what a viewer needs before
deciding whether it can afford the data.
Built with ArrayMetadata::new; #[non_exhaustive], so that what ETP adds
to DataArrayMetadata is not a breaking change for every caller.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dimensions: Vec<i64>Number of elements along each dimension.
element_type: StringElement type, as the backend names it (double, int64, …) - the type
the values travel in (ETP’s transportArrayType).
logical_type: Option<String>ETP logicalArrayType, when the store distinguishes what the values mean
from how they travel (an array of booleans carried as bytes). None when
it does not: the element type is then all there is to say.
preferred_subarray_dimensions: Vec<i64>ETP preferredSubarrayDimensions: the block a store would rather be read
by (its chunking). Empty when it has no preference.
store_created: Option<i64>ETP storeCreated of the array (microseconds since the Unix epoch, UTC).
None when the store does not keep it.
store_last_write: Option<i64>ETP storeLastWrite of the array, same unit. None when not kept.
Implementations§
Trait Implementations§
Source§impl Clone for ArrayMetadata
impl Clone for ArrayMetadata
Source§impl Debug for ArrayMetadata
impl Debug for ArrayMetadata
impl Eq for ArrayMetadata
Source§impl PartialEq for ArrayMetadata
impl PartialEq for ArrayMetadata
impl StructuralPartialEq for ArrayMetadata
Auto Trait Implementations§
impl Freeze for ArrayMetadata
impl RefUnwindSafe for ArrayMetadata
impl Send for ArrayMetadata
impl Sync for ArrayMetadata
impl Unpin for ArrayMetadata
impl UnsafeUnpin for ArrayMetadata
impl UnwindSafe for ArrayMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.