Skip to content

Commit 9be6942

Browse files
committed
ApiToken: Use CrateScope enum for crate_scopes column
1 parent 93d486b commit 9be6942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct ApiToken {
2727
pub revoked: bool,
2828
/// `None` or a list of crate scope patterns (see RFC #2947)
2929
#[serde(skip)]
30-
pub crate_scopes: Option<Vec<String>>,
30+
pub crate_scopes: Option<Vec<scopes::CrateScope>>,
3131
/// A list of endpoint scopes or `None` for the `legacy` endpoint scope (see RFC #2947)
3232
#[serde(skip)]
3333
pub endpoint_scopes: Option<Vec<scopes::EndpointScope>>,

0 commit comments

Comments
 (0)