Struct rusoto_codeguru_reviewer::SourceCodeType
source · [−]pub struct SourceCodeType {
pub branch_diff: Option<BranchDiffSourceCodeType>,
pub commit_diff: Option<CommitDiffSourceCodeType>,
pub repository_head: Option<RepositoryHeadSourceCodeType>,
pub request_metadata: Option<RequestMetadata>,
pub s3_bucket_repository: Option<S3BucketRepository>,
}
Expand description
Specifies the source code that is analyzed in a code review.
Fields
branch_diff: Option<BranchDiffSourceCodeType>
A type of SourceCodeType
that specifies a source branch name and a destination branch name in an associated repository.
commit_diff: Option<CommitDiffSourceCodeType>
A SourceCodeType
that specifies a commit diff created by a pull request on an associated repository.
repository_head: Option<RepositoryHeadSourceCodeType>
request_metadata: Option<RequestMetadata>
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.
s3_bucket_repository: Option<S3BucketRepository>
Information about an associated repository in an S3 bucket that includes its name and an S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file. S3BucketRepository
is required in SourceCodeType
for S3BucketRepository
based code reviews.
Trait Implementations
sourceimpl Clone for SourceCodeType
impl Clone for SourceCodeType
sourcefn clone(&self) -> SourceCodeType
fn clone(&self) -> SourceCodeType
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 SourceCodeType
impl Debug for SourceCodeType
sourceimpl Default for SourceCodeType
impl Default for SourceCodeType
sourcefn default() -> SourceCodeType
fn default() -> SourceCodeType
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SourceCodeType
impl<'de> Deserialize<'de> for SourceCodeType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SourceCodeType> for SourceCodeType
impl PartialEq<SourceCodeType> for SourceCodeType
sourcefn eq(&self, other: &SourceCodeType) -> bool
fn eq(&self, other: &SourceCodeType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SourceCodeType) -> bool
fn ne(&self, other: &SourceCodeType) -> bool
This method tests for !=
.
sourceimpl Serialize for SourceCodeType
impl Serialize for SourceCodeType
impl StructuralPartialEq for SourceCodeType
Auto Trait Implementations
impl RefUnwindSafe for SourceCodeType
impl Send for SourceCodeType
impl Sync for SourceCodeType
impl Unpin for SourceCodeType
impl UnwindSafe for SourceCodeType
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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