Struct substrait_expr::helpers::schema::NamesOnlySchema
source · pub struct NamesOnlySchema {
pub root: NamesOnlySchemaNode,
/* private fields */
}Expand description
Represents a potentially nested schema where we only know the names and not the types of the fields.
The root of the schema is Vec<NamesOnlySchemaNode> where each node represents
a single (possibly nested) column
Fields§
§root: NamesOnlySchemaNodeThe root node of the schema
Implementations§
source§impl NamesOnlySchema
impl NamesOnlySchema
sourcepub fn new(root_nodes: Vec<NamesOnlySchemaNode>) -> Self
pub fn new(root_nodes: Vec<NamesOnlySchemaNode>) -> Self
Create a new names-only schema
sourcepub fn new_with_registry(
root_nodes: Vec<NamesOnlySchemaNode>,
registry: ExtensionsRegistry
) -> Self
pub fn new_with_registry( root_nodes: Vec<NamesOnlySchemaNode>, registry: ExtensionsRegistry ) -> Self
Create a names-only schema with the given registry
Trait Implementations§
source§impl Debug for NamesOnlySchema
impl Debug for NamesOnlySchema
source§impl PartialEq for NamesOnlySchema
impl PartialEq for NamesOnlySchema
source§fn eq(&self, other: &NamesOnlySchema) -> bool
fn eq(&self, other: &NamesOnlySchema) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NamesOnlySchema
Auto Trait Implementations§
impl RefUnwindSafe for NamesOnlySchema
impl Send for NamesOnlySchema
impl Sync for NamesOnlySchema
impl Unpin for NamesOnlySchema
impl UnwindSafe for NamesOnlySchema
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