Skip to main content

Module chatbot_error

Module chatbot_error 

Source
Expand description

Contains error and result types for all the chatbot functions.

Macros§

chatbot_err 🔒
Create a ChatbotError with less boilerplate.

Structs§

ChatbotError
Error type used in ChatbotError, which is used for errors related to chatbot functionality.

Enums§

ChatbotErrorType
The type of ChatbotError that occured.

Functions§

as_chatbot_error
Helper function for .map_err() chains to wrap any error as ChatbotError.
missing_chatbot_error
Helper function for .ok_or_else() to create ChatbotError on None.

Type Aliases§

ChatbotResult
Used as the result types for all of chatbot.