get
Returns the value of key in dotenv content, or None when it is not assigned.
When a key is assigned more than once the last assignment wins, like a shell sourcing the
file. See parse for the accepted syntax.
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. |
Returns
Section titled “Returns”Option<String>
