pub struct Schema {
pub endianness: Endianness,
pub fields: Option<Vec<Field>>,
pub custom_metadata: Option<Vec<KeyValue>>,
pub features: Option<Vec<Feature>>,
}Expand description
A Schema describes the columns in a row batch
Generated from these locations:
- Table
Schemain the fileSchema.fbs:556
Fields§
§endianness: Endiannessendianness of the buffer it is Little Endian by default if endianness doesn’t match the underlying system then the vectors need to be converted
fields: Option<Vec<Field>>The field fields in the table Schema
custom_metadata: Option<Vec<KeyValue>>The field custom_metadata in the table Schema
features: Option<Vec<Feature>>Features used in the stream/file.
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn builder() -> SchemaBuilder<()>
pub fn builder() -> SchemaBuilder<()>
Creates a SchemaBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_endianness: impl WriteAsDefault<Endianness, Endianness>, field_fields: impl WriteAsOptional<Offset<[Offset<Field>]>>, field_custom_metadata: impl WriteAsOptional<Offset<[Offset<KeyValue>]>>, field_features: impl WriteAsOptional<Offset<[Feature]>>, ) -> Offset<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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 Ord for Schema
impl Ord for Schema
Source§impl PartialOrd for Schema
impl PartialOrd for Schema
impl Eq for Schema
impl StructuralPartialEq for Schema
impl VectorWrite<Offset<Schema>> for Schema
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<Schema>> for Schema
impl WriteAsOffset<Schema> for Schema
impl<T0: WriteAsDefault<Endianness, Endianness>, T1: WriteAsOptional<Offset<[Offset<Field>]>>, T2: WriteAsOptional<Offset<[Offset<KeyValue>]>>, T3: WriteAsOptional<Offset<[Feature]>>> WriteAsOffset<Schema> for SchemaBuilder<(T0, T1, T2, T3)>
impl WriteAsOptional<Offset<Schema>> for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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> Comparable<K> for Q
impl<Q, K> Comparable<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.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