Struct git_revise::revise::template::Template
source · 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: PartImplementations§
source§impl Template
impl Template
pub async fn run( &mut self, cmd: &Option<ReviseCommands>, ) -> ReviseResult<String>
pub fn run_default(&mut self) -> ReviseResult<()>
pub async fn run_action(&mut self, cmd: &AICommand) -> ReviseResult<()>
pub fn get_ctype(&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 show(&self) -> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)