Struct aws_sdk_xray::types::builders::SamplingStrategyBuilder
source · #[non_exhaustive]pub struct SamplingStrategyBuilder { /* private fields */ }
Expand description
A builder for SamplingStrategy
.
Implementations§
source§impl SamplingStrategyBuilder
impl SamplingStrategyBuilder
sourcepub fn name(self, input: SamplingStrategyName) -> Self
pub fn name(self, input: SamplingStrategyName) -> Self
The name of a sampling rule.
sourcepub fn set_name(self, input: Option<SamplingStrategyName>) -> Self
pub fn set_name(self, input: Option<SamplingStrategyName>) -> Self
The name of a sampling rule.
sourcepub fn get_name(&self) -> &Option<SamplingStrategyName>
pub fn get_name(&self) -> &Option<SamplingStrategyName>
The name of a sampling rule.
sourcepub fn build(self) -> SamplingStrategy
pub fn build(self) -> SamplingStrategy
Consumes the builder and constructs a SamplingStrategy
.
Trait Implementations§
source§impl Clone for SamplingStrategyBuilder
impl Clone for SamplingStrategyBuilder
source§fn clone(&self) -> SamplingStrategyBuilder
fn clone(&self) -> SamplingStrategyBuilder
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 SamplingStrategyBuilder
impl Debug for SamplingStrategyBuilder
source§impl Default for SamplingStrategyBuilder
impl Default for SamplingStrategyBuilder
source§fn default() -> SamplingStrategyBuilder
fn default() -> SamplingStrategyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SamplingStrategyBuilder
impl PartialEq for SamplingStrategyBuilder
impl StructuralPartialEq for SamplingStrategyBuilder
Auto Trait Implementations§
impl Freeze for SamplingStrategyBuilder
impl RefUnwindSafe for SamplingStrategyBuilder
impl Send for SamplingStrategyBuilder
impl Sync for SamplingStrategyBuilder
impl Unpin for SamplingStrategyBuilder
impl UnwindSafe for SamplingStrategyBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.