pub struct Example {
pub command: String,
pub description: String,
pub test: ExampleTest,
pub expect: Option<String>,
pub pages: Vec<String>,
pub files: Vec<ExampleFile>,
}Expand description
One entry of EXAMPLES_TOML: a command and what it does.
Fields§
§command: String§description: String§test: ExampleTest§expect: Option<String>What counts as working, when not the default: rows, screen or exit.
pages: Vec<String>The manpages that show it, as NAME.SECTION: datui.1, datui-config.5.
files: Vec<ExampleFile>Files the command reads, written before it runs and shown above it.
Trait Implementations§
impl Eq for Example
impl StructuralPartialEq for Example
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnsafeUnpin for Example
impl UnwindSafe for Example
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