Add Debug derive to Scope enum

Adding that makes logging and debugging easier.
This commit is contained in:
OMGeeky
2023-10-21 01:58:00 +02:00
parent eee899d1f8
commit a171d0e8dd
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
/// Identifies the an OAuth2 authorization scope.
/// A scope is needed when requesting an
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
#[derive(PartialEq, Eq, Hash)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub enum Scope {
/// Manage your YouTube account
Full,

View File

@@ -331,7 +331,7 @@ You can read the full text at the repository's [license file][repo-license].
/// Identifies the an OAuth2 authorization scope.
/// A scope is needed when requesting an
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
#[derive(PartialEq, Eq, Hash)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub enum Scope {
% for url, scope in auth.oauth2.scopes.items():
${scope.description | rust_doc_sanitize(documentationLink), rust_doc_comment}