pub struct ParamsBuilder { /* private fields */ }
Expand description
Builder for Params
Implementations§
Source§impl ParamsBuilder
impl ParamsBuilder
Sourcepub fn operation_name(
self,
operation_name: impl Into<Cow<'static, str>>,
) -> Self
pub fn operation_name( self, operation_name: impl Into<Cow<'static, str>>, ) -> Self
Set the operation name for the builder
Sourcepub fn set_operation_name(
self,
operation_name: Option<Cow<'static, str>>,
) -> Self
pub fn set_operation_name( self, operation_name: Option<Cow<'static, str>>, ) -> Self
Set the operation name for the builder
Sourcepub fn build(self) -> Result<Params, BuildError>
pub fn build(self) -> Result<Params, BuildError>
Consume this builder, create Params
.“
Return BuildError
if any of the required fields are unset.
Trait Implementations§
Source§impl Clone for ParamsBuilder
impl Clone for ParamsBuilder
Source§fn clone(&self) -> ParamsBuilder
fn clone(&self) -> ParamsBuilder
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 moreSource§impl Debug for ParamsBuilder
impl Debug for ParamsBuilder
Source§impl Default for ParamsBuilder
impl Default for ParamsBuilder
Source§fn default() -> ParamsBuilder
fn default() -> ParamsBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParamsBuilder
impl PartialEq for ParamsBuilder
impl StructuralPartialEq for ParamsBuilder
Auto Trait Implementations§
impl Freeze for ParamsBuilder
impl RefUnwindSafe for ParamsBuilder
impl Send for ParamsBuilder
impl Sync for ParamsBuilder
impl Unpin for ParamsBuilder
impl UnwindSafe for ParamsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreCreates a shared type from an unshared type.