pub struct NamedInput {
pub name: String,
pub kind: InputKind,
pub rows: [u32; 2],
pub cols: [u32; 2],
pub header: bool,
pub col_types: Vec<ColType>,
pub non_empty: bool,
pub default_ref: Option<String>,
}Expand description
A range the macro works on, with the shape and content it expects.
Fields§
§name: StringThe token that stands for it in step parameters (Input, Rates).
kind: InputKind§rows: [u32; 2]Allowed data rows (header excluded), [min, max]; a max of 0 means no limit.
cols: [u32; 2]Allowed columns, [min, max]; a max of 0 means no limit.
header: boolThe first row holds column names.
col_types: Vec<ColType>What each column must hold, first column first; columns past the list may hold anything.
non_empty: boolEvery data cell must have something in it.
default_ref: Option<String>The range used when a run doesn’t name one (else the current selection, for the first input).
Trait Implementations§
Source§impl Clone for NamedInput
impl Clone for NamedInput
Source§fn clone(&self) -> NamedInput
fn clone(&self) -> NamedInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamedInput
impl Debug for NamedInput
Source§impl Default for NamedInput
impl Default for NamedInput
Source§impl<'de> Deserialize<'de> for NamedInputwhere
NamedInput: Default,
impl<'de> Deserialize<'de> for NamedInputwhere
NamedInput: Default,
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 PartialEq for NamedInput
impl PartialEq for NamedInput
Source§impl Serialize for NamedInput
impl Serialize for NamedInput
impl StructuralPartialEq for NamedInput
Auto Trait Implementations§
impl Freeze for NamedInput
impl RefUnwindSafe for NamedInput
impl Send for NamedInput
impl Sync for NamedInput
impl Unpin for NamedInput
impl UnsafeUnpin for NamedInput
impl UnwindSafe for NamedInput
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