pub struct PullRequestReview {
pub types: Vec<PullRequestReviewType>,
}
Expand description
Configuration for pull request review events
Fields§
§types: Vec<PullRequestReviewType>
Filter on specific pull request review event types
Implementations§
Source§impl PullRequestReview
impl PullRequestReview
Sourcepub fn types(
self,
value: impl Into<Vec<PullRequestReviewType>>,
) -> PullRequestReview
pub fn types( self, value: impl Into<Vec<PullRequestReviewType>>, ) -> PullRequestReview
Sets the types
field of this struct.
Source§impl PullRequestReview
impl PullRequestReview
Sourcepub fn add_type(self, type_: PullRequestReviewType) -> PullRequestReview
pub fn add_type(self, type_: PullRequestReviewType) -> PullRequestReview
Adds a pull request review event type to filter on
Trait Implementations§
Source§impl Clone for PullRequestReview
impl Clone for PullRequestReview
Source§fn clone(&self) -> PullRequestReview
fn clone(&self) -> PullRequestReview
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PullRequestReview
impl Debug for PullRequestReview
Source§impl Default for PullRequestReview
impl Default for PullRequestReview
Source§fn default() -> PullRequestReview
fn default() -> PullRequestReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullRequestReview
impl<'de> Deserialize<'de> for PullRequestReview
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PullRequestReview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PullRequestReview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PullRequestReview
impl PartialEq for PullRequestReview
Source§impl Serialize for PullRequestReview
impl Serialize for PullRequestReview
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PullRequestReview
impl StructuralPartialEq for PullRequestReview
Auto Trait Implementations§
impl Freeze for PullRequestReview
impl RefUnwindSafe for PullRequestReview
impl Send for PullRequestReview
impl Sync for PullRequestReview
impl Unpin for PullRequestReview
impl UnwindSafe for PullRequestReview
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,
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.