#[non_exhaustive]pub struct InputSessionStateSpecification {
pub session_attributes: Option<HashMap<String, String>>,
pub active_contexts: Option<Vec<ActiveContext>>,
pub runtime_hints: Option<RuntimeHints>,
}
Expand description
Specifications for the current state of the dialog between the user and the bot in the test set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.session_attributes: Option<HashMap<String, String>>
Session attributes for the session state.
active_contexts: Option<Vec<ActiveContext>>
Active contexts for the session state.
runtime_hints: Option<RuntimeHints>
Runtime hints for the session state.
Implementations§
source§impl InputSessionStateSpecification
impl InputSessionStateSpecification
sourcepub fn session_attributes(&self) -> Option<&HashMap<String, String>>
pub fn session_attributes(&self) -> Option<&HashMap<String, String>>
Session attributes for the session state.
sourcepub fn active_contexts(&self) -> &[ActiveContext]
pub fn active_contexts(&self) -> &[ActiveContext]
Active contexts for the session state.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .active_contexts.is_none()
.
sourcepub fn runtime_hints(&self) -> Option<&RuntimeHints>
pub fn runtime_hints(&self) -> Option<&RuntimeHints>
Runtime hints for the session state.
source§impl InputSessionStateSpecification
impl InputSessionStateSpecification
sourcepub fn builder() -> InputSessionStateSpecificationBuilder
pub fn builder() -> InputSessionStateSpecificationBuilder
Creates a new builder-style object to manufacture InputSessionStateSpecification
.
Trait Implementations§
source§impl Clone for InputSessionStateSpecification
impl Clone for InputSessionStateSpecification
source§fn clone(&self) -> InputSessionStateSpecification
fn clone(&self) -> InputSessionStateSpecification
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 PartialEq for InputSessionStateSpecification
impl PartialEq for InputSessionStateSpecification
source§fn eq(&self, other: &InputSessionStateSpecification) -> bool
fn eq(&self, other: &InputSessionStateSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputSessionStateSpecification
Auto Trait Implementations§
impl RefUnwindSafe for InputSessionStateSpecification
impl Send for InputSessionStateSpecification
impl Sync for InputSessionStateSpecification
impl Unpin for InputSessionStateSpecification
impl UnwindSafe for InputSessionStateSpecification
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> 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>
Creates a shared type from an unshared type.