As the documentation you were pointed to notes, methods without &self or self as the first variable are called through the Struct::method(); rather than the s.method() syntax. In your example (assuming Config rather than config, you'd want to call Config::other_method();
A few other things:
String::from("foo") is preferred to "foo".to_string()
Your localConfig doesn't need to be mut
hostname and output probably want to be Option<String> and defaulted to None rather than the empty string
Rust style wants an implicit return (just localConfig rather than return localConfig;) as the last line in a function that returns a value.
Your transport variable probably wants to be an enum rather than a String