pub struct Reflection {
pub word: String,
pub inverse: String,
pub twoway: bool,
}Expand description
A set of string pairs, used to post process any contextual information in an ELIZA response.
§Example
For example, if we had the Reflection rules:
{ "word" : "your", "inverse" : "my", "twoway" : true},
{ "word" : "i", "inverse" : "you", "twoway" : true}- The reassembly rule:
"Really, $2?" - The contextual information:
$2 = I think about my life
Then the assembled response would look like "Really, you think about your life?"
Fields§
§word: String§inverse: String§twoway: boolTrait Implementations§
Source§impl Debug for Reflection
impl Debug for Reflection
Source§impl<'de> Deserialize<'de> for Reflection
impl<'de> Deserialize<'de> for Reflection
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
Auto Trait Implementations§
impl Freeze for Reflection
impl RefUnwindSafe for Reflection
impl Send for Reflection
impl Sync for Reflection
impl Unpin for Reflection
impl UnsafeUnpin for Reflection
impl UnwindSafe for Reflection
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