Struct aws_sdk_datazone::types::builders::AcceptRuleBuilder
source · #[non_exhaustive]pub struct AcceptRuleBuilder { /* private fields */ }
Expand description
A builder for AcceptRule
.
Implementations§
source§impl AcceptRuleBuilder
impl AcceptRuleBuilder
sourcepub fn rule(self, input: AcceptRuleBehavior) -> Self
pub fn rule(self, input: AcceptRuleBehavior) -> Self
Specifies whether you want to accept the top prediction for all targets or none.
sourcepub fn set_rule(self, input: Option<AcceptRuleBehavior>) -> Self
pub fn set_rule(self, input: Option<AcceptRuleBehavior>) -> Self
Specifies whether you want to accept the top prediction for all targets or none.
sourcepub fn get_rule(&self) -> &Option<AcceptRuleBehavior>
pub fn get_rule(&self) -> &Option<AcceptRuleBehavior>
Specifies whether you want to accept the top prediction for all targets or none.
sourcepub fn threshold(self, input: f32) -> Self
pub fn threshold(self, input: f32) -> Self
The confidence score that specifies the condition at which a prediction can be accepted.
sourcepub fn set_threshold(self, input: Option<f32>) -> Self
pub fn set_threshold(self, input: Option<f32>) -> Self
The confidence score that specifies the condition at which a prediction can be accepted.
sourcepub fn get_threshold(&self) -> &Option<f32>
pub fn get_threshold(&self) -> &Option<f32>
The confidence score that specifies the condition at which a prediction can be accepted.
sourcepub fn build(self) -> AcceptRule
pub fn build(self) -> AcceptRule
Consumes the builder and constructs a AcceptRule
.
Trait Implementations§
source§impl Clone for AcceptRuleBuilder
impl Clone for AcceptRuleBuilder
source§fn clone(&self) -> AcceptRuleBuilder
fn clone(&self) -> AcceptRuleBuilder
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 AcceptRuleBuilder
impl Debug for AcceptRuleBuilder
source§impl Default for AcceptRuleBuilder
impl Default for AcceptRuleBuilder
source§fn default() -> AcceptRuleBuilder
fn default() -> AcceptRuleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AcceptRuleBuilder
impl PartialEq for AcceptRuleBuilder
impl StructuralPartialEq for AcceptRuleBuilder
Auto Trait Implementations§
impl Freeze for AcceptRuleBuilder
impl RefUnwindSafe for AcceptRuleBuilder
impl Send for AcceptRuleBuilder
impl Sync for AcceptRuleBuilder
impl Unpin for AcceptRuleBuilder
impl UnwindSafe for AcceptRuleBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.