Struct iceberg_rust::spec::types::StructType
source · pub struct StructType { /* private fields */ }
Expand description
DataType for a specific struct
Implementations§
source§impl StructType
impl StructType
sourcepub fn new(fields: Vec<StructField>) -> StructType
pub fn new(fields: Vec<StructField>) -> StructType
Create new struct type
pub fn builder() -> StructTypeBuilder
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
pub fn len(&self) -> usize
pub fn iter(&self) -> Iter<'_, StructField>
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<StructType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<StructType, <D as Deserializer<'de>>::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 for StructType
impl PartialEq 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§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
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 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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.