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.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Mutation<'a>
impl<'a> Send for Mutation<'a>
impl<'a> Sync for Mutation<'a>
impl<'a> Unpin for Mutation<'a>
impl<'a> UnwindSafe for Mutation<'a>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
PrePublish
: 0 bytesPublish
: 48 bytesYank
: 32 bytesUnyank
: 32 bytesOwners
: 16 bytes