Function rucola::user_agent [−][src]
pub fn user_agent(app_id: &str, version: &str, username: &str) -> String
Helper function to generate user agent
It has the following format <platform>:<app ID>:<version string> (by /u/<reddit username>)
and is fully compliant with reddi api rules
Idealy app_id and version could be figured out at build time but I have not had the occasion to try.