#[non_exhaustive]pub struct Proposal {
pub title: Option<String>,
pub commit_message: Option<String>,
}Expand description
The Version PR’s title and commit message.
Both default to what verctl wrote before the block existed, so a repository that sets neither sees the same pull request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>The pull request title. Unset or empty means
Proposal::DEFAULT_TITLE.
commit_message: Option<String>The commit message on the Version PR branch. Unset or empty means the resolved title.
Implementations§
Source§impl Proposal
impl Proposal
Sourcepub const DEFAULT_TITLE: &'static str = "chore(release): version packages"
pub const DEFAULT_TITLE: &'static str = "chore(release): version packages"
The title used when title is unset or empty.
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
The resolved title: the configured one, or Proposal::DEFAULT_TITLE.
Sourcepub fn commit_message(&self) -> &str
pub fn commit_message(&self) -> &str
The resolved commit message: the configured one, or the title.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Proposal
impl Freeze for Proposal
impl Move for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposalwhere
RawVecInner: Send,
impl Sync for Proposalwhere
RawVecInner: Sync,
impl Unpin for Proposal
impl UnsafeUnpin for Proposal
impl UnwindSafe for Proposalwhere
RawVecInner: UnwindSafe,
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