Struct iceberg_rust::model::data_types::MapType
source · pub struct MapType {
pub key_id: i32,
pub key: Box<Type>,
pub value_id: i32,
pub value_required: bool,
pub value: Box<Type>,
}
Expand description
A map is a collection of key-value pairs with a key type and a value type. Both the key field and value field each have an integer id that is unique in the table schema. Map keys are required and map values can be either optional or required. Both map keys and map values may be any type, including nested types.
Fields§
§key_id: i32
Key Id that is unique in table schema
key: Box<Type>
Datatype of key
value_id: i32
Value Id that is unique in table schema
value_required: bool
If value is optional or required
value: Box<Type>
Datatype of value
Trait Implementations§
source§impl<'de> Deserialize<'de> for MapType
impl<'de> Deserialize<'de> for MapType
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 PartialEq<MapType> for MapType
impl PartialEq<MapType> for MapType
impl Eq for MapType
impl StructuralEq for MapType
impl StructuralPartialEq for MapType
Auto Trait Implementations§
impl RefUnwindSafe for MapType
impl Send for MapType
impl Sync for MapType
impl Unpin for MapType
impl UnwindSafe for MapType
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.