pub struct Response { /* private fields */ }
Expand description
Response struct implementing the Alexa JSON spec
Implementations§
source§impl Response
impl Response
sourcepub fn new_simple(title: &str, text: &str) -> Response
pub fn new_simple(title: &str, text: &str) -> Response
Constructs a basic plain response with a simple card
sourcepub fn simple(title: &str, text: &str) -> Response
pub fn simple(title: &str, text: &str) -> Response
Constructs a basic plain response with a simple card
sourcepub fn add_attribute(&mut self, key: &str, val: &str)
pub fn add_attribute(&mut self, key: &str, val: &str)
adds an attribute key/value pair to the response attributes can be read on the next request for basic state persistance
Trait Implementations§
source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more