pub struct Message {
pub body: Option<String>,
pub description: Option<String>,
pub footers: Option<HashMap<String, String>>,
pub raw: String,
pub type: Option<String>,
pub scope: Option<String>,
pub subject: Option<String>,
}
Expand description
Message represents a single commit message.
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Fields§
§body: Option<String>
Body part of the commit message.
description: Option<String>
Description part of the commit message.
Footers part of the commit message.
raw: String
Raw commit message (or any input from stdin) including the body and footers.
type: Option<String>
Type part of the commit message.
scope: Option<String>
Scope part of the commit message.
subject: Option<String>
Subject part of the commit message.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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