#[non_exhaustive]pub struct ActiveContextTimeToLiveBuilder { /* private fields */ }
Expand description
A builder for ActiveContextTimeToLive
.
Implementations§
source§impl ActiveContextTimeToLiveBuilder
impl ActiveContextTimeToLiveBuilder
sourcepub fn time_to_live_in_seconds(self, input: i32) -> Self
pub fn time_to_live_in_seconds(self, input: i32) -> Self
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
sourcepub fn set_time_to_live_in_seconds(self, input: Option<i32>) -> Self
pub fn set_time_to_live_in_seconds(self, input: Option<i32>) -> Self
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
sourcepub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
pub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
sourcepub fn turns_to_live(self, input: i32) -> Self
pub fn turns_to_live(self, input: i32) -> Self
The number of turns that the context is active. You can specify up to 20 turns. Each request and response from the bot is a turn.
sourcepub fn set_turns_to_live(self, input: Option<i32>) -> Self
pub fn set_turns_to_live(self, input: Option<i32>) -> Self
The number of turns that the context is active. You can specify up to 20 turns. Each request and response from the bot is a turn.
sourcepub fn get_turns_to_live(&self) -> &Option<i32>
pub fn get_turns_to_live(&self) -> &Option<i32>
The number of turns that the context is active. You can specify up to 20 turns. Each request and response from the bot is a turn.
sourcepub fn build(self) -> ActiveContextTimeToLive
pub fn build(self) -> ActiveContextTimeToLive
Consumes the builder and constructs a ActiveContextTimeToLive
.
Trait Implementations§
source§impl Clone for ActiveContextTimeToLiveBuilder
impl Clone for ActiveContextTimeToLiveBuilder
source§fn clone(&self) -> ActiveContextTimeToLiveBuilder
fn clone(&self) -> ActiveContextTimeToLiveBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ActiveContextTimeToLiveBuilder
impl Default for ActiveContextTimeToLiveBuilder
source§fn default() -> ActiveContextTimeToLiveBuilder
fn default() -> ActiveContextTimeToLiveBuilder
source§impl PartialEq<ActiveContextTimeToLiveBuilder> for ActiveContextTimeToLiveBuilder
impl PartialEq<ActiveContextTimeToLiveBuilder> for ActiveContextTimeToLiveBuilder
source§fn eq(&self, other: &ActiveContextTimeToLiveBuilder) -> bool
fn eq(&self, other: &ActiveContextTimeToLiveBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.