pub struct ProgramOptions {
pub render: Option<Render>,
pub grammar: Option<String>,
pub limits: Limits,
}Expand description
How a program is run, as dmog run’s options say it.
Fields§
§render: Option<Render>How the export’s table or JSON events are written; None writes a
table as CSV and events as JSON. A program that writes its own text
takes none.
grammar: Option<String>A format whose parser reads the input, one
parsed_formats lists: the program reads
the parser’s rule passes, as a transducer part does. None reads
the input as a JSON document’s events.
limits: LimitsImplementations§
Source§impl ProgramOptions
impl ProgramOptions
Sourcepub fn validate(&self) -> Result<(), Fail>
pub fn validate(&self) -> Result<(), Fail>
The options checked as Program::new checks them before it
compiles the program: the grammar is a format
parsed_formats lists. A failure is
INPUT_INVALID.
Trait Implementations§
Source§impl Clone for ProgramOptions
impl Clone for ProgramOptions
Source§impl Debug for ProgramOptions
impl Debug for ProgramOptions
Source§impl Default for ProgramOptions
impl Default for ProgramOptions
Source§fn default() -> ProgramOptions
fn default() -> ProgramOptions
Returns the “default value” for a type. Read more
impl Eq for ProgramOptions
Source§impl PartialEq for ProgramOptions
impl PartialEq for ProgramOptions
impl StructuralPartialEq for ProgramOptions
Auto Trait Implementations§
impl Forget for ProgramOptions
impl Freeze for ProgramOptions
impl Move for ProgramOptions
impl RefUnwindSafe for ProgramOptions
impl Send for ProgramOptionswhere
RawVecInner: Send,
impl Sync for ProgramOptionswhere
RawVecInner: Sync,
impl Unpin for ProgramOptions
impl UnsafeUnpin for ProgramOptions
impl UnwindSafe for ProgramOptionswhere
RawVecInner: UnwindSafe,
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> Equivalent<K> for Q
impl<Q, K> Equivalent<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.