Re-exports§
pub use crate::chatbot_error::ChatbotError;pub use crate::chatbot_error::ChatbotErrorType;pub use crate::chatbot_error::ChatbotResult;pub use headless_lms_models as models;
Modules§
- anyhow
- github crates-io docs-rs
- chrono
- Chrono: Date and Time for Rust
- futures
- Abstractions for asynchronous programming.
- serde_
json - Serde JSON
- tokio
- A runtime for writing reliable network applications without compromising speed.
Macros§
- debug
- Constructs an event at the debug level.
- error
- Constructs an event at the error level.
- info
- Constructs an event at the info level.
- trace
- Constructs an event at the trace level.
- warn
- Constructs an event at the warn level.
Structs§
- Application
Configuration - Azure
Blob Storage Configuration - Azure
Chatbot Configuration - Azure
Configuration - Azure
Search Configuration - Date
Time - ISO 8601 combined date and time with time zone.
- Model
Error - Error type used by all models. Used as the error type in ModelError, which is used by all the controllers in the application.
- OAuth
Server Configuration - PgConnection
- A connection to a PostgreSQL database.
- Pool
- An asynchronous pool of SQLx database connections.
- Postgres
- PostgreSQL database driver.
- Url
- A parsed URL record.
- Utc
- The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
- Util
Error - Error type used by all models. Used as the error type in UtilError, which is used by all the controllers in the application.
- Uuid
- A Universally Unique Identifier (UUID).
Enums§
- Course
OrExam Id - Either a course or exam id.
- Http
Error Type - Types of HTTP errors that can occur
- Model
Error Type - The type of ModelError that occured.
- PKey
Policy - Helper struct to use with functions that insert data into the database.
- Util
Error Type - The type of UtilError that occured.
Statics§
Traits§
- Backend
Error - The error types of this program all implement this trait for interoperability.
- Connection
- Represents a single database connection.
- Context
- Provides the
contextmethod forResult. - Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- FromRow
- A record that can be built from a row returned by the database.
- Serialize
- A data structure that can be serialized into any data format supported by Serde.
- TryTo
Optional - Type
- Indicates that a SQL type is supported for a database.
Type Aliases§
- Model
Result - Used as the result types for all models.
- PgPool
- An alias for
Pool, specialized for Postgres. - Util
Result - Used as the result types for all utils.