#[non_exhaustive]pub struct TestSetSlotDiscrepancyItemBuilder { /* private fields */ }Expand description
A builder for TestSetSlotDiscrepancyItem.
Implementations§
source§impl TestSetSlotDiscrepancyItemBuilder
impl TestSetSlotDiscrepancyItemBuilder
sourcepub fn intent_name(self, input: impl Into<String>) -> Self
pub fn intent_name(self, input: impl Into<String>) -> Self
The name of the intent associated with the slot in the discrepancy report.
This field is required.sourcepub fn set_intent_name(self, input: Option<String>) -> Self
pub fn set_intent_name(self, input: Option<String>) -> Self
The name of the intent associated with the slot in the discrepancy report.
sourcepub fn get_intent_name(&self) -> &Option<String>
pub fn get_intent_name(&self) -> &Option<String>
The name of the intent associated with the slot in the discrepancy report.
sourcepub fn slot_name(self, input: impl Into<String>) -> Self
pub fn slot_name(self, input: impl Into<String>) -> Self
The name of the slot in the discrepancy report.
This field is required.sourcepub fn set_slot_name(self, input: Option<String>) -> Self
pub fn set_slot_name(self, input: Option<String>) -> Self
The name of the slot in the discrepancy report.
sourcepub fn get_slot_name(&self) -> &Option<String>
pub fn get_slot_name(&self) -> &Option<String>
The name of the slot in the discrepancy report.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
The error message for a discrepancy for an intent between the test set and the bot.
This field is required.sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
The error message for a discrepancy for an intent between the test set and the bot.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
The error message for a discrepancy for an intent between the test set and the bot.
sourcepub fn build(self) -> Result<TestSetSlotDiscrepancyItem, BuildError>
pub fn build(self) -> Result<TestSetSlotDiscrepancyItem, BuildError>
Consumes the builder and constructs a TestSetSlotDiscrepancyItem.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TestSetSlotDiscrepancyItemBuilder
impl Clone for TestSetSlotDiscrepancyItemBuilder
source§fn clone(&self) -> TestSetSlotDiscrepancyItemBuilder
fn clone(&self) -> TestSetSlotDiscrepancyItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for TestSetSlotDiscrepancyItemBuilder
impl Default for TestSetSlotDiscrepancyItemBuilder
source§fn default() -> TestSetSlotDiscrepancyItemBuilder
fn default() -> TestSetSlotDiscrepancyItemBuilder
source§impl PartialEq for TestSetSlotDiscrepancyItemBuilder
impl PartialEq for TestSetSlotDiscrepancyItemBuilder
source§fn eq(&self, other: &TestSetSlotDiscrepancyItemBuilder) -> bool
fn eq(&self, other: &TestSetSlotDiscrepancyItemBuilder) -> bool
self and other values to be equal, and is used
by ==.