pub struct PrTitle {
pub title: String,
pub pr_id: Option<i64>,
pub pr_url: Option<Url>,
pub commit_type: Option<String>,
pub commit_scope: Option<String>,
pub commit_breaking: bool,
pub section: Option<ChangeKind>,
pub entry: String,
}Fields§
§title: String§pr_id: Option<i64>§pr_url: Option<Url>§commit_type: Option<String>§commit_scope: Option<String>§commit_breaking: bool§section: Option<ChangeKind>§entry: StringImplementations§
source§impl PrTitle
impl PrTitle
pub fn parse(title: &str) -> Result<Self, Error>
pub fn set_pr_id(&mut self, id: i64)
pub fn set_pr_url(&mut self, url: Url)
pub fn calculate_section_and_entry(&mut self)
pub fn update_changelog( &mut self, log_file: &OsStr, opts: ChangelogParseOptions, ) -> Result<Option<(ChangeKind, String)>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrTitle
impl RefUnwindSafe for PrTitle
impl Send for PrTitle
impl Sync for PrTitle
impl Unpin for PrTitle
impl UnwindSafe for PrTitle
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