@@ -6,10 +6,10 @@ use std::{
6
6
str:: FromStr ,
7
7
} ;
8
8
9
- use is_variant:: IsVariant ;
10
9
use serde:: ser:: { Serialize , Serializer } ;
11
10
12
11
use crate :: errors:: Error ;
12
+ use derive_is_enum_variant:: is_enum_variant;
13
13
use serde:: {
14
14
de:: { self , Visitor } ,
15
15
Deserialize , Deserializer ,
@@ -258,7 +258,7 @@ impl fmt::Display for Scopes {
258
258
/// Permission scope of the application.
259
259
/// [Details on what each permission provides][1]
260
260
/// [1]: https://github.com/tootsuite/documentation/blob/master/Using-the-API/OAuth-details.md)
261
- #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , IsVariant ) ]
261
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , is_enum_variant ) ]
262
262
#[ serde( rename_all = "lowercase" ) ]
263
263
pub enum Scope {
264
264
/// Read only permissions.
@@ -353,7 +353,7 @@ impl Default for Scope {
353
353
}
354
354
355
355
/// Represents the granular "read:___" oauth scopes
356
- #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , IsVariant ) ]
356
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , is_enum_variant ) ]
357
357
pub enum Read {
358
358
/// Accounts
359
359
#[ serde( rename = "accounts" ) ]
@@ -448,7 +448,7 @@ impl fmt::Display for Read {
448
448
}
449
449
450
450
/// Represents the granular "write:___" oauth scopes
451
- #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , IsVariant ) ]
451
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , is_enum_variant ) ]
452
452
pub enum Write {
453
453
/// Accounts
454
454
#[ serde( rename = "accounts" ) ]
0 commit comments