Modules

Traits and structures to aid consuming and writing HTTP payloads.

HTTP cookie parsing and cookie jar management.

Lower-level types and re-exports.

Formatting (and parsing) utilities for date and time.

Route guards.

Various HTTP related types.

A collection of common middleware.

Date and time types unconcerned with timezones.

The time zone, which calculates offsets from the local time to UTC.

A convenience module appropriate for glob imports (use chrono::prelude::*;).

A selection of re-exports from tokio and actix-rt.

Serialization/Deserialization in alternate formats

Various helpers for Actix applications to use during testing.

Essentials helper functions and types for application registration.

Macros

Macro to help register different types of services at the same time.

Structs

The top-level builder for an Actix Web application.

Allows overriding status code and headers for a Responder.

ISO 8601 calendar date with time zone.

ISO 8601 combined date and time with time zone.

ISO 8601 time duration with nanosecond precision. This also allows for the negative duration; see individual methods for details.

General purpose Actix Web error.

The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59.

An incoming request.

An outgoing response.

An HTTP response builder.

An HTTP Server.

ISO 8601 week.

The local timescale. This is implemented via the standard time crate.

A duration in calendar months

ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.

ISO 8601 combined date and time without timezone.

ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.

A week represented by a NaiveDate and a Weekday which is the first day of the week.

An error from the parse function.

An error resulting from reading <Month> value with FromStr.

An error resulting from reading Weekday value with FromStr.

A collection of Routes that respond to the same path pattern.

A request handler with guards.

A collection of Routes, Resources, or other services that share a common path prefix.

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).

Enums

Combines two extractor or responder types into a single type.

The conversion result from the local time to the timezone-aware datetime types.

The month of the year.

An error from rounding by Duration

Specific formatting options for seconds. This may be extended in the future, so exhaustive matching in external code is not recommended.

The day of week.

Constants

MAX_DATEDeprecated

The maximum possible Date.

MAX_DATETIMEDeprecated

The maximum possible DateTime<Utc>.

MIN_DATEDeprecated

The minimum possible Date.

MIN_DATETIMEDeprecated

The minimum possible DateTime<Utc>.

Traits

The common set of methods for date component.

Extension trait for rounding or truncating a DateTime by a Duration.

A type that implements FromRequest is called an extractor and can extract data from the request. Some types that implement this trait are: Json, Header, and Path.

The interface for request handlers.

Trait that implements general purpose operations on HTTP messages.

The offset from the local time to UTC.

Trait implemented by types that can be converted to an HTTP response.

Errors that can generate responses.

Extension trait for subsecond rounding or truncation to a maximum number of digits. Rounding can be used to decrease the error variance when serializing/persisting to lower precision. Truncation is the default behavior in Chrono display formatting. Either can be used to guarantee equality (e.g. for testing) when round-tripping through a lower precision format.

The time zone.

The common set of methods for time component.

Type Definitions

Same as Result<T, ParseError>.

A convenience Result for Actix Web operations.

Attribute Macros

Creates route handler with actix_web::guard::Connect.

Creates route handler with actix_web::guard::Delete.

Creates route handler with actix_web::guard::Get.

Creates route handler with actix_web::guard::Head.

Marks async main function as the Actix Web system entry-point.

Creates route handler with actix_web::guard::Options.

Creates route handler with actix_web::guard::Patch.

Creates route handler with actix_web::guard::Post.

Creates route handler with actix_web::guard::Put.

Creates resource handler, allowing multiple HTTP method guards.

Marks async test functions to use the actix system entry-point.

Creates route handler with actix_web::guard::Trace.