#[non_exhaustive]pub struct PrEdit {
pub title: Option<String>,
pub body: Option<String>,
}Expand description
Options for GitHubApi::pr_edit (gh pr edit).
#[non_exhaustive], so build it through PrEdit::new and the chained
title / body setters rather than a
struct literal. At least one of title or body must be Some; both
None is rejected by the facade before spawning (an explicit error, not a
silent no-op). An empty string is a real value — gh clears the field on
--title "" / --body "" — not a None.
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 new title (--title); None leaves the title alone.
body: Option<String>The new body (--body); None leaves the body alone.
Implementations§
Trait Implementations§
impl Eq for PrEdit
impl StructuralPartialEq for PrEdit
Auto Trait Implementations§
impl Freeze for PrEdit
impl RefUnwindSafe for PrEdit
impl Send for PrEdit
impl Sync for PrEdit
impl Unpin for PrEdit
impl UnsafeUnpin for PrEdit
impl UnwindSafe for PrEdit
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