Struct aws_sdk_codegurureviewer::types::RequestMetadata
source · #[non_exhaustive]pub struct RequestMetadata {
pub request_id: Option<String>,
pub requester: Option<String>,
pub event_info: Option<EventInfo>,
pub vendor_name: Option<VendorName>,
}
Expand description
Metadata that is associated with a code review. This applies to both pull request and repository analysis code reviews.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.request_id: Option<String>
The ID of the request. This is required for a pull request code review.
requester: 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.
event_info: Option<EventInfo>
Information about the event associated with a code review.
vendor_name: 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.
Implementations§
source§impl RequestMetadata
impl RequestMetadata
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
The ID of the request. This is required for a pull request code review.
sourcepub fn requester(&self) -> Option<&str>
pub fn requester(&self) -> Option<&str>
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) -> Option<&EventInfo>
pub fn event_info(&self) -> Option<&EventInfo>
Information about the event associated with a code review.
sourcepub fn vendor_name(&self) -> Option<&VendorName>
pub fn 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.
source§impl RequestMetadata
impl RequestMetadata
sourcepub fn builder() -> RequestMetadataBuilder
pub fn builder() -> RequestMetadataBuilder
Creates a new builder-style object to manufacture RequestMetadata
.
Trait Implementations§
source§impl Clone for RequestMetadata
impl Clone for RequestMetadata
source§fn clone(&self) -> RequestMetadata
fn clone(&self) -> RequestMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RequestMetadata
impl Debug for RequestMetadata
source§impl PartialEq for RequestMetadata
impl PartialEq for RequestMetadata
source§fn eq(&self, other: &RequestMetadata) -> bool
fn eq(&self, other: &RequestMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestMetadata
Auto Trait Implementations§
impl Freeze for RequestMetadata
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnwindSafe for RequestMetadata
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> 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