#[non_exhaustive]pub struct ApprovalStateChangedEventMetadataBuilder { /* private fields */ }Expand description
A builder for ApprovalStateChangedEventMetadata.
Implementations§
source§impl ApprovalStateChangedEventMetadataBuilder
impl ApprovalStateChangedEventMetadataBuilder
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The revision ID of the pull request when the approval state changed.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The revision ID of the pull request when the approval state changed.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The revision ID of the pull request when the approval state changed.
sourcepub fn approval_status(self, input: ApprovalState) -> Self
pub fn approval_status(self, input: ApprovalState) -> Self
The approval status for the pull request.
sourcepub fn set_approval_status(self, input: Option<ApprovalState>) -> Self
pub fn set_approval_status(self, input: Option<ApprovalState>) -> Self
The approval status for the pull request.
sourcepub fn get_approval_status(&self) -> &Option<ApprovalState>
pub fn get_approval_status(&self) -> &Option<ApprovalState>
The approval status for the pull request.
sourcepub fn build(self) -> ApprovalStateChangedEventMetadata
pub fn build(self) -> ApprovalStateChangedEventMetadata
Consumes the builder and constructs a ApprovalStateChangedEventMetadata.
Trait Implementations§
source§impl Clone for ApprovalStateChangedEventMetadataBuilder
impl Clone for ApprovalStateChangedEventMetadataBuilder
source§fn clone(&self) -> ApprovalStateChangedEventMetadataBuilder
fn clone(&self) -> ApprovalStateChangedEventMetadataBuilder
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 Default for ApprovalStateChangedEventMetadataBuilder
impl Default for ApprovalStateChangedEventMetadataBuilder
source§fn default() -> ApprovalStateChangedEventMetadataBuilder
fn default() -> ApprovalStateChangedEventMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ApprovalStateChangedEventMetadataBuilder
impl PartialEq for ApprovalStateChangedEventMetadataBuilder
source§fn eq(&self, other: &ApprovalStateChangedEventMetadataBuilder) -> bool
fn eq(&self, other: &ApprovalStateChangedEventMetadataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ApprovalStateChangedEventMetadataBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ApprovalStateChangedEventMetadataBuilder
impl Send for ApprovalStateChangedEventMetadataBuilder
impl Sync for ApprovalStateChangedEventMetadataBuilder
impl Unpin for ApprovalStateChangedEventMetadataBuilder
impl UnwindSafe for ApprovalStateChangedEventMetadataBuilder
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.