Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a171d0e

Browse files
committed
Add Debug derive to Scope enum
Adding that makes logging and debugging easier.
1 parent eee899d commit a171d0e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gen/youtube3/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
2323
/// Identifies the an OAuth2 authorization scope.
2424
/// A scope is needed when requesting an
2525
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
26-
#[derive(PartialEq, Eq, Hash)]
26+
#[derive(PartialEq, Eq, Hash, Debug)]
2727
pub enum Scope {
2828
/// Manage your YouTube account
2929
Full,

src/generator/templates/api/lib/lib.mako

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

0 commit comments

Comments
 (0)