Struct aws_sdk_codegurureviewer::model::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
sourceimpl 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.
sourceimpl RequestMetadata
impl RequestMetadata
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RequestMetadata
Trait Implementations
sourceimpl Clone for RequestMetadata
impl Clone for RequestMetadata
sourcefn clone(&self) -> RequestMetadata
fn clone(&self) -> RequestMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RequestMetadata
impl Debug for RequestMetadata
sourceimpl PartialEq<RequestMetadata> for RequestMetadata
impl PartialEq<RequestMetadata> for RequestMetadata
sourcefn eq(&self, other: &RequestMetadata) -> bool
fn eq(&self, other: &RequestMetadata) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RequestMetadata) -> bool
fn ne(&self, other: &RequestMetadata) -> bool
This method tests for !=.
impl StructuralPartialEq for RequestMetadata
Auto Trait Implementations
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnwindSafe for RequestMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more