huskies: merge 858
This commit is contained in:
@@ -24,6 +24,7 @@ impl QaMode {
|
||||
}
|
||||
}
|
||||
|
||||
/// Return the lowercase string representation of this QA mode.
|
||||
pub fn as_str(&self) -> &'static str {
|
||||
match self {
|
||||
Self::Server => "server",
|
||||
@@ -39,6 +40,7 @@ impl std::fmt::Display for QaMode {
|
||||
}
|
||||
}
|
||||
|
||||
/// Parsed YAML front-matter fields from a story markdown file.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Default)]
|
||||
pub struct StoryMetadata {
|
||||
pub name: Option<String>,
|
||||
@@ -71,6 +73,7 @@ pub struct StoryMetadata {
|
||||
pub mergemaster_attempted: Option<bool>,
|
||||
}
|
||||
|
||||
/// Errors that can occur when parsing story front-matter metadata.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum StoryMetaError {
|
||||
MissingFrontMatter,
|
||||
|
||||
Reference in New Issue
Block a user