pub struct MessageOptionsBuilder { /* private fields */ }Expand description
Builder for MessageOptions
Implementations§
Source§impl MessageOptionsBuilder
impl MessageOptionsBuilder
Sourcepub fn tag(self, tag: String) -> Self
pub fn tag(self, tag: String) -> Self
Set the tag for the message request (tag indicates version).
Sourcepub fn limit(self, limit: u16) -> Result<Self, Error>
pub fn limit(self, limit: u16) -> Result<Self, Error>
Set the maximum number of n-best intents and traits you want to get back. The default is 1, and the maximum is 8.
Sourcepub fn dynamic_entities(self, entities: DynamicEntities) -> Self
pub fn dynamic_entities(self, entities: DynamicEntities) -> Self
Sets the dynamic entities for the message
Sourcepub fn build(self) -> MessageOptions
pub fn build(self) -> MessageOptions
Turn this MessageOptionsBuilder into a MessageOptions
Trait Implementations§
Source§impl Debug for MessageOptionsBuilder
impl Debug for MessageOptionsBuilder
Auto Trait Implementations§
impl Freeze for MessageOptionsBuilder
impl RefUnwindSafe for MessageOptionsBuilder
impl Send for MessageOptionsBuilder
impl Sync for MessageOptionsBuilder
impl Unpin for MessageOptionsBuilder
impl UnwindSafe for MessageOptionsBuilder
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