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 · 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<OptionalCodecConfigurationV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionalCodecConfigurationV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<OptionalCodecConfigurationV1> for OptionalCodecConfiguration
impl From<OptionalCodecConfigurationV1> for OptionalCodecConfiguration
Source§fn from(value: OptionalCodecConfigurationV1) -> OptionalCodecConfiguration
fn from(value: OptionalCodecConfigurationV1) -> OptionalCodecConfiguration
Converts to this type from the input type.
Source§impl PartialEq for OptionalCodecConfigurationV1
impl PartialEq for OptionalCodecConfigurationV1
Source§fn eq(&self, other: &OptionalCodecConfigurationV1) -> bool
fn eq(&self, other: &OptionalCodecConfigurationV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptionalCodecConfigurationV1
impl Serialize for OptionalCodecConfigurationV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for OptionalCodecConfigurationV1
impl StructuralPartialEq for OptionalCodecConfigurationV1
Auto Trait Implementations§
impl Freeze for OptionalCodecConfigurationV1
impl Send for OptionalCodecConfigurationV1
impl Sync for OptionalCodecConfigurationV1
impl RefUnwindSafe 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,
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.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