get_int
Returns key in dotenv content parsed as an integer, or default when it is absent or not
a valid i64 (a decimal integer, optionally signed; no underscores, no 0x/0b prefixes).
Import
Section titled “Import”Cargo feature env (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
content | &str | The dotenv text to read. |
key | &str | The variable name to look up. |
default | i64 | Returned when key is absent or its value does not parse. |
Returns
Section titled “Returns”i64 — The parsed integer, or default.
