Skip to main content

Module re_exports

Module re_exports 

Source

Re-exports§

pub use crate::CourseOrExamId;
pub use crate::HttpErrorType;
pub use crate::ModelError;
pub use crate::ModelErrorType;
pub use crate::ModelResult;
pub use crate::PKeyPolicy;
pub use crate::error::TryToOptional;
pub use crate::secret::DbSecret;
pub use crate::secret::OutboundSecret;

Modules§

anyhow
githubcrates-iodocs-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§

ApplicationConfiguration
AzureBlobStorageConfiguration
AzureChatbotConfiguration
AzureConfiguration
AzureSearchConfiguration
DateTime
ISO 8601 combined date and time with time zone.
OAuthServerConfiguration
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).
UtilError
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§

UtilErrorType
The type of UtilError that occured.

Constants§

NON_STREAMING_REQUEST_TIMEOUT
Total deadline for a single request/response exchange, for callers that do not set their own. Never apply it to a streaming request: reqwest counts it until the response body has finished, so it would cut off a long but healthy stream.
STREAM_IDLE_TIMEOUT
How long a streaming response body may go without producing a chunk before it counts as stalled. Applied per chunk by the caller, unlike ClientBuilder::read_timeout; see REQWEST_STREAMING_CLIENT.
STREAM_RESPONSE_HEADERS_TIMEOUT
How long a streaming request may take to produce response headers. Applied by the caller with tokio::time::timeout around send(), which resolves on headers, so the body is left untimed.

Statics§

REQWEST_CLIENT
REQWEST_STREAMING_CLIENT
For responses whose body is consumed as a stream. Carries no total or read timeout, because both would cut off a healthy but slow stream; callers must instead bound the header wait with STREAM_RESPONSE_HEADERS_TIMEOUT and each chunk with STREAM_IDLE_TIMEOUT.

Traits§

BackendError
The error types of this program all implement this trait for interoperability.
Connection
Represents a single database connection.
Context
Provides the context method for Result.
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.
Type
Indicates that a SQL type is supported for a database.

Type Aliases§

PgPool
An alias for Pool, specialized for Postgres.
UtilResult
Used as the result types for all utils.

Derive Macros§

Deserialize
FromRow
Serialize
Type