pub struct ReviewCapabilities {
pub review: bool,
pub approve: bool,
pub request_changes: bool,
pub line_ranges: bool,
pub resolve: bool,
}Expand description
What a host and its edition let a review do. A choice that is false
is not offered: the UI hides it, and asking anyway is
crate::Error::Unsupported.
Fields§
§review: boolAny of the review operations at all.
approve: bool§request_changes: boolGitHub has it; GitLab has no equivalent through its REST API.
line_ranges: boolA comment covering several lines (start_line..line).
resolve: boolThreads can be resolved and reopened.
Implementations§
Source§impl ReviewCapabilities
impl ReviewCapabilities
Sourcepub fn allows(&self, event: ReviewEvent) -> bool
pub fn allows(&self, event: ReviewEvent) -> bool
Whether ReviewEvent event may be submitted.
Trait Implementations§
Source§impl Clone for ReviewCapabilities
impl Clone for ReviewCapabilities
impl Copy for ReviewCapabilities
Source§impl Debug for ReviewCapabilities
impl Debug for ReviewCapabilities
Source§impl Default for ReviewCapabilities
impl Default for ReviewCapabilities
Source§impl<'de> Deserialize<'de> for ReviewCapabilities
impl<'de> Deserialize<'de> for ReviewCapabilities
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 ReviewCapabilities
Source§impl PartialEq for ReviewCapabilities
impl PartialEq for ReviewCapabilities
Source§impl Serialize for ReviewCapabilities
impl Serialize for ReviewCapabilities
impl StructuralPartialEq for ReviewCapabilities
Auto Trait Implementations§
impl Forget for ReviewCapabilities
impl Freeze for ReviewCapabilities
impl Move for ReviewCapabilities
impl RefUnwindSafe for ReviewCapabilities
impl Send for ReviewCapabilities
impl Sync for ReviewCapabilities
impl Unpin for ReviewCapabilities
impl UnsafeUnpin for ReviewCapabilities
impl UnwindSafe for ReviewCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.