#[non_exhaustive]pub struct PrCreate {
pub title: String,
pub body: String,
pub source: Option<String>,
pub target: Option<String>,
}Expand description
Options for pr_create — the unified
open-a-PR/MR spec, mapped to each CLI’s own flags (gh --head/--base,
glab --source-branch/--target-branch, tea --head/--base).
#[non_exhaustive], so build it through PrCreate::new and the chained
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: StringTitle.
body: StringBody / description.
source: Option<String>Source (head) branch; None = the current branch.
target: Option<String>Target (base) branch; None = the repository default.
Implementations§
Trait Implementations§
impl Eq for PrCreate
impl StructuralPartialEq for PrCreate
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