@@ -31,7 +31,7 @@ impl Default for Permissions {
3131
3232/// "Base" permissions, where all individual permissions are configured
3333/// with a blanket setting.
34- #[ derive( Deserialize , Default , Debug , PartialEq ) ]
34+ #[ derive( Deserialize , Debug , Default , PartialEq ) ]
3535#[ serde( rename_all = "kebab-case" ) ]
3636pub enum BasePermission {
3737 /// Whatever default permissions come from the workflow's `GITHUB_TOKEN`.
@@ -44,7 +44,7 @@ pub enum BasePermission {
4444}
4545
4646/// A singular permission setting.
47- #[ derive( Deserialize , Default , Debug , PartialEq ) ]
47+ #[ derive( Deserialize , Debug , Default , PartialEq ) ]
4848#[ serde( rename_all = "kebab-case" ) ]
4949pub enum Permission {
5050 /// Read access.
@@ -68,7 +68,7 @@ pub type Env = IndexMap<String, EnvValue>;
6868/// This type also gets used for other places where GitHub Actions
6969/// contextually reinterprets a YAML value as a string, e.g. trigger
7070/// input values.
71- #[ derive( Serialize , Deserialize , Debug , PartialEq ) ]
71+ #[ derive( Deserialize , Serialize , Debug , PartialEq ) ]
7272#[ serde( untagged) ]
7373pub enum EnvValue {
7474 // Missing values are empty strings.
@@ -92,7 +92,7 @@ impl Display for EnvValue {
9292/// key can have either a scalar value or an array of values.
9393///
9494/// This only appears internally, as an intermediate type for `scalar_or_vector`.
95- #[ derive( Debug , Deserialize , PartialEq ) ]
95+ #[ derive( Deserialize , Debug , PartialEq ) ]
9696#[ serde( untagged) ]
9797enum SoV < T > {
9898 One ( T ) ,
@@ -119,7 +119,7 @@ where
119119/// A bool or string. This is useful for cases where GitHub Actions contextually
120120/// reinterprets a YAML boolean as a string, e.g. `run: true` really means
121121/// `run: 'true'`.
122- #[ derive( Debug , Deserialize , PartialEq ) ]
122+ #[ derive( Deserialize , Debug , PartialEq ) ]
123123#[ serde( untagged) ]
124124enum BoS {
125125 Bool ( bool ) ,
@@ -138,7 +138,7 @@ impl From<BoS> for String {
138138/// An `if:` condition in a job or action definition.
139139///
140140/// These are either booleans or bare (i.e. non-curly) expressions.
141- #[ derive( Debug , Deserialize , PartialEq , Serialize ) ]
141+ #[ derive( Deserialize , Serialize , Debug , PartialEq ) ]
142142#[ serde( untagged) ]
143143pub enum If {
144144 Bool ( bool ) ,
0 commit comments