Improve docs for the ListenBrainz type
This commit is contained in:
parent
b4c4226677
commit
ae9b342474
|
@ -22,7 +22,7 @@ pub struct ListenBrainz {
|
|||
}
|
||||
|
||||
impl ListenBrainz {
|
||||
/// Construct a new ListenBrainz client.
|
||||
/// Construct a new ListenBrainz client that is not authenticated.
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
client: Client::new(),
|
||||
|
@ -47,6 +47,8 @@ impl ListenBrainz {
|
|||
|
||||
/// Authenticate this client with the given token.
|
||||
/// If the token is valid, authenticates the client and returns [`Ok`].
|
||||
/// In case the client was already authenticated, the old information
|
||||
/// is discarded and the new token will be used.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue