pub struct Opts {
min: Option<i32>,
max: Option<i32>,
tick_count: Option<i32>,
scale: Option<String>,
axis_title: Option<String>,
}
Expand description
The x or y options for a returned table.
Argh these are going to be annoying to parse.
Fields
min: Option<i32>
max: Option<i32>
tick_count: Option<i32>
scale: Option<String>
axis_title: Option<String>
Implementations
sourceimpl Opts
impl Opts
sourcepub const SCALE_TYPES: [&'static str; 7] = _
pub const SCALE_TYPES: [&'static str; 7] = _
The scale types that are possible in GoaT reports (I think).
sourcepub fn try_from_string(cli_opts: &str) -> Result<Self>
pub fn try_from_string(cli_opts: &str) -> Result<Self>
Try and parse a string of options into the CLI.
“1,10”:
Opts {
min: Some(1),
max: Some(10),
tick_count: None,
scale: None,
axis_title: None
}
“,,20”:
Opts {
min: None,
max: None,
tick_count: Some(20),
scale: None,
axis_title: None
}
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more