Function musicbrainz_rs::config::set_user_agent[][src]

pub fn set_user_agent(user_agent: &'static str)
Expand description

Each request sent to MusicBrainz needs to include a User-Agent header, with enough information in the User-Agent to contact the application maintainers. We strongly suggest including your application’s version number in the User-Agent string too.

For more info see Rate Limiting

Example

musicbrainz_rs::config::set_user_agent("MyAwesomeTagger/1.2.0 ( http://myawesometagger.example.com )");