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
source§fn eq(&self, other: &AcceptRuleBuilder) -> bool
fn eq(&self, other: &AcceptRuleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AcceptRuleBuilder
Auto Trait Implementations§
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