Struct aws_sdk_codecommit::types::Target
source · #[non_exhaustive]pub struct Target {
pub repository_name: String,
pub source_reference: String,
pub destination_reference: Option<String>,
}
Expand description
Returns information about a target for a pull request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.repository_name: String
The name of the repository that contains the pull request.
source_reference: String
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
destination_reference: Option<String>
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
Implementations§
source§impl Target
impl Target
sourcepub fn repository_name(&self) -> &str
pub fn repository_name(&self) -> &str
The name of the repository that contains the pull request.
sourcepub fn source_reference(&self) -> &str
pub fn source_reference(&self) -> &str
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
sourcepub fn destination_reference(&self) -> Option<&str>
pub fn destination_reference(&self) -> Option<&str>
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
Trait Implementations§
source§impl PartialEq for Target
impl PartialEq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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.