#[derive(std::fmt::Debug)] struct MyCustomStruct(String); impl std::convert::TryFrom for MyCustomStruct { type Error = (); fn try_from(value: String) -> Result { Ok(Self(value)) } } micronfig::config! { GARASAUTO: String => crate::MyCustomStruct, } fn main() { println!("{:?}", GARASAUTO()) }