#[non_exhaustive]pub struct GetSamplingTargetsOutput {
pub sampling_target_documents: Option<Vec<SamplingTargetDocument>>,
pub last_rule_modification: Option<DateTime>,
pub unprocessed_statistics: Option<Vec<UnprocessedStatistics>>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.sampling_target_documents: Option<Vec<SamplingTargetDocument>>
Updated rules that the service should use to sample requests.
last_rule_modification: Option<DateTime>
The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.
unprocessed_statistics: Option<Vec<UnprocessedStatistics>>
Information about SamplingStatisticsDocument that X-Ray could not process.
Implementations§
source§impl GetSamplingTargetsOutput
impl GetSamplingTargetsOutput
sourcepub fn sampling_target_documents(&self) -> &[SamplingTargetDocument]
pub fn sampling_target_documents(&self) -> &[SamplingTargetDocument]
Updated rules that the service should use to sample requests.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sampling_target_documents.is_none()
.
sourcepub fn last_rule_modification(&self) -> Option<&DateTime>
pub fn last_rule_modification(&self) -> Option<&DateTime>
The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.
sourcepub fn unprocessed_statistics(&self) -> &[UnprocessedStatistics]
pub fn unprocessed_statistics(&self) -> &[UnprocessedStatistics]
Information about SamplingStatisticsDocument that X-Ray could not process.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .unprocessed_statistics.is_none()
.
source§impl GetSamplingTargetsOutput
impl GetSamplingTargetsOutput
sourcepub fn builder() -> GetSamplingTargetsOutputBuilder
pub fn builder() -> GetSamplingTargetsOutputBuilder
Creates a new builder-style object to manufacture GetSamplingTargetsOutput
.
Trait Implementations§
source§impl Clone for GetSamplingTargetsOutput
impl Clone for GetSamplingTargetsOutput
source§fn clone(&self) -> GetSamplingTargetsOutput
fn clone(&self) -> GetSamplingTargetsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSamplingTargetsOutput
impl Debug for GetSamplingTargetsOutput
source§impl PartialEq for GetSamplingTargetsOutput
impl PartialEq for GetSamplingTargetsOutput
source§fn eq(&self, other: &GetSamplingTargetsOutput) -> bool
fn eq(&self, other: &GetSamplingTargetsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetSamplingTargetsOutput
impl RequestId for GetSamplingTargetsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetSamplingTargetsOutput
Auto Trait Implementations§
impl Freeze for GetSamplingTargetsOutput
impl RefUnwindSafe for GetSamplingTargetsOutput
impl Send for GetSamplingTargetsOutput
impl Sync for GetSamplingTargetsOutput
impl Unpin for GetSamplingTargetsOutput
impl UnwindSafe for GetSamplingTargetsOutput
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
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>
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>
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