pub struct PercentileRespBuilder {
difficulty_factor: Option<Option<u32>>,
}Expand description
Builder for PercentileResp.
Fields§
§difficulty_factor: Option<Option<u32>>Implementations§
Source§impl PercentileRespBuilder
impl PercentileRespBuilder
pub fn difficulty_factor(&mut self, value: Option<u32>) -> &mut Self
Sourcepub fn build(&self) -> Result<PercentileResp, PercentileRespBuilderError>
pub fn build(&self) -> Result<PercentileResp, PercentileRespBuilderError>
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 PercentileRespBuilder
impl Clone for PercentileRespBuilder
Source§fn clone(&self) -> PercentileRespBuilder
fn clone(&self) -> PercentileRespBuilder
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 PercentileRespBuilder
impl RefUnwindSafe for PercentileRespBuilder
impl Send for PercentileRespBuilder
impl Sync for PercentileRespBuilder
impl Unpin for PercentileRespBuilder
impl UnwindSafe for PercentileRespBuilder
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