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 moreAuto Trait Implementations§
impl RefUnwindSafe for BuildDetailsBuilder
impl Send for BuildDetailsBuilder
impl Sync for BuildDetailsBuilder
impl Unpin for BuildDetailsBuilder
impl UnwindSafe for BuildDetailsBuilder
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