pub enum Mutation<'a> {
PrePublish,
Publish {
name: &'a str,
vers: &'a str,
cksum: &'a str,
},
Yank {
name: &'a str,
vers: &'a str,
},
Unyank {
name: &'a str,
vers: &'a str,
},
Owners {
name: &'a str,
},
}
Expand description
A record of what kind of operation is happening that we should generate a token for.
Variants§
PrePublish
Before we generate a crate file for the users attempt to publish, we need to check if we are configured correctly to generate a token. This variant is used to make sure that we can generate a token, to error out early if the token is not configured correctly.
Publish
Fields
The user is attempting to publish a crate.
Yank
The user is attempting to yank a crate.
Unyank
The user is attempting to unyank a crate.
Owners
The user is attempting to modify the owners of a crate.