#[non_exhaustive]pub struct PrCreate {
pub title: String,
pub body: String,
pub head: Option<String>,
pub base: Option<String>,
}Expand description
Options for GitHubApi::pr_create (gh pr create).
#[non_exhaustive], so build it through PrCreate::new (title + body)
and the chained head / base setters
rather than a struct literal.
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: StringThe PR title (--title).
body: StringThe PR body (--body).
head: Option<String>The source branch (--head); None = the current branch.
base: Option<String>The target branch (--base); None = the repo default.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrCreate
impl RefUnwindSafe for PrCreate
impl Send for PrCreate
impl Sync for PrCreate
impl Unpin for PrCreate
impl UnsafeUnpin for PrCreate
impl UnwindSafe for PrCreate
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