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
sourceimpl 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
sourceimpl Clone for BuildDetailsBuilder
impl Clone for BuildDetailsBuilder
sourcefn clone(&self) -> BuildDetailsBuilder
fn clone(&self) -> BuildDetailsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more