Struct aws_sdk_migrationhubstrategy::types::SourceCode
source · #[non_exhaustive]pub struct SourceCode {
pub version_control: Option<VersionControl>,
pub source_version: Option<String>,
pub location: Option<String>,
pub project_name: Option<String>,
}Expand description
Object containing source code information that is linked to an application component.
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.version_control: Option<VersionControl>The type of repository to use for the source code.
source_version: Option<String>The branch of the source code.
location: Option<String>The repository name for the source code.
project_name: Option<String>The name of the project.
Implementations§
source§impl SourceCode
impl SourceCode
sourcepub fn version_control(&self) -> Option<&VersionControl>
pub fn version_control(&self) -> Option<&VersionControl>
The type of repository to use for the source code.
sourcepub fn source_version(&self) -> Option<&str>
pub fn source_version(&self) -> Option<&str>
The branch of the source code.
sourcepub fn project_name(&self) -> Option<&str>
pub fn project_name(&self) -> Option<&str>
The name of the project.
source§impl SourceCode
impl SourceCode
sourcepub fn builder() -> SourceCodeBuilder
pub fn builder() -> SourceCodeBuilder
Creates a new builder-style object to manufacture SourceCode.
Trait Implementations§
source§impl Clone for SourceCode
impl Clone for SourceCode
source§fn clone(&self) -> SourceCode
fn clone(&self) -> SourceCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SourceCode
impl Debug for SourceCode
source§impl PartialEq for SourceCode
impl PartialEq for SourceCode
source§fn eq(&self, other: &SourceCode) -> bool
fn eq(&self, other: &SourceCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SourceCode
Auto Trait Implementations§
impl Freeze for SourceCode
impl RefUnwindSafe for SourceCode
impl Send for SourceCode
impl Sync for SourceCode
impl Unpin for SourceCode
impl UnwindSafe for SourceCode
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.