pub struct Subject {
pub version: u8,
pub segment: Option<Segment>,
pub prefix: String,
pub message: String,
}
Expand description
The typed subject line of a patch mail
A message might be: “[PATCH v2 1/5], which is parsed into this structure to be easier to work with
Fields§
§version: u8
The patch revision (e.g. v2
)
segment: Option<Segment>
Patch segment information (e.g. 1/5
)
prefix: String
Subject prefix (e.g. PATCH
)
message: String
The actual patch commit message
Implementations§
Trait Implementations§
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
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