pub struct PrWriteSupport {
pub resolve_threads: bool,
pub draft: bool,
pub close: bool,
pub reopen: bool,
pub request_reviewer: bool,
}Expand description
Which of the optional pull-request writes a connection can perform. All false by default:
a frontend shows the key for each only where the provider says it works, so a forge without
an API for one (Bitbucket cannot reopen a declined pull request; GitLab has no draft flag
beyond the title prefix) never offers a key that would only fail.
Fields§
§resolve_threads: bool§draft: boolPullRequestSource::set_draft works in both directions.
close: boolPullRequestSource::set_closed can close an open pull request.
reopen: boolPullRequestSource::set_closed can reopen a closed one.
request_reviewer: boolImplementations§
Source§impl PrWriteSupport
impl PrWriteSupport
Sourcepub const ALL: PrWriteSupport
pub const ALL: PrWriteSupport
Every write supported — what a full-featured forge (and the demo) reports.
Trait Implementations§
Source§impl Clone for PrWriteSupport
impl Clone for PrWriteSupport
impl Copy for PrWriteSupport
Source§impl Debug for PrWriteSupport
impl Debug for PrWriteSupport
Source§impl Default for PrWriteSupport
impl Default for PrWriteSupport
Source§impl<'de> Deserialize<'de> for PrWriteSupport
impl<'de> Deserialize<'de> for PrWriteSupport
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
impl Eq for PrWriteSupport
Source§impl PartialEq for PrWriteSupport
impl PartialEq for PrWriteSupport
Source§impl Serialize for PrWriteSupport
impl Serialize for PrWriteSupport
impl StructuralPartialEq for PrWriteSupport
Auto Trait Implementations§
impl Freeze for PrWriteSupport
impl RefUnwindSafe for PrWriteSupport
impl Send for PrWriteSupport
impl Sync for PrWriteSupport
impl Unpin for PrWriteSupport
impl UnsafeUnpin for PrWriteSupport
impl UnwindSafe for PrWriteSupport
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