Trait action_core::env::Parse

source ·
pub trait Parse {
    type Error: Error;

    // Required methods
    fn from_str(config: &str) -> Result<HashMap<String, String>, Self::Error>;
    fn from_reader(
        reader: impl Read
    ) -> Result<HashMap<String, String>, Self::Error>;
}

Required Associated Types§

Required Methods§

source

fn from_str(config: &str) -> Result<HashMap<String, String>, Self::Error>

Parses environment from a string.

Errors

If the input cannot be parsed as a HashMap<String, String>.

source

fn from_reader( reader: impl Read ) -> Result<HashMap<String, String>, Self::Error>

Parses environment from a reader.

Errors

If the input cannot be parsed as a HashMap<String, String>.

Implementors§