From c30df00f350b4cee6c1e4e42569c8b817b7e53b2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 22 Oct 2023 15:34:28 +0200 Subject: [PATCH] Add even more derived traits to `Scope` --- src/generator/templates/api/lib/lib.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator/templates/api/lib/lib.mako b/src/generator/templates/api/lib/lib.mako index 477d27bda8..cb0ac09d50 100644 --- a/src/generator/templates/api/lib/lib.mako +++ b/src/generator/templates/api/lib/lib.mako @@ -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, Debug, Clone)] +#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Debug, Clone, Copy)] pub enum Scope { % for url, scope in auth.oauth2.scopes.items(): ${scope.description | rust_doc_sanitize(documentationLink), rust_doc_comment}