pub struct BuildDetailsBuilder {
version: Option<&'static str>,
git_commit_hash: Option<&'static str>,
}
Expand description
Builder for BuildDetails
.
Fields§
§version: Option<&'static str>
§git_commit_hash: Option<&'static str>
Implementations§
source§impl BuildDetailsBuilder
impl BuildDetailsBuilder
pub fn version(&mut self, value: &'static str) -> &mut Self
pub fn git_commit_hash(&mut self, value: &'static str) -> &mut Self
sourcepub fn build(&self) -> Result<BuildDetails, BuildDetailsBuilderError>
pub fn build(&self) -> Result<BuildDetails, BuildDetailsBuilderError>
sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Trait Implementations§
source§impl Clone for BuildDetailsBuilder
impl Clone for BuildDetailsBuilder
source§fn clone(&self) -> BuildDetailsBuilder
fn clone(&self) -> BuildDetailsBuilder
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 more