pub struct EventValue {
pub push: Option<Push>,
pub pull_request: Option<PullRequest>,
pub pull_request_target: Option<PullRequestTarget>,
}
Fields§
§push: Option<Push>
§pull_request: Option<PullRequest>
§pull_request_target: Option<PullRequestTarget>
Implementations§
Source§impl EventValue
impl EventValue
Sourcepub fn pull_request(self, value: PullRequest) -> Self
pub fn pull_request(self, value: PullRequest) -> Self
Sets the pull_request
field of this struct.
Sourcepub fn pull_request_target(self, value: PullRequestTarget) -> Self
pub fn pull_request_target(self, value: PullRequestTarget) -> Self
Sets the pull_request_target
field of this struct.
Trait Implementations§
Source§impl Clone for EventValue
impl Clone for EventValue
Source§fn clone(&self) -> EventValue
fn clone(&self) -> EventValue
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 EventValue
impl Debug for EventValue
Source§impl Default for EventValue
impl Default for EventValue
Source§fn default() -> EventValue
fn default() -> EventValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventValue
impl<'de> Deserialize<'de> for EventValue
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
Source§impl From<PullRequest> for EventValue
impl From<PullRequest> for EventValue
Source§fn from(value: PullRequest) -> Self
fn from(value: PullRequest) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestTarget> for EventValue
impl From<PullRequestTarget> for EventValue
Source§fn from(value: PullRequestTarget) -> Self
fn from(value: PullRequestTarget) -> Self
Converts to this type from the input type.
Source§impl From<Push> for EventValue
impl From<Push> for EventValue
Source§impl Merge for EventValue
impl Merge for EventValue
Source§impl PartialEq for EventValue
impl PartialEq for EventValue
Source§impl Serialize for EventValue
impl Serialize for EventValue
impl Eq for EventValue
impl StructuralPartialEq for EventValue
Auto Trait Implementations§
impl Freeze for EventValue
impl RefUnwindSafe for EventValue
impl Send for EventValue
impl Sync for EventValue
impl Unpin for EventValue
impl UnwindSafe for EventValue
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.