Struct iceberg_rust::model::data_types::StructType
source · pub struct StructType {
pub fields: Vec<StructField>,
}
Expand description
DataType for a specific struct
Fields§
§fields: Vec<StructField>
Struct fields
Implementations§
source§impl StructType
impl StructType
sourcepub fn get(&self, index: usize) -> Option<&StructField>
pub fn get(&self, index: usize) -> Option<&StructField>
Get structfield with certain id
sourcepub fn get_name(&self, name: &str) -> Option<&StructField>
pub fn get_name(&self, name: &str) -> Option<&StructField>
Get structfield with certain name
Trait Implementations§
source§impl Clone for StructType
impl Clone for StructType
source§fn clone(&self) -> StructType
fn clone(&self) -> StructType
Returns a copy 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 StructType
impl Debug for StructType
source§impl<'de> Deserialize<'de> for StructType
impl<'de> Deserialize<'de> for StructType
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 Index<usize> for StructType
impl Index<usize> for StructType
source§impl PartialEq<StructType> for StructType
impl PartialEq<StructType> for StructType
source§fn eq(&self, other: &StructType) -> bool
fn eq(&self, other: &StructType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructType
impl Serialize for StructType
source§impl TryFrom<&Schema> for StructType
impl TryFrom<&Schema> for StructType
source§impl TryInto<Schema> for &StructType
impl TryInto<Schema> for &StructType
impl Eq for StructType
impl StructuralEq for StructType
impl StructuralPartialEq for StructType
Auto Trait Implementations§
impl RefUnwindSafe for StructType
impl Send for StructType
impl Sync for StructType
impl Unpin for StructType
impl UnwindSafe for StructType
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.