Add StoreAction::as_commit_message() utility fn
This commit is contained in:
parent
40dbdaa5e1
commit
9a4cdad9a1
1 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,15 @@ impl StoreAction {
|
||||||
StoreAction::Delete => "DELETE",
|
StoreAction::Delete => "DELETE",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn as_commit_message(&self) -> &str {
|
||||||
|
match *self {
|
||||||
|
StoreAction::Create => "Create",
|
||||||
|
StoreAction::Retrieve => "Retrieve",
|
||||||
|
StoreAction::Update => "Update",
|
||||||
|
StoreAction::Delete => "Delete",
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Display for StoreAction {
|
impl Display for StoreAction {
|
||||||
|
|
Loading…
Reference in a new issue