#[non_exhaustive]pub struct ApprovalStateChangedEventMetadata {
pub revision_id: Option<String>,
pub approval_status: Option<ApprovalState>,
}Expand description
Returns information about a change in the approval state for a pull request.
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.revision_id: Option<String>The revision ID of the pull request when the approval state changed.
approval_status: Option<ApprovalState>The approval status for the pull request.
Implementations§
source§impl ApprovalStateChangedEventMetadata
impl ApprovalStateChangedEventMetadata
sourcepub fn revision_id(&self) -> Option<&str>
pub fn revision_id(&self) -> Option<&str>
The revision ID of the pull request when the approval state changed.
sourcepub fn approval_status(&self) -> Option<&ApprovalState>
pub fn approval_status(&self) -> Option<&ApprovalState>
The approval status for the pull request.
source§impl ApprovalStateChangedEventMetadata
impl ApprovalStateChangedEventMetadata
sourcepub fn builder() -> ApprovalStateChangedEventMetadataBuilder
pub fn builder() -> ApprovalStateChangedEventMetadataBuilder
Creates a new builder-style object to manufacture ApprovalStateChangedEventMetadata.
Trait Implementations§
source§impl Clone for ApprovalStateChangedEventMetadata
impl Clone for ApprovalStateChangedEventMetadata
source§fn clone(&self) -> ApprovalStateChangedEventMetadata
fn clone(&self) -> ApprovalStateChangedEventMetadata
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 PartialEq for ApprovalStateChangedEventMetadata
impl PartialEq for ApprovalStateChangedEventMetadata
source§fn eq(&self, other: &ApprovalStateChangedEventMetadata) -> bool
fn eq(&self, other: &ApprovalStateChangedEventMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ApprovalStateChangedEventMetadata
Auto Trait Implementations§
impl RefUnwindSafe for ApprovalStateChangedEventMetadata
impl Send for ApprovalStateChangedEventMetadata
impl Sync for ApprovalStateChangedEventMetadata
impl Unpin for ApprovalStateChangedEventMetadata
impl UnwindSafe for ApprovalStateChangedEventMetadata
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.