#[non_exhaustive]pub struct SourceCodeBuilder { /* private fields */ }Expand description
A builder for SourceCode.
Implementations§
source§impl SourceCodeBuilder
impl SourceCodeBuilder
sourcepub fn version_control(self, input: VersionControl) -> Self
pub fn version_control(self, input: VersionControl) -> Self
The type of repository to use for the source code.
sourcepub fn set_version_control(self, input: Option<VersionControl>) -> Self
pub fn set_version_control(self, input: Option<VersionControl>) -> Self
The type of repository to use for the source code.
sourcepub fn get_version_control(&self) -> &Option<VersionControl>
pub fn get_version_control(&self) -> &Option<VersionControl>
The type of repository to use for the source code.
sourcepub fn source_version(self, input: impl Into<String>) -> Self
pub fn source_version(self, input: impl Into<String>) -> Self
The branch of the source code.
sourcepub fn set_source_version(self, input: Option<String>) -> Self
pub fn set_source_version(self, input: Option<String>) -> Self
The branch of the source code.
sourcepub fn get_source_version(&self) -> &Option<String>
pub fn get_source_version(&self) -> &Option<String>
The branch of the source code.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The repository name for the source code.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The repository name for the source code.
sourcepub fn get_location(&self) -> &Option<String>
pub fn get_location(&self) -> &Option<String>
The repository name for the source code.
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project.
sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project.
sourcepub fn build(self) -> SourceCode
pub fn build(self) -> SourceCode
Consumes the builder and constructs a SourceCode.
Trait Implementations§
source§impl Clone for SourceCodeBuilder
impl Clone for SourceCodeBuilder
source§fn clone(&self) -> SourceCodeBuilder
fn clone(&self) -> SourceCodeBuilder
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 SourceCodeBuilder
impl Debug for SourceCodeBuilder
source§impl Default for SourceCodeBuilder
impl Default for SourceCodeBuilder
source§fn default() -> SourceCodeBuilder
fn default() -> SourceCodeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<SourceCodeBuilder> for SourceCodeBuilder
impl PartialEq<SourceCodeBuilder> for SourceCodeBuilder
source§fn eq(&self, other: &SourceCodeBuilder) -> bool
fn eq(&self, other: &SourceCodeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SourceCodeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SourceCodeBuilder
impl Send for SourceCodeBuilder
impl Sync for SourceCodeBuilder
impl Unpin for SourceCodeBuilder
impl UnwindSafe for SourceCodeBuilder
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