#[non_exhaustive]pub struct RequestMetadataBuilder { /* private fields */ }Expand description
A builder for RequestMetadata.
Implementations§
source§impl RequestMetadataBuilder
impl RequestMetadataBuilder
sourcepub fn request_id(self, input: impl Into<String>) -> Self
pub fn request_id(self, input: impl Into<String>) -> Self
The ID of the request. This is required for a pull request code review.
sourcepub fn set_request_id(self, input: Option<String>) -> Self
pub fn set_request_id(self, input: Option<String>) -> Self
The ID of the request. This is required for a pull request code review.
sourcepub fn get_request_id(&self) -> &Option<String>
pub fn get_request_id(&self) -> &Option<String>
The ID of the request. This is required for a pull request code review.
sourcepub fn requester(self, input: impl Into<String>) -> Self
pub fn requester(self, input: impl Into<String>) -> Self
An identifier, such as a name or account ID, that is associated with the requester. The Requester is used to capture the author/actor name of the event request.
sourcepub fn set_requester(self, input: Option<String>) -> Self
pub fn set_requester(self, input: Option<String>) -> Self
An identifier, such as a name or account ID, that is associated with the requester. The Requester is used to capture the author/actor name of the event request.
sourcepub fn get_requester(&self) -> &Option<String>
pub fn get_requester(&self) -> &Option<String>
An identifier, such as a name or account ID, that is associated with the requester. The Requester is used to capture the author/actor name of the event request.
sourcepub fn event_info(self, input: EventInfo) -> Self
pub fn event_info(self, input: EventInfo) -> Self
Information about the event associated with a code review.
sourcepub fn set_event_info(self, input: Option<EventInfo>) -> Self
pub fn set_event_info(self, input: Option<EventInfo>) -> Self
Information about the event associated with a code review.
sourcepub fn get_event_info(&self) -> &Option<EventInfo>
pub fn get_event_info(&self) -> &Option<EventInfo>
Information about the event associated with a code review.
sourcepub fn vendor_name(self, input: VendorName) -> Self
pub fn vendor_name(self, input: VendorName) -> Self
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For example, if code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then the repository association's ProviderType is S3Bucket and the CI/CD repository vendor name is GitHub. For more information, see the definition for ProviderType in RepositoryAssociation.
sourcepub fn set_vendor_name(self, input: Option<VendorName>) -> Self
pub fn set_vendor_name(self, input: Option<VendorName>) -> Self
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For example, if code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then the repository association's ProviderType is S3Bucket and the CI/CD repository vendor name is GitHub. For more information, see the definition for ProviderType in RepositoryAssociation.
sourcepub fn get_vendor_name(&self) -> &Option<VendorName>
pub fn get_vendor_name(&self) -> &Option<VendorName>
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For example, if code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then the repository association's ProviderType is S3Bucket and the CI/CD repository vendor name is GitHub. For more information, see the definition for ProviderType in RepositoryAssociation.
sourcepub fn build(self) -> RequestMetadata
pub fn build(self) -> RequestMetadata
Consumes the builder and constructs a RequestMetadata.
Trait Implementations§
source§impl Clone for RequestMetadataBuilder
impl Clone for RequestMetadataBuilder
source§fn clone(&self) -> RequestMetadataBuilder
fn clone(&self) -> RequestMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RequestMetadataBuilder
impl Debug for RequestMetadataBuilder
source§impl Default for RequestMetadataBuilder
impl Default for RequestMetadataBuilder
source§fn default() -> RequestMetadataBuilder
fn default() -> RequestMetadataBuilder
source§impl PartialEq for RequestMetadataBuilder
impl PartialEq for RequestMetadataBuilder
source§fn eq(&self, other: &RequestMetadataBuilder) -> bool
fn eq(&self, other: &RequestMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RequestMetadataBuilder
Auto Trait Implementations§
impl Freeze for RequestMetadataBuilder
impl RefUnwindSafe for RequestMetadataBuilder
impl Send for RequestMetadataBuilder
impl Sync for RequestMetadataBuilder
impl Unpin for RequestMetadataBuilder
impl UnwindSafe for RequestMetadataBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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 more