#[non_exhaustive]pub struct InputSessionStateSpecificationBuilder { /* private fields */ }Expand description
A builder for InputSessionStateSpecification.
Implementations§
source§impl InputSessionStateSpecificationBuilder
impl InputSessionStateSpecificationBuilder
sourcepub fn session_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn session_attributes( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to session_attributes.
To override the contents of this collection use set_session_attributes.
Session attributes for the session state.
sourcepub fn set_session_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_session_attributes( self, input: Option<HashMap<String, String>> ) -> Self
Session attributes for the session state.
sourcepub fn get_session_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_session_attributes(&self) -> &Option<HashMap<String, String>>
Session attributes for the session state.
sourcepub fn active_contexts(self, input: ActiveContext) -> Self
pub fn active_contexts(self, input: ActiveContext) -> Self
Appends an item to active_contexts.
To override the contents of this collection use set_active_contexts.
Active contexts for the session state.
sourcepub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
pub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
Active contexts for the session state.
sourcepub fn get_active_contexts(&self) -> &Option<Vec<ActiveContext>>
pub fn get_active_contexts(&self) -> &Option<Vec<ActiveContext>>
Active contexts for the session state.
sourcepub fn runtime_hints(self, input: RuntimeHints) -> Self
pub fn runtime_hints(self, input: RuntimeHints) -> Self
Runtime hints for the session state.
sourcepub fn set_runtime_hints(self, input: Option<RuntimeHints>) -> Self
pub fn set_runtime_hints(self, input: Option<RuntimeHints>) -> Self
Runtime hints for the session state.
sourcepub fn get_runtime_hints(&self) -> &Option<RuntimeHints>
pub fn get_runtime_hints(&self) -> &Option<RuntimeHints>
Runtime hints for the session state.
sourcepub fn build(self) -> InputSessionStateSpecification
pub fn build(self) -> InputSessionStateSpecification
Consumes the builder and constructs a InputSessionStateSpecification.
Trait Implementations§
source§impl Clone for InputSessionStateSpecificationBuilder
impl Clone for InputSessionStateSpecificationBuilder
source§fn clone(&self) -> InputSessionStateSpecificationBuilder
fn clone(&self) -> InputSessionStateSpecificationBuilder
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 Default for InputSessionStateSpecificationBuilder
impl Default for InputSessionStateSpecificationBuilder
source§fn default() -> InputSessionStateSpecificationBuilder
fn default() -> InputSessionStateSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InputSessionStateSpecificationBuilder
impl PartialEq for InputSessionStateSpecificationBuilder
source§fn eq(&self, other: &InputSessionStateSpecificationBuilder) -> bool
fn eq(&self, other: &InputSessionStateSpecificationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InputSessionStateSpecificationBuilder
Auto Trait Implementations§
impl Freeze for InputSessionStateSpecificationBuilder
impl RefUnwindSafe for InputSessionStateSpecificationBuilder
impl Send for InputSessionStateSpecificationBuilder
impl Sync for InputSessionStateSpecificationBuilder
impl Unpin for InputSessionStateSpecificationBuilder
impl UnwindSafe for InputSessionStateSpecificationBuilder
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.