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 duplicate 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 Freeze for BuildDetailsBuilder
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more