#[non_exhaustive]pub struct ApprovalRuleOverriddenEventMetadata {
pub revision_id: Option<String>,
pub override_status: Option<OverrideStatus>,
}
Expand description
Returns information about an override event for approval rules 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 override event occurred.
override_status: Option<OverrideStatus>
The status of the override event.
Implementations§
source§impl ApprovalRuleOverriddenEventMetadata
impl ApprovalRuleOverriddenEventMetadata
sourcepub fn revision_id(&self) -> Option<&str>
pub fn revision_id(&self) -> Option<&str>
The revision ID of the pull request when the override event occurred.
sourcepub fn override_status(&self) -> Option<&OverrideStatus>
pub fn override_status(&self) -> Option<&OverrideStatus>
The status of the override event.
source§impl ApprovalRuleOverriddenEventMetadata
impl ApprovalRuleOverriddenEventMetadata
sourcepub fn builder() -> ApprovalRuleOverriddenEventMetadataBuilder
pub fn builder() -> ApprovalRuleOverriddenEventMetadataBuilder
Creates a new builder-style object to manufacture ApprovalRuleOverriddenEventMetadata
.
Trait Implementations§
source§impl Clone for ApprovalRuleOverriddenEventMetadata
impl Clone for ApprovalRuleOverriddenEventMetadata
source§fn clone(&self) -> ApprovalRuleOverriddenEventMetadata
fn clone(&self) -> ApprovalRuleOverriddenEventMetadata
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 ApprovalRuleOverriddenEventMetadata
impl PartialEq for ApprovalRuleOverriddenEventMetadata
source§fn eq(&self, other: &ApprovalRuleOverriddenEventMetadata) -> bool
fn eq(&self, other: &ApprovalRuleOverriddenEventMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApprovalRuleOverriddenEventMetadata
Auto Trait Implementations§
impl Freeze for ApprovalRuleOverriddenEventMetadata
impl RefUnwindSafe for ApprovalRuleOverriddenEventMetadata
impl Send for ApprovalRuleOverriddenEventMetadata
impl Sync for ApprovalRuleOverriddenEventMetadata
impl Unpin for ApprovalRuleOverriddenEventMetadata
impl UnwindSafe for ApprovalRuleOverriddenEventMetadata
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.