pub struct OptionalCodecConfigurationV1 {
pub mask_codecs: Vec<MetadataV3>,
pub data_codecs: Vec<MetadataV3>,
}Expand description
optional codec configuration parameters (version 1.0 draft).
§Example (Zarr V3)
{
"name": "optional",
"configuration": {
"mask_codecs": [
{
"name": "packbits",
"configuration": {}
},
{
"name": "gzip",
"configuration": {"level": 5}
}
],
"data_codecs": [
{
"name": "bytes",
"configuration": {"endian": "little"}
},
{
"name": "gzip",
"configuration": {"level": 5}
}
]
}
}Fields§
§mask_codecs: Vec<MetadataV3>The codec chain for encoding/decoding the mask (flattened bool array).
data_codecs: Vec<MetadataV3>The codec chain for encoding/decoding the data (flattened bytes, excluding missing elements).
Trait Implementations§
Source§impl Clone for OptionalCodecConfigurationV1
impl Clone for OptionalCodecConfigurationV1
Source§fn clone(&self) -> OptionalCodecConfigurationV1
fn clone(&self) -> OptionalCodecConfigurationV1
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 moreSource§impl Debug for OptionalCodecConfigurationV1
impl Debug for OptionalCodecConfigurationV1
Source§impl<'de> Deserialize<'de> for OptionalCodecConfigurationV1
impl<'de> Deserialize<'de> for OptionalCodecConfigurationV1
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
impl Eq for OptionalCodecConfigurationV1
Source§impl From<OptionalCodecConfigurationV1> for OptionalCodecConfiguration
impl From<OptionalCodecConfigurationV1> for OptionalCodecConfiguration
Source§fn from(value: OptionalCodecConfigurationV1) -> Self
fn from(value: OptionalCodecConfigurationV1) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for OptionalCodecConfigurationV1
Auto Trait Implementations§
impl Freeze for OptionalCodecConfigurationV1
impl RefUnwindSafe for OptionalCodecConfigurationV1
impl Send for OptionalCodecConfigurationV1
impl Sync for OptionalCodecConfigurationV1
impl Unpin for OptionalCodecConfigurationV1
impl UnsafeUnpin for OptionalCodecConfigurationV1
impl UnwindSafe for OptionalCodecConfigurationV1
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.