Crate envstruct

Source

Re-exports§

pub use bytesize;
pub use chrono;
pub use humantime;
pub use url;
pub use regex;
pub use serde_json;

Modules§

prelude
The prelude module re-exports common items for easy inclusion.

Structs§

ByteSize
Re-export of the bytesize crate if the bytesize feature is enabled. Byte size representation
DateTime
Re-export of the chrono crate if the chrono feature is enabled. ISO 8601 combined date and time with time zone.
Duration
Re-export of the humantime crate if the humantime feature is enabled. A wrapper for duration that has FromStr implementation
EnvEntry
Represents an environment variable entry with its name, type, and optional default value.
Regex
Re-export of the regex crate if the regex feature is enabled. A compiled regular expression for searching Unicode haystacks.
Url
Re-export of the url crate if the url feature is enabled. A parsed URL record.
Utc
Re-export of the chrono crate if the chrono feature is enabled. 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§

EnvStructError
Represents errors that can occur while processing environment variables.
Value
Re-export of the serde_json crate if the serde_json feature is enabled. Represents any valid JSON value.

Traits§

EnvParseNested
Trait for parsing nested environment variables.
EnvParsePrimitive
A trait for parsing environment variables into primitive types.
EnvStructUsage
A trait for generating usage information for environment variables.
TimeZone
Re-export of the chrono crate if the chrono feature is enabled. The time zone.

Functions§

concat_env_name
Concatenates two environment variable names with an underscore.

Type Aliases§

BoxError
A boxed error type that is Send, Sync, and 'static.

Derive Macros§

EnvStruct
Derives the EnvStruct trait for a struct or enum.