pub struct Template {
pub commit_type: Part,
pub commit_scope: Part,
pub commit_subject: Part,
pub commit_body: Part,
pub commit_breaking: Part,
pub commit_issue: Part,
}
Fields§
§commit_type: Part
§commit_scope: Part
§commit_subject: Part
§commit_body: Part
§commit_breaking: Part
§commit_issue: Part
Implementations§
Source§impl Template
impl Template
pub async fn run(&mut self, cmd: &ReviseCommands) -> ReviseResult<String>
pub fn run_default(&mut self) -> ReviseResult<()>
pub async fn run_action(&mut self, cmd: &ReviseCommands) -> ReviseResult<()>
pub fn get_ctype(&self) -> String
pub fn get_cicon(&self) -> String
pub fn get_cscope(&self) -> Option<String>
pub fn get_csubject(&self) -> String
pub fn get_cbody(&self) -> Option<String>
pub fn get_cbreaking(&self) -> Option<String>
pub fn get_cissue(&self) -> Option<String>
pub fn template(&self, color: bool) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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