SOLUTION:
Here is the solution I came up with:
pub struct Configuration {}
impl Configuration {
fn get std::str::FromStr>() -> Result {
Ok(T::from_str("1234");
}
}
fn main() {
let my_conf_val = Configuration::get();
}
SOLUTION:
Here is the solution I came up with:
pub struct Configuration {}
impl Configuration {
fn get std::str::FromStr>() -> Result {
Ok(T::from_str("1234");
}
}
fn main() {
let my_conf_val = Configuration::get();
}
Afraid this might have been the case, if Ogeon’s suggestion doesn’t work out, I’ll probably end up with multiple getters, one per type. There aren’t that many anyway
Thank you!
Correct, I would want the caller to know what they’re getting, I’ll see if this works, Thank you!
Yes! It shouldn’t be difficult to purchase a house, but when we were looking, none of the seller agents would even talk to us until we had a buyers agent 🙄
Invidious is awesome, if possible, self hosting one in docker is great and keeps it up to date