pub struct ExtensionArgs {
pub positional: Vec<ExtensionValue>,
pub named: IndexMap<String, ExtensionValue>,
pub output_columns: Vec<ExtensionColumn>,
pub relation_type: ExtensionRelationType,
}Expand description
Represents the arguments and output columns for an extension relation.
Named arguments are stored in an IndexMap whose iteration order
determines display order. Extension [Explainable::to_args()]
implementations should insert named arguments in the order they should
appear in the text format.
Fields§
§positional: Vec<ExtensionValue>Positional arguments (expressions, literals, references)
named: IndexMap<String, ExtensionValue>Named arguments, displayed in the order they were inserted
output_columns: Vec<ExtensionColumn>Output columns (named columns, references, or expressions)
relation_type: ExtensionRelationTypeThe type of extension relation (Leaf/Single/Multi)
Implementations§
Source§impl ExtensionArgs
impl ExtensionArgs
Sourcepub fn new(relation_type: ExtensionRelationType) -> Self
pub fn new(relation_type: ExtensionRelationType) -> Self
Create a new empty ExtensionArgs
Sourcepub fn extractor(&self) -> ArgsExtractor<'_>
pub fn extractor(&self) -> ArgsExtractor<'_>
Create an extractor for validating named arguments
Trait Implementations§
Source§impl Clone for ExtensionArgs
impl Clone for ExtensionArgs
Source§fn clone(&self) -> ExtensionArgs
fn clone(&self) -> ExtensionArgs
Returns a duplicate 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 ExtensionArgs
impl Debug for ExtensionArgs
Auto Trait Implementations§
impl Freeze for ExtensionArgs
impl RefUnwindSafe for ExtensionArgs
impl Send for ExtensionArgs
impl Sync for ExtensionArgs
impl Unpin for ExtensionArgs
impl UnwindSafe for ExtensionArgs
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