Add documentation to InputDescription

This commit is contained in:
Ethan P 2020-05-15 14:21:38 -07:00 committed by David Peter
parent 268c0963b4
commit 384ea38bd9
1 changed files with 7 additions and 0 deletions

View File

@ -8,10 +8,17 @@ use crate::error::*;
const THEME_PREVIEW_FILE: &[u8] = include_bytes!("../assets/theme_preview.rs");
/// A description for an Input source.
/// This tells bat how to refer to the input.
#[derive(Debug, Clone)]
pub(crate) struct InputDescription {
/// The name of the input used when printing warnings.
pub full: String,
/// The prefix string for the input when displaying it in the header.
pub prefix: String,
/// The name of the input.
pub name: String,
}