pub struct VariadicBehavior {
pub min: u32,
pub max: Option<u32>,
pub parameter_consistency: Option<ParameterConsistency>,
}Available on crate feature
parse only.Expand description
Validated variadic behavior with min/max constraints
Fields§
§min: u32Minimum number of arguments
max: Option<u32>Maximum number of arguments (unlimited when None)
parameter_consistency: Option<ParameterConsistency>Whether all variadic parameters must have the same type.
None when the parameter is not specified in the YAML. We cannot assume a default
because the Substrait spec does not define default behavior for missing values
(see https://github.com/substrait-io/substrait/issues/928).
TODO: Once the spec defines default behavior, apply it and change this to a non-Option type (see issue #454).
Trait Implementations§
Source§impl Clone for VariadicBehavior
impl Clone for VariadicBehavior
Source§fn clone(&self) -> VariadicBehavior
fn clone(&self) -> VariadicBehavior
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 VariadicBehavior
impl Debug for VariadicBehavior
Source§impl PartialEq for VariadicBehavior
impl PartialEq for VariadicBehavior
Source§impl TryFrom<VariadicBehavior> for VariadicBehavior
impl TryFrom<VariadicBehavior> for VariadicBehavior
impl StructuralPartialEq for VariadicBehavior
Auto Trait Implementations§
impl Freeze for VariadicBehavior
impl RefUnwindSafe for VariadicBehavior
impl Send for VariadicBehavior
impl Sync for VariadicBehavior
impl Unpin for VariadicBehavior
impl UnwindSafe for VariadicBehavior
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