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