pub struct CommitSpec {
pub tool: String,
pub when: Guard,
}Expand description
A confirm-before-act tool, gated by when.
Fields§
§tool: StringThe committing tool (e.g. book, charge_card).
when: GuardThe guard that must hold before the tool is admitted.
Trait Implementations§
Source§impl Clone for CommitSpec
impl Clone for CommitSpec
Source§fn clone(&self) -> CommitSpec
fn clone(&self) -> CommitSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitSpec
impl Debug for CommitSpec
Source§impl<'de> Deserialize<'de> for CommitSpec
impl<'de> Deserialize<'de> for CommitSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitSpec
impl !RefUnwindSafe for CommitSpec
impl Send for CommitSpec
impl Sync for CommitSpec
impl Unpin for CommitSpec
impl !UnwindSafe for CommitSpec
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