pub enum ArrayMetadata {
V3(ArrayMetadataV3),
V2(ArrayMetadataV2),
}Expand description
Zarr array metadata (V2 or V3).
Variants§
Implementations§
Source§impl ArrayMetadata
impl ArrayMetadata
Sourcepub fn to_string_pretty(&self) -> String
pub fn to_string_pretty(&self) -> String
Serialize the metadata as a pretty-printed String of JSON.
Trait Implementations§
Source§impl Clone for ArrayMetadata
impl Clone for ArrayMetadata
Source§impl Debug for ArrayMetadata
impl Debug for ArrayMetadata
Source§impl<'de> Deserialize<'de> for ArrayMetadata
impl<'de> Deserialize<'de> for ArrayMetadata
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
Source§impl Display for ArrayMetadata
impl Display for ArrayMetadata
Source§impl From<ArrayMetadataV2> for ArrayMetadata
impl From<ArrayMetadataV2> for ArrayMetadata
Source§fn from(value: ArrayMetadataV2) -> Self
fn from(value: ArrayMetadataV2) -> Self
Converts to this type from the input type.
Source§impl From<ArrayMetadataV3> for ArrayMetadata
impl From<ArrayMetadataV3> for ArrayMetadata
Source§fn from(value: ArrayMetadataV3) -> Self
fn from(value: ArrayMetadataV3) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ArrayMetadata
impl PartialEq for ArrayMetadata
Source§impl Serialize for ArrayMetadata
impl Serialize 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
Mutably borrows from an owned value. Read more