diff --git a/libimagstorestdhook/src/vcs/git/action.rs b/libimagstorestdhook/src/vcs/git/action.rs index 45cbf0da..26caf5a0 100644 --- a/libimagstorestdhook/src/vcs/git/action.rs +++ b/libimagstorestdhook/src/vcs/git/action.rs @@ -1,8 +1,24 @@ +use std::fmt::{Display, Formatter, Error}; + +#[derive(Clone, Debug)] pub enum StoreAction { Create, Retrieve, Update, Delete, - - // "Read" doesn't matter, as we do not use git on read actions, only when altering content. } + +impl Display for StoreAction { + + fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error> { + write!(fmt, "StoreAction: {}", + match *self { + StoreAction::Create => "create", + StoreAction::Retrieve => "retrieve", + StoreAction::Update => "update", + StoreAction::Delete => "delete", + }) + } + +} +