diff --git a/cargo-typify/tests/outputs/builder.rs b/cargo-typify/tests/outputs/builder.rs index 66625305..60f3f187 100644 --- a/cargo-typify/tests/outputs/builder.rs +++ b/cargo-typify/tests/outputs/builder.rs @@ -40,14 +40,14 @@ pub mod error { #[doc = r" ```"] #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] -pub struct Fruit(pub ::serde_json::Map); +pub struct Fruit(pub ::serde_json::Map<::std::string::String, ::serde_json::Value>); impl ::std::ops::Deref for Fruit { - type Target = ::serde_json::Map; - fn deref(&self) -> &::serde_json::Map { + type Target = ::serde_json::Map<::std::string::String, ::serde_json::Value>; + fn deref(&self) -> &::serde_json::Map<::std::string::String, ::serde_json::Value> { &self.0 } } -impl From for ::serde_json::Map { +impl From for ::serde_json::Map<::std::string::String, ::serde_json::Value> { fn from(value: Fruit) -> Self { value.0 } @@ -57,8 +57,8 @@ impl From<&Fruit> for Fruit { value.clone() } } -impl From<::serde_json::Map> for Fruit { - fn from(value: ::serde_json::Map) -> Self { +impl From<::serde_json::Map<::std::string::String, ::serde_json::Value>> for Fruit { + fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self { Self(value) } } @@ -141,7 +141,7 @@ pub struct Veggie { pub veggie_like: bool, #[doc = "The name of the vegetable."] #[serde(rename = "veggieName")] - pub veggie_name: String, + pub veggie_name: ::std::string::String, } impl From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { @@ -182,10 +182,10 @@ impl Veggie { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Veggies { - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub fruits: Vec, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub vegetables: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub fruits: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { @@ -201,8 +201,8 @@ impl Veggies { pub mod builder { #[derive(Clone, Debug)] pub struct Veggie { - veggie_like: Result, - veggie_name: Result, + veggie_like: ::std::result::Result, + veggie_name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Veggie { fn default() -> Self { @@ -225,7 +225,7 @@ pub mod builder { } pub fn veggie_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.veggie_name = value @@ -234,9 +234,9 @@ pub mod builder { self } } - impl std::convert::TryFrom for super::Veggie { + impl ::std::convert::TryFrom for super::Veggie { type Error = super::error::ConversionError; - fn try_from(value: Veggie) -> Result { + fn try_from(value: Veggie) -> ::std::result::Result { Ok(Self { veggie_like: value.veggie_like?, veggie_name: value.veggie_name?, @@ -253,8 +253,9 @@ pub mod builder { } #[derive(Clone, Debug)] pub struct Veggies { - fruits: Result, String>, - vegetables: Result, String>, + fruits: + ::std::result::Result<::std::vec::Vec<::std::string::String>, ::std::string::String>, + vegetables: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for Veggies { fn default() -> Self { @@ -267,7 +268,7 @@ pub mod builder { impl Veggies { pub fn fruits(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.fruits = value @@ -277,7 +278,7 @@ pub mod builder { } pub fn vegetables(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.vegetables = value @@ -286,9 +287,9 @@ pub mod builder { self } } - impl std::convert::TryFrom for super::Veggies { + impl ::std::convert::TryFrom for super::Veggies { type Error = super::error::ConversionError; - fn try_from(value: Veggies) -> Result { + fn try_from(value: Veggies) -> ::std::result::Result { Ok(Self { fruits: value.fruits?, vegetables: value.vegetables?, diff --git a/cargo-typify/tests/outputs/derive.rs b/cargo-typify/tests/outputs/derive.rs index 8dfa7973..3e9bbc49 100644 --- a/cargo-typify/tests/outputs/derive.rs +++ b/cargo-typify/tests/outputs/derive.rs @@ -40,14 +40,14 @@ pub mod error { #[doc = r" ```"] #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, ExtraDerive)] -pub struct Fruit(pub ::serde_json::Map); +pub struct Fruit(pub ::serde_json::Map<::std::string::String, ::serde_json::Value>); impl ::std::ops::Deref for Fruit { - type Target = ::serde_json::Map; - fn deref(&self) -> &::serde_json::Map { + type Target = ::serde_json::Map<::std::string::String, ::serde_json::Value>; + fn deref(&self) -> &::serde_json::Map<::std::string::String, ::serde_json::Value> { &self.0 } } -impl From for ::serde_json::Map { +impl From for ::serde_json::Map<::std::string::String, ::serde_json::Value> { fn from(value: Fruit) -> Self { value.0 } @@ -57,8 +57,8 @@ impl From<&Fruit> for Fruit { value.clone() } } -impl From<::serde_json::Map> for Fruit { - fn from(value: ::serde_json::Map) -> Self { +impl From<::serde_json::Map<::std::string::String, ::serde_json::Value>> for Fruit { + fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self { Self(value) } } @@ -141,7 +141,7 @@ pub struct Veggie { pub veggie_like: bool, #[doc = "The name of the vegetable."] #[serde(rename = "veggieName")] - pub veggie_name: String, + pub veggie_name: ::std::string::String, } impl From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { @@ -177,10 +177,10 @@ impl From<&Veggie> for Veggie { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, ExtraDerive)] pub struct Veggies { - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub fruits: Vec, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub vegetables: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub fruits: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { diff --git a/cargo-typify/tests/outputs/multi_derive.rs b/cargo-typify/tests/outputs/multi_derive.rs index b4e0c626..862849b0 100644 --- a/cargo-typify/tests/outputs/multi_derive.rs +++ b/cargo-typify/tests/outputs/multi_derive.rs @@ -42,14 +42,14 @@ pub mod error { #[derive( :: serde :: Deserialize, :: serde :: Serialize, AnotherDerive, Clone, Debug, ExtraDerive, )] -pub struct Fruit(pub ::serde_json::Map); +pub struct Fruit(pub ::serde_json::Map<::std::string::String, ::serde_json::Value>); impl ::std::ops::Deref for Fruit { - type Target = ::serde_json::Map; - fn deref(&self) -> &::serde_json::Map { + type Target = ::serde_json::Map<::std::string::String, ::serde_json::Value>; + fn deref(&self) -> &::serde_json::Map<::std::string::String, ::serde_json::Value> { &self.0 } } -impl From for ::serde_json::Map { +impl From for ::serde_json::Map<::std::string::String, ::serde_json::Value> { fn from(value: Fruit) -> Self { value.0 } @@ -59,8 +59,8 @@ impl From<&Fruit> for Fruit { value.clone() } } -impl From<::serde_json::Map> for Fruit { - fn from(value: ::serde_json::Map) -> Self { +impl From<::serde_json::Map<::std::string::String, ::serde_json::Value>> for Fruit { + fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self { Self(value) } } @@ -147,7 +147,7 @@ pub struct Veggie { pub veggie_like: bool, #[doc = "The name of the vegetable."] #[serde(rename = "veggieName")] - pub veggie_name: String, + pub veggie_name: ::std::string::String, } impl From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { @@ -185,10 +185,10 @@ impl From<&Veggie> for Veggie { :: serde :: Deserialize, :: serde :: Serialize, AnotherDerive, Clone, Debug, ExtraDerive, )] pub struct Veggies { - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub fruits: Vec, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub vegetables: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub fruits: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { diff --git a/cargo-typify/tests/outputs/no-builder.rs b/cargo-typify/tests/outputs/no-builder.rs index 8a7caa4f..6f2637fb 100644 --- a/cargo-typify/tests/outputs/no-builder.rs +++ b/cargo-typify/tests/outputs/no-builder.rs @@ -40,14 +40,14 @@ pub mod error { #[doc = r" ```"] #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] -pub struct Fruit(pub ::serde_json::Map); +pub struct Fruit(pub ::serde_json::Map<::std::string::String, ::serde_json::Value>); impl ::std::ops::Deref for Fruit { - type Target = ::serde_json::Map; - fn deref(&self) -> &::serde_json::Map { + type Target = ::serde_json::Map<::std::string::String, ::serde_json::Value>; + fn deref(&self) -> &::serde_json::Map<::std::string::String, ::serde_json::Value> { &self.0 } } -impl From for ::serde_json::Map { +impl From for ::serde_json::Map<::std::string::String, ::serde_json::Value> { fn from(value: Fruit) -> Self { value.0 } @@ -57,8 +57,8 @@ impl From<&Fruit> for Fruit { value.clone() } } -impl From<::serde_json::Map> for Fruit { - fn from(value: ::serde_json::Map) -> Self { +impl From<::serde_json::Map<::std::string::String, ::serde_json::Value>> for Fruit { + fn from(value: ::serde_json::Map<::std::string::String, ::serde_json::Value>) -> Self { Self(value) } } @@ -141,7 +141,7 @@ pub struct Veggie { pub veggie_like: bool, #[doc = "The name of the vegetable."] #[serde(rename = "veggieName")] - pub veggie_name: String, + pub veggie_name: ::std::string::String, } impl From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { @@ -177,10 +177,10 @@ impl From<&Veggie> for Veggie { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Veggies { - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub fruits: Vec, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub vegetables: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub fruits: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { diff --git a/typify-impl/Cargo.toml b/typify-impl/Cargo.toml index bdbb2138..dad413cf 100644 --- a/typify-impl/Cargo.toml +++ b/typify-impl/Cargo.toml @@ -29,5 +29,5 @@ paste = "1.0.15" rustfmt-wrapper = "0.2.1" schema = "0.1.0" schemars = { version = "0.8.21", features = ["uuid1", "impl_json_schema"] } -syn = { version = "2.0.90", features = ["full", "extra-traits"] } +syn = { version = "2.0.90", features = ["full", "extra-traits", "visit-mut"] } uuid = "1.11.0" diff --git a/typify-impl/src/enums.rs b/typify-impl/src/enums.rs index c4086f72..d0c8d2da 100644 --- a/typify-impl/src/enums.rs +++ b/typify-impl/src/enums.rs @@ -1470,7 +1470,7 @@ mod tests { #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] pub enum ResultX { Ok(u32), - Err(String), + Err(::std::string::String), } impl From<&ResultX> for ResultX { @@ -1522,7 +1522,7 @@ mod tests { #[derive(::serde::Deserialize, ::serde::Serialize, A, B, C, Clone, D, Debug)] pub enum ResultX { Ok(u32), - Err(String), + Err(::std::string::String), } impl From<&ResultX> for ResultX { diff --git a/typify-impl/src/lib.rs b/typify-impl/src/lib.rs index a1299cc9..ff036eeb 100644 --- a/typify-impl/src/lib.rs +++ b/typify-impl/src/lib.rs @@ -1212,7 +1212,8 @@ mod tests { type_space.add_root_schema(schema).unwrap(); let tokens = type_space.to_stream().to_string(); println!("{}", tokens); - assert!(tokens.contains(" pub struct Somename { pub someproperty : String , }")) + assert!(tokens + .contains(" pub struct Somename { pub someproperty : :: std :: string :: String , }")) } #[test] diff --git a/typify-impl/src/structs.rs b/typify-impl/src/structs.rs index 50281a5d..5f8dfb47 100644 --- a/typify-impl/src/structs.rs +++ b/typify-impl/src/structs.rs @@ -373,12 +373,12 @@ pub(crate) fn generate_serde_attr( let default_fn = match (state, &prop_type.details) { (StructPropertyState::Optional, TypeEntryDetails::Option(_)) => { serde_options.push(quote! { default }); - serde_options.push(quote! { skip_serializing_if = "Option::is_none" }); + serde_options.push(quote! { skip_serializing_if = "::std::option::Option::is_none" }); DefaultFunction::Default } (StructPropertyState::Optional, TypeEntryDetails::Vec(_)) => { serde_options.push(quote! { default }); - serde_options.push(quote! { skip_serializing_if = "Vec::is_empty" }); + serde_options.push(quote! { skip_serializing_if = "::std::vec::Vec::is_empty" }); DefaultFunction::Default } (StructPropertyState::Optional, TypeEntryDetails::Map(key_id, value_id)) => { @@ -588,6 +588,9 @@ mod tests { let mut type_space = TypeSpace::default(); let (ty, _) = type_space.convert_schema(Name::Unknown, &schema).unwrap(); let output = ty.type_name(&type_space).replace(" ", ""); - assert_eq!(output, "::serde_json::Map"); + assert_eq!( + output, + "::serde_json::Map<::std::string::String,::serde_json::Value>" + ); } } diff --git a/typify-impl/src/test_util.rs b/typify-impl/src/test_util.rs index 855aa3b7..2a9938f9 100644 --- a/typify-impl/src/test_util.rs +++ b/typify-impl/src/test_util.rs @@ -72,6 +72,13 @@ fn validate_output_impl(ignore_variant_names: bool) { let output = output.into_stream(); let expected = T::schema(); + + // A few test cases use structs that use the fully-qualified path to a std type such as + // `::std::collections::HashMap`. Decanonicalize those types so that later in this function + // when we also decanonicalize the types generated by typify, we can compare the two and expect + // their ASTs to match exactly + let expected = decanonicalize_std_types(expected); + // We may generate more than one item for a given schema. For example, we // may generate `impl`s with convenient functions. We do the somewhat // arcane dance here of parsing the full output, extracting the first item, @@ -81,6 +88,10 @@ fn validate_output_impl(ignore_variant_names: bool) { assert!(!file.items.is_empty(), "{}", output.to_string()); let actual = parse2::(file.items.first().unwrap().to_token_stream()).unwrap(); + // Decanonicalize the types generated by typify so that we can compare them to the original + // Rust types' ASTs that definitely do not use canonicalized std types. + let actual = decanonicalize_std_types(actual); + // Make sure they match. if let Err(err) = expected.syn_cmp(&actual, ignore_variant_names) { println!("{}", serde_json::to_string_pretty(&schema_for!(T)).unwrap()); @@ -89,6 +100,47 @@ fn validate_output_impl(ignore_variant_names: bool) { } } +/// Reverse the canonicalization of Rust standard types performed in the codegen logic so that it +/// is reasonable to expect that the generated Rust binding matches exactly the Rust type from +/// which the JSON Schema was generated. +/// +/// Our code generation logic always canonicalizes any standard type (eg, `Option` is output as +/// `::std::option::Option`), to avoid potential conflicts with types in the JSON schema with +/// conflicting names like `Option`. Unfortunately, this complicates the test cases that validate +/// that a round-trip from Rust to JSON back to Rust are exactly the same. +/// +/// To work around this, this somewhat inelegant function simply finds every type in the input AST +/// that starts with `::std`, and strips everything but the simple type name. This will break if +/// any of the input Rust types use fully-qualified type names that start with `::std`, but the +/// solution is to simply not do that. +fn decanonicalize_std_types(mut input: DeriveInput) -> DeriveInput { + struct Visitor; + + impl syn::visit_mut::VisitMut for Visitor { + fn visit_path_mut(&mut self, path: &mut syn::Path) { + // Check if path starts with ::std + if path.leading_colon.is_some() + && !path.segments.is_empty() + && path.segments[0].ident == "std" + { + if let Some(last_segment) = path.segments.last().cloned() { + // Replace the entire path with just the last segment + path.leading_colon = None; + path.segments.clear(); + path.segments.push(last_segment); + } + } + + // Delegate to the default impl to visit nested paths + syn::visit_mut::visit_path_mut(self, path); + } + } + + let mut visitor = Visitor; + syn::visit_mut::visit_derive_input_mut(&mut visitor, &mut input); + input +} + #[macro_export] macro_rules! validate_builtin { ($t:ty) => { diff --git a/typify-impl/src/type_entry.rs b/typify-impl/src/type_entry.rs index 15b03a18..0d692d17 100644 --- a/typify-impl/src/type_entry.rs +++ b/typify-impl/src/type_entry.rs @@ -761,7 +761,7 @@ impl TypeEntry { impl std::str::FromStr for #type_name { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { #(#match_strs => Ok(Self::#match_variants),)* _ => Err("invalid value".into()), @@ -771,21 +771,27 @@ impl TypeEntry { impl std::convert::TryFrom<&str> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> + ::std::result::Result + { value.parse() } } - impl std::convert::TryFrom<&String> for #type_name { + impl std::convert::TryFrom<&::std::string::String> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from(value: &::std::string::String) -> + ::std::result::Result + { value.parse() } } - impl std::convert::TryFrom for #type_name { + impl std::convert::TryFrom<::std::string::String> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from(value: ::std::string::String) -> + ::std::result::Result + { value.parse() } } @@ -815,7 +821,7 @@ impl TypeEntry { type Err = self::error::ConversionError; fn from_str(value: &str) -> - Result + ::std::result::Result { #( // Try to parse() into each variant. @@ -832,25 +838,25 @@ impl TypeEntry { type Error = self::error::ConversionError; fn try_from(value: &str) -> - Result + ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for #type_name { + impl std::convert::TryFrom<&::std::string::String> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: &String) -> - Result + fn try_from(value: &::std::string::String) -> + ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for #type_name { + impl std::convert::TryFrom<::std::string::String> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: String) -> - Result + fn try_from(value: ::std::string::String) -> + ::std::result::Result { value.parse() } @@ -1149,7 +1155,7 @@ impl TypeEntry { #[derive(Clone, Debug)] pub struct #type_name { #( - #prop_name: Result<#prop_type_scoped, String>, + #prop_name: ::std::result::Result<#prop_type_scoped, ::std::string::String>, )* } @@ -1178,13 +1184,13 @@ impl TypeEntry { } // This is how the item is built. - impl std::convert::TryFrom<#type_name> + impl ::std::convert::TryFrom<#type_name> for super::#type_name { type Error = super::error::ConversionError; fn try_from(value: #type_name) - -> Result + -> ::std::result::Result { Ok(Self { #( @@ -1250,11 +1256,11 @@ impl TypeEntry { TypeEntryNewtypeConstraints::None => { let str_impl = is_str.then(|| { quote! { - impl std::str::FromStr for #type_name { - type Err = std::convert::Infallible; + impl ::std::str::FromStr for #type_name { + type Err = ::std::convert::Infallible; fn from_str(value: &str) -> - Result + ::std::result::Result { Ok(Self(value.to_string())) } @@ -1269,40 +1275,40 @@ impl TypeEntry { quote! { impl std::str::FromStr for #type_name { type Err = <#inner_type_name as - std::str::FromStr>::Err; + ::std::str::FromStr>::Err; fn from_str(value: &str) -> - Result + ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for #type_name { type Error = <#inner_type_name as - std::str::FromStr>::Err; + ::std::str::FromStr>::Err; fn try_from(value: &str) -> - Result + ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for #type_name { type Error = <#inner_type_name as - std::str::FromStr>::Err; + ::std::str::FromStr>::Err; fn try_from(value: &String) -> - Result + ::std::result::Result { value.parse() } } impl std::convert::TryFrom for #type_name { type Error = <#inner_type_name as - std::str::FromStr>::Err; + ::std::str::FromStr>::Err; fn try_from(value: String) -> - Result + ::std::result::Result { value.parse() } @@ -1362,12 +1368,12 @@ impl TypeEntry { // TODO maybe we want to handle JsonSchema here quote! { // This is effectively the constructor for this type. - impl std::convert::TryFrom<#inner_type_name> for #type_name { + impl ::std::convert::TryFrom<#inner_type_name> for #type_name { type Error = self::error::ConversionError; fn try_from( value: #inner_type_name - ) -> Result + ) -> ::std::result::Result { if #not [ #(#value_output,)* @@ -1382,7 +1388,7 @@ impl TypeEntry { impl<'de> ::serde::Deserialize<'de> for #type_name { fn deserialize( deserializer: D, - ) -> Result + ) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { @@ -1441,7 +1447,7 @@ impl TypeEntry { impl ::std::str::FromStr for #type_name { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { #max #min #pat @@ -1453,25 +1459,25 @@ impl TypeEntry { type Error = self::error::ConversionError; fn try_from(value: &str) -> - Result + ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for #type_name { + impl ::std::convert::TryFrom<&::std::string::String> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: &String) -> - Result + fn try_from(value: &::std::string::String) -> + ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for #type_name { + impl ::std::convert::TryFrom<::std::string::String> for #type_name { type Error = self::error::ConversionError; - fn try_from(value: String) -> - Result + fn try_from(value: ::std::string::String) -> + ::std::result::Result { value.parse() } @@ -1480,17 +1486,17 @@ impl TypeEntry { impl<'de> ::serde::Deserialize<'de> for #type_name { fn deserialize( deserializer: D, - ) -> Result + ) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? - .parse() - .map_err(|e: self::error::ConversionError| { - ::custom( - e.to_string(), - ) - }) + ::std::string::String::deserialize(deserializer)? + .parse() + .map_err(|e: self::error::ConversionError| { + ::custom( + e.to_string(), + ) + }) } } } @@ -1587,7 +1593,7 @@ impl TypeEntry { // schema encoded it; it's an odd construction. match &inner_ty.details { TypeEntryDetails::Option(_) => inner_ident, - _ => quote! { Option<#inner_ident> }, + _ => quote! { ::std::option::Option<#inner_ident> }, } } @@ -1599,7 +1605,7 @@ impl TypeEntry { let item = inner_ty.type_ident(type_space, type_mod); - quote! { Box<#item> } + quote! { ::std::boxed::Box<#item> } } TypeEntryDetails::Vec(id) => { @@ -1609,7 +1615,7 @@ impl TypeEntry { .expect("unresolved type id for array"); let item = inner_ty.type_ident(type_space, type_mod); - quote! { Vec<#item> } + quote! { ::std::vec::Vec<#item> } } TypeEntryDetails::Map(key_id, value_id) => { @@ -1625,7 +1631,7 @@ impl TypeEntry { if key_ty.details == TypeEntryDetails::String && value_ty.details == TypeEntryDetails::JsonValue { - quote! { ::serde_json::Map } + quote! { ::serde_json::Map<::std::string::String, ::serde_json::Value> } } else { let key_ident = key_ty.type_ident(type_space, type_mod); let value_ident = value_ty.type_ident(type_space, type_mod); @@ -1697,7 +1703,7 @@ impl TypeEntry { } TypeEntryDetails::Unit => quote! { () }, - TypeEntryDetails::String => quote! { String }, + TypeEntryDetails::String => quote! { ::std::string::String }, TypeEntryDetails::Boolean => quote! { bool }, TypeEntryDetails::JsonValue => quote! { ::serde_json::Value }, TypeEntryDetails::Integer(name) | TypeEntryDetails::Float(name) => { @@ -1924,7 +1930,7 @@ mod tests { let t = TypeEntry::from(TypeEntryDetails::String); let ident = t.type_ident(&ts, &type_mod); - assert_eq!(ident.to_string(), "String"); + assert_eq!(ident.to_string(), ":: std :: string :: String"); let parameter = t.type_parameter_ident(&ts, None); assert_eq!(parameter.to_string(), "& str"); let parameter = t.type_parameter_ident(&ts, Some("static")); diff --git a/typify-impl/src/value.rs b/typify-impl/src/value.rs index 2c38ef2a..58012f81 100644 --- a/typify-impl/src/value.rs +++ b/typify-impl/src/value.rs @@ -66,14 +66,14 @@ impl TypeEntry { TypeEntryDetails::Option(type_id) => { if let serde_json::Value::Null = value { - quote! { None } + quote! { ::std::option::Option::None } } else { let inner = type_space .id_to_entry .get(type_id) .unwrap() .output_value(type_space, value, scope)?; - quote! { Some(#inner) } + quote! { ::std::option::Option::Some(#inner) } } } TypeEntryDetails::Box(type_id) => { @@ -82,7 +82,7 @@ impl TypeEntry { .get(type_id) .unwrap() .output_value(type_space, value, scope)?; - quote! { Box::new(#inner) } + quote! { ::std::boxed::Box::new(#inner) } } // TODO: this should become a HashSet<_> once we figure out the // derives more precisely. @@ -457,13 +457,13 @@ mod tests { type_entry .output_value(&type_space, &json!(null), "e! {}) .map(|x| x.to_string()), - Some("None".to_string()), + Some(":: std :: option :: Option :: None".to_string()), ); assert_eq!( type_entry .output_value(&type_space, &json!(42), "e! {}) .map(|x| x.to_string()), - Some("Some (42_u32)".to_string()), + Some(":: std :: option :: Option :: Some (42_u32)".to_string()), ); } @@ -480,13 +480,16 @@ mod tests { type_entry .output_value(&type_space, &json!(null), "e! {}) .map(|x| x.to_string()), - Some("Box :: new (None)".to_string()), + Some(":: std :: boxed :: Box :: new (:: std :: option :: Option :: None)".to_string()), ); assert_eq!( type_entry .output_value(&type_space, &json!(42), "e! {}) .map(|x| x.to_string()), - Some("Box :: new (Some (42_u32))".to_string()), + Some( + ":: std :: boxed :: Box :: new (:: std :: option :: Option :: Some (42_u32))" + .to_string() + ), ); } @@ -568,19 +571,19 @@ mod tests { type_entry .output_value(&type_space, &json!(true), "e! {}) .map(|x| x.to_string()), - Some("Some (true)".to_string()), + Some(":: std :: option :: Option :: Some (true)".to_string()), ); assert_eq!( type_entry .output_value(&type_space, &json!(false), "e! {}) .map(|x| x.to_string()), - Some("Some (false)".to_string()), + Some(":: std :: option :: Option :: Some (false)".to_string()), ); assert_eq!( type_entry .output_value(&type_space, &json!(null), "e! {}) .map(|x| x.to_string()), - Some("None".to_string()), + Some(":: std :: option :: Option :: None".to_string()), ); } @@ -630,7 +633,7 @@ mod tests { super::Test { a: "aaaa".to_string(), b: 7_u32, - c: Some("cccc".to_string()), + c: ::std::option::Option::Some("cccc".to_string()), d: Default::default() } } @@ -672,7 +675,7 @@ mod tests { Test { a: "aaaa".to_string(), b: 7_u32, - c: Some("cccc".to_string()), + c: ::std::option::Option::Some("cccc".to_string()), d: Default::default() } } diff --git a/typify-impl/tests/generator.out b/typify-impl/tests/generator.out index fc705428..07c91d11 100644 --- a/typify-impl/tests/generator.out +++ b/typify-impl/tests/generator.out @@ -57,7 +57,7 @@ mod types { PartialOrd, )] pub struct AllTheTraits { - pub ok: String, + pub ok: ::std::string::String, } impl From<&AllTheTraits> for AllTheTraits { fn from(value: &AllTheTraits) -> Self { @@ -96,7 +96,7 @@ mod types { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, JsonSchema)] pub struct CompoundType { - pub value1: String, + pub value1: ::std::string::String, pub value2: u64, } impl From<&CompoundType> for CompoundType { @@ -196,7 +196,7 @@ mod types { } impl std::str::FromStr for StringEnum { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "One" => Ok(Self::One), "Two" => Ok(Self::Two), @@ -207,19 +207,23 @@ mod types { } impl std::convert::TryFrom<&str> for StringEnum { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for StringEnum { + impl std::convert::TryFrom<&::std::string::String> for StringEnum { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for StringEnum { + impl std::convert::TryFrom<::std::string::String> for StringEnum { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -227,7 +231,7 @@ mod types { pub mod builder { #[derive(Clone, Debug)] pub struct AllTheTraits { - ok: Result, + ok: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for AllTheTraits { fn default() -> Self { @@ -239,7 +243,7 @@ mod types { impl AllTheTraits { pub fn ok(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.ok = value @@ -248,9 +252,11 @@ mod types { self } } - impl std::convert::TryFrom for super::AllTheTraits { + impl ::std::convert::TryFrom for super::AllTheTraits { type Error = super::error::ConversionError; - fn try_from(value: AllTheTraits) -> Result { + fn try_from( + value: AllTheTraits, + ) -> ::std::result::Result { Ok(Self { ok: value.ok? }) } } @@ -261,8 +267,8 @@ mod types { } #[derive(Clone, Debug)] pub struct CompoundType { - value1: Result, - value2: Result, + value1: ::std::result::Result<::std::string::String, ::std::string::String>, + value2: ::std::result::Result, } impl Default for CompoundType { fn default() -> Self { @@ -275,7 +281,7 @@ mod types { impl CompoundType { pub fn value1(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.value1 = value @@ -294,9 +300,11 @@ mod types { self } } - impl std::convert::TryFrom for super::CompoundType { + impl ::std::convert::TryFrom for super::CompoundType { type Error = super::error::ConversionError; - fn try_from(value: CompoundType) -> Result { + fn try_from( + value: CompoundType, + ) -> ::std::result::Result { Ok(Self { value1: value.value1?, value2: value.value2?, @@ -313,8 +321,8 @@ mod types { } #[derive(Clone, Debug)] pub struct Pair { - a: Result, - b: Result, + a: ::std::result::Result, + b: ::std::result::Result, } impl Default for Pair { fn default() -> Self { @@ -346,9 +354,9 @@ mod types { self } } - impl std::convert::TryFrom for super::Pair { + impl ::std::convert::TryFrom for super::Pair { type Error = super::error::ConversionError; - fn try_from(value: Pair) -> Result { + fn try_from(value: Pair) -> ::std::result::Result { Ok(Self { a: value.a?, b: value.b?, diff --git a/typify-impl/tests/github.out b/typify-impl/tests/github.out index b128144a..1bf4a317 100644 --- a/typify-impl/tests/github.out +++ b/typify-impl/tests/github.out @@ -109,20 +109,20 @@ pub mod error { #[serde(deny_unknown_fields)] pub struct AlertInstance { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] - pub analysis_key: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub classifications: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub commit_sha: Option, + pub analysis_key: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub classifications: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] - pub environment: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub location: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub message: Option, + pub environment: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub location: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, #[doc = "State of a code scanning alert."] pub state: AlertInstanceState, } @@ -162,16 +162,16 @@ impl From<&AlertInstance> for AlertInstance { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstanceLocation { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_line: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub path: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_line: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_line: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub path: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_line: ::std::option::Option, } impl From<&AlertInstanceLocation> for AlertInstanceLocation { fn from(value: &AlertInstanceLocation) -> Self { @@ -197,8 +197,8 @@ impl From<&AlertInstanceLocation> for AlertInstanceLocation { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstanceMessage { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub text: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub text: ::std::option::Option<::std::string::String>, } impl From<&AlertInstanceMessage> for AlertInstanceMessage { fn from(value: &AlertInstanceMessage) -> Self { @@ -257,7 +257,7 @@ impl ::std::fmt::Display for AlertInstanceState { } impl std::str::FromStr for AlertInstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), @@ -268,19 +268,23 @@ impl std::str::FromStr for AlertInstanceState { } impl std::convert::TryFrom<&str> for AlertInstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AlertInstanceState { +impl std::convert::TryFrom<&::std::string::String> for AlertInstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AlertInstanceState { +impl std::convert::TryFrom<::std::string::String> for AlertInstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -653,23 +657,23 @@ impl std::convert::TryFrom for AlertInstanceState { #[serde(deny_unknown_fields)] pub struct App { pub created_at: chrono::DateTime, - pub description: Option, + pub description: ::std::option::Option<::std::string::String>, #[doc = "The list of events for the GitHub app"] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub events: Vec, - pub external_url: String, - pub html_url: String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub events: ::std::vec::Vec, + pub external_url: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "Unique identifier of the GitHub app"] pub id: i64, #[doc = "The name of the GitHub app"] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, pub owner: User, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub permissions: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub permissions: ::std::option::Option, #[doc = "The slug name of the GitHub app"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub slug: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub slug: ::std::option::Option<::std::string::String>, pub updated_at: chrono::DateTime, } impl From<&App> for App { @@ -892,7 +896,7 @@ impl ::std::fmt::Display for AppEventsItem { } impl std::str::FromStr for AppEventsItem { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), @@ -944,19 +948,23 @@ impl std::str::FromStr for AppEventsItem { } impl std::convert::TryFrom<&str> for AppEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppEventsItem { +impl std::convert::TryFrom<&::std::string::String> for AppEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppEventsItem { +impl std::convert::TryFrom<::std::string::String> for AppEventsItem { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1215,74 +1223,76 @@ impl std::convert::TryFrom for AppEventsItem { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AppPermissions { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub actions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub administration: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub checks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub content_references: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub contents: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub emails: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub environments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub issues: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub members: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metadata: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_administration: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_packages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_plan: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_projects: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_self_hosted_runners: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_user_blocking: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub packages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pull_requests: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_projects: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub secret_scanning_alerts: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub security_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub security_scanning_alert: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub single_file: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub statuses: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub team_discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vulnerability_alerts: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub workflows: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub actions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub administration: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub checks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub content_references: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub contents: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub discussions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub emails: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub environments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub issues: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub members: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub metadata: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_administration: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_hooks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_packages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_plan: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_projects: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_secrets: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_self_hosted_runners: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_user_blocking: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub packages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pull_requests: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_hooks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_projects: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub secret_scanning_alerts: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub secrets: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub security_events: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub security_scanning_alert: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub single_file: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub statuses: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub team_discussions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vulnerability_alerts: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub workflows: ::std::option::Option, } impl From<&AppPermissions> for AppPermissions { fn from(value: &AppPermissions) -> Self { @@ -1336,7 +1346,7 @@ impl ::std::fmt::Display for AppPermissionsActions { } impl std::str::FromStr for AppPermissionsActions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1346,19 +1356,23 @@ impl std::str::FromStr for AppPermissionsActions { } impl std::convert::TryFrom<&str> for AppPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsActions { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsActions { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1409,7 +1423,7 @@ impl ::std::fmt::Display for AppPermissionsAdministration { } impl std::str::FromStr for AppPermissionsAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1419,19 +1433,23 @@ impl std::str::FromStr for AppPermissionsAdministration { } impl std::convert::TryFrom<&str> for AppPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsAdministration { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsAdministration { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1482,7 +1500,7 @@ impl ::std::fmt::Display for AppPermissionsChecks { } impl std::str::FromStr for AppPermissionsChecks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1492,19 +1510,23 @@ impl std::str::FromStr for AppPermissionsChecks { } impl std::convert::TryFrom<&str> for AppPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsChecks { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsChecks { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1555,7 +1577,7 @@ impl ::std::fmt::Display for AppPermissionsContentReferences { } impl std::str::FromStr for AppPermissionsContentReferences { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1565,19 +1587,23 @@ impl std::str::FromStr for AppPermissionsContentReferences { } impl std::convert::TryFrom<&str> for AppPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsContentReferences { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsContentReferences { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1628,7 +1654,7 @@ impl ::std::fmt::Display for AppPermissionsContents { } impl std::str::FromStr for AppPermissionsContents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1638,19 +1664,23 @@ impl std::str::FromStr for AppPermissionsContents { } impl std::convert::TryFrom<&str> for AppPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsContents { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsContents { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1701,7 +1731,7 @@ impl ::std::fmt::Display for AppPermissionsDeployments { } impl std::str::FromStr for AppPermissionsDeployments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1711,19 +1741,23 @@ impl std::str::FromStr for AppPermissionsDeployments { } impl std::convert::TryFrom<&str> for AppPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsDeployments { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsDeployments { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1774,7 +1808,7 @@ impl ::std::fmt::Display for AppPermissionsDiscussions { } impl std::str::FromStr for AppPermissionsDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1784,19 +1818,23 @@ impl std::str::FromStr for AppPermissionsDiscussions { } impl std::convert::TryFrom<&str> for AppPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsDiscussions { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsDiscussions { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1847,7 +1885,7 @@ impl ::std::fmt::Display for AppPermissionsEmails { } impl std::str::FromStr for AppPermissionsEmails { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1857,19 +1895,23 @@ impl std::str::FromStr for AppPermissionsEmails { } impl std::convert::TryFrom<&str> for AppPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsEmails { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsEmails { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1920,7 +1962,7 @@ impl ::std::fmt::Display for AppPermissionsEnvironments { } impl std::str::FromStr for AppPermissionsEnvironments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -1930,19 +1972,23 @@ impl std::str::FromStr for AppPermissionsEnvironments { } impl std::convert::TryFrom<&str> for AppPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsEnvironments { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsEnvironments { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1993,7 +2039,7 @@ impl ::std::fmt::Display for AppPermissionsIssues { } impl std::str::FromStr for AppPermissionsIssues { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2003,19 +2049,23 @@ impl std::str::FromStr for AppPermissionsIssues { } impl std::convert::TryFrom<&str> for AppPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsIssues { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsIssues { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2066,7 +2116,7 @@ impl ::std::fmt::Display for AppPermissionsMembers { } impl std::str::FromStr for AppPermissionsMembers { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2076,19 +2126,23 @@ impl std::str::FromStr for AppPermissionsMembers { } impl std::convert::TryFrom<&str> for AppPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsMembers { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsMembers { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2139,7 +2193,7 @@ impl ::std::fmt::Display for AppPermissionsMetadata { } impl std::str::FromStr for AppPermissionsMetadata { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2149,19 +2203,23 @@ impl std::str::FromStr for AppPermissionsMetadata { } impl std::convert::TryFrom<&str> for AppPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsMetadata { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsMetadata { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2212,7 +2270,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationAdministration { } impl std::str::FromStr for AppPermissionsOrganizationAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2222,19 +2280,23 @@ impl std::str::FromStr for AppPermissionsOrganizationAdministration { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationAdministration { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationAdministration { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2285,7 +2347,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationHooks { } impl std::str::FromStr for AppPermissionsOrganizationHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2295,19 +2357,23 @@ impl std::str::FromStr for AppPermissionsOrganizationHooks { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationHooks { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationHooks { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2358,7 +2424,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationPackages { } impl std::str::FromStr for AppPermissionsOrganizationPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2368,19 +2434,23 @@ impl std::str::FromStr for AppPermissionsOrganizationPackages { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationPackages { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationPackages { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2431,7 +2501,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationPlan { } impl std::str::FromStr for AppPermissionsOrganizationPlan { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2441,19 +2511,23 @@ impl std::str::FromStr for AppPermissionsOrganizationPlan { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationPlan { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationPlan { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2504,7 +2578,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationProjects { } impl std::str::FromStr for AppPermissionsOrganizationProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2514,19 +2588,23 @@ impl std::str::FromStr for AppPermissionsOrganizationProjects { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationProjects { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationProjects { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2577,7 +2655,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationSecrets { } impl std::str::FromStr for AppPermissionsOrganizationSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2587,19 +2665,23 @@ impl std::str::FromStr for AppPermissionsOrganizationSecrets { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationSecrets { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationSecrets { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2652,7 +2734,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationSelfHostedRunners { } impl std::str::FromStr for AppPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2662,19 +2744,23 @@ impl std::str::FromStr for AppPermissionsOrganizationSelfHostedRunners { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationSelfHostedRunners { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationSelfHostedRunners { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2725,7 +2811,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationUserBlocking { } impl std::str::FromStr for AppPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2735,19 +2821,23 @@ impl std::str::FromStr for AppPermissionsOrganizationUserBlocking { } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsOrganizationUserBlocking { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsOrganizationUserBlocking { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2798,7 +2888,7 @@ impl ::std::fmt::Display for AppPermissionsPackages { } impl std::str::FromStr for AppPermissionsPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2808,19 +2898,23 @@ impl std::str::FromStr for AppPermissionsPackages { } impl std::convert::TryFrom<&str> for AppPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsPackages { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsPackages { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2871,7 +2965,7 @@ impl ::std::fmt::Display for AppPermissionsPages { } impl std::str::FromStr for AppPermissionsPages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2881,19 +2975,23 @@ impl std::str::FromStr for AppPermissionsPages { } impl std::convert::TryFrom<&str> for AppPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsPages { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsPages { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2944,7 +3042,7 @@ impl ::std::fmt::Display for AppPermissionsPullRequests { } impl std::str::FromStr for AppPermissionsPullRequests { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -2954,19 +3052,23 @@ impl std::str::FromStr for AppPermissionsPullRequests { } impl std::convert::TryFrom<&str> for AppPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsPullRequests { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsPullRequests { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3017,7 +3119,7 @@ impl ::std::fmt::Display for AppPermissionsRepositoryHooks { } impl std::str::FromStr for AppPermissionsRepositoryHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3027,19 +3129,23 @@ impl std::str::FromStr for AppPermissionsRepositoryHooks { } impl std::convert::TryFrom<&str> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsRepositoryHooks { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsRepositoryHooks { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3090,7 +3196,7 @@ impl ::std::fmt::Display for AppPermissionsRepositoryProjects { } impl std::str::FromStr for AppPermissionsRepositoryProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3100,19 +3206,23 @@ impl std::str::FromStr for AppPermissionsRepositoryProjects { } impl std::convert::TryFrom<&str> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsRepositoryProjects { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsRepositoryProjects { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3163,7 +3273,7 @@ impl ::std::fmt::Display for AppPermissionsSecretScanningAlerts { } impl std::str::FromStr for AppPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3173,19 +3283,23 @@ impl std::str::FromStr for AppPermissionsSecretScanningAlerts { } impl std::convert::TryFrom<&str> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsSecretScanningAlerts { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsSecretScanningAlerts { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3236,7 +3350,7 @@ impl ::std::fmt::Display for AppPermissionsSecrets { } impl std::str::FromStr for AppPermissionsSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3246,19 +3360,23 @@ impl std::str::FromStr for AppPermissionsSecrets { } impl std::convert::TryFrom<&str> for AppPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsSecrets { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsSecrets { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3309,7 +3427,7 @@ impl ::std::fmt::Display for AppPermissionsSecurityEvents { } impl std::str::FromStr for AppPermissionsSecurityEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3319,19 +3437,23 @@ impl std::str::FromStr for AppPermissionsSecurityEvents { } impl std::convert::TryFrom<&str> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsSecurityEvents { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsSecurityEvents { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3382,7 +3504,7 @@ impl ::std::fmt::Display for AppPermissionsSecurityScanningAlert { } impl std::str::FromStr for AppPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3392,19 +3514,23 @@ impl std::str::FromStr for AppPermissionsSecurityScanningAlert { } impl std::convert::TryFrom<&str> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsSecurityScanningAlert { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsSecurityScanningAlert { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3455,7 +3581,7 @@ impl ::std::fmt::Display for AppPermissionsSingleFile { } impl std::str::FromStr for AppPermissionsSingleFile { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3465,19 +3591,23 @@ impl std::str::FromStr for AppPermissionsSingleFile { } impl std::convert::TryFrom<&str> for AppPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsSingleFile { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsSingleFile { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3528,7 +3658,7 @@ impl ::std::fmt::Display for AppPermissionsStatuses { } impl std::str::FromStr for AppPermissionsStatuses { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3538,19 +3668,23 @@ impl std::str::FromStr for AppPermissionsStatuses { } impl std::convert::TryFrom<&str> for AppPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsStatuses { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsStatuses { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3601,7 +3735,7 @@ impl ::std::fmt::Display for AppPermissionsTeamDiscussions { } impl std::str::FromStr for AppPermissionsTeamDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3611,19 +3745,23 @@ impl std::str::FromStr for AppPermissionsTeamDiscussions { } impl std::convert::TryFrom<&str> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsTeamDiscussions { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsTeamDiscussions { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3674,7 +3812,7 @@ impl ::std::fmt::Display for AppPermissionsVulnerabilityAlerts { } impl std::str::FromStr for AppPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3684,19 +3822,23 @@ impl std::str::FromStr for AppPermissionsVulnerabilityAlerts { } impl std::convert::TryFrom<&str> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsVulnerabilityAlerts { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsVulnerabilityAlerts { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3747,7 +3889,7 @@ impl ::std::fmt::Display for AppPermissionsWorkflows { } impl std::str::FromStr for AppPermissionsWorkflows { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -3757,19 +3899,23 @@ impl std::str::FromStr for AppPermissionsWorkflows { } impl std::convert::TryFrom<&str> for AppPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AppPermissionsWorkflows { +impl std::convert::TryFrom<&::std::string::String> for AppPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AppPermissionsWorkflows { +impl std::convert::TryFrom<::std::string::String> for AppPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3847,7 +3993,7 @@ impl ::std::fmt::Display for AuthorAssociation { } impl std::str::FromStr for AuthorAssociation { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "COLLABORATOR" => Ok(Self::Collaborator), "CONTRIBUTOR" => Ok(Self::Contributor), @@ -3863,19 +4009,23 @@ impl std::str::FromStr for AuthorAssociation { } impl std::convert::TryFrom<&str> for AuthorAssociation { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for AuthorAssociation { +impl std::convert::TryFrom<&::std::string::String> for AuthorAssociation { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for AuthorAssociation { +impl std::convert::TryFrom<::std::string::String> for AuthorAssociation { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4052,7 +4202,7 @@ pub struct BranchProtectionRule { pub admin_enforced: bool, pub allow_deletions_enforcement_level: BranchProtectionRuleAllowDeletionsEnforcementLevel, pub allow_force_pushes_enforcement_level: BranchProtectionRuleAllowForcePushesEnforcementLevel, - pub authorized_actor_names: Vec, + pub authorized_actor_names: ::std::vec::Vec<::std::string::String>, pub authorized_actors_only: bool, pub authorized_dismissal_actors_only: bool, pub created_at: chrono::DateTime, @@ -4062,7 +4212,7 @@ pub struct BranchProtectionRule { pub linear_history_requirement_enforcement_level: BranchProtectionRuleLinearHistoryRequirementEnforcementLevel, pub merge_queue_enforcement_level: BranchProtectionRuleMergeQueueEnforcementLevel, - pub name: String, + pub name: ::std::string::String, pub pull_request_reviews_enforcement_level: BranchProtectionRulePullRequestReviewsEnforcementLevel, pub repository_id: i64, @@ -4072,7 +4222,7 @@ pub struct BranchProtectionRule { BranchProtectionRuleRequiredConversationResolutionLevel, pub required_deployments_enforcement_level: BranchProtectionRuleRequiredDeploymentsEnforcementLevel, - pub required_status_checks: Vec, + pub required_status_checks: ::std::vec::Vec<::std::string::String>, pub required_status_checks_enforcement_level: BranchProtectionRuleRequiredStatusChecksEnforcementLevel, pub signature_requirement_enforcement_level: @@ -4138,7 +4288,7 @@ impl ::std::fmt::Display for BranchProtectionRuleAllowDeletionsEnforcementLevel } impl std::str::FromStr for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -4149,19 +4299,27 @@ impl std::str::FromStr for BranchProtectionRuleAllowDeletionsEnforcementLevel { } impl std::convert::TryFrom<&str> for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleAllowDeletionsEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleAllowDeletionsEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleAllowDeletionsEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleAllowDeletionsEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4218,7 +4376,7 @@ impl ::std::fmt::Display for BranchProtectionRuleAllowForcePushesEnforcementLeve } impl std::str::FromStr for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -4229,19 +4387,27 @@ impl std::str::FromStr for BranchProtectionRuleAllowForcePushesEnforcementLevel } impl std::convert::TryFrom<&str> for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleAllowForcePushesEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleAllowForcePushesEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleAllowForcePushesEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleAllowForcePushesEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4292,10 +4458,10 @@ impl std::convert::TryFrom for BranchProtectionRuleAllowForcePushesEnfor #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleCreated { pub action: BranchProtectionRuleCreatedAction, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub rule: BranchProtectionRule, pub sender: User, @@ -4348,7 +4514,7 @@ impl ::std::fmt::Display for BranchProtectionRuleCreatedAction { } impl std::str::FromStr for BranchProtectionRuleCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -4357,19 +4523,23 @@ impl std::str::FromStr for BranchProtectionRuleCreatedAction { } impl std::convert::TryFrom<&str> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleCreatedAction { +impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4420,10 +4590,10 @@ impl std::convert::TryFrom for BranchProtectionRuleCreatedAction { #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleDeleted { pub action: BranchProtectionRuleDeletedAction, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub rule: BranchProtectionRule, pub sender: User, @@ -4476,7 +4646,7 @@ impl ::std::fmt::Display for BranchProtectionRuleDeletedAction { } impl std::str::FromStr for BranchProtectionRuleDeletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), @@ -4485,19 +4655,23 @@ impl std::str::FromStr for BranchProtectionRuleDeletedAction { } impl std::convert::TryFrom<&str> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleDeletedAction { +impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleDeletedAction { +impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4584,10 +4758,10 @@ impl std::convert::TryFrom for BranchProtectionRuleDeletedAction { pub struct BranchProtectionRuleEdited { pub action: BranchProtectionRuleEditedAction, pub changes: BranchProtectionRuleEditedChanges, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub rule: BranchProtectionRule, pub sender: User, @@ -4640,7 +4814,7 @@ impl ::std::fmt::Display for BranchProtectionRuleEditedAction { } impl std::str::FromStr for BranchProtectionRuleEditedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), @@ -4649,19 +4823,23 @@ impl std::str::FromStr for BranchProtectionRuleEditedAction { } impl std::convert::TryFrom<&str> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleEditedAction { +impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleEditedAction { +impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4709,10 +4887,12 @@ impl std::convert::TryFrom for BranchProtectionRuleEditedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEditedChanges { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub authorized_actor_names: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub authorized_actors_only: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub authorized_actor_names: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub authorized_actors_only: + ::std::option::Option, } impl From<&BranchProtectionRuleEditedChanges> for BranchProtectionRuleEditedChanges { fn from(value: &BranchProtectionRuleEditedChanges) -> Self { @@ -4744,7 +4924,7 @@ impl From<&BranchProtectionRuleEditedChanges> for BranchProtectionRuleEditedChan #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEditedChangesAuthorizedActorNames { - pub from: Vec, + pub from: ::std::vec::Vec<::std::string::String>, } impl From<&BranchProtectionRuleEditedChangesAuthorizedActorNames> for BranchProtectionRuleEditedChangesAuthorizedActorNames @@ -4884,7 +5064,7 @@ impl ::std::fmt::Display for BranchProtectionRuleLinearHistoryRequirementEnforce } impl std::str::FromStr for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -4895,23 +5075,27 @@ impl std::str::FromStr for BranchProtectionRuleLinearHistoryRequirementEnforceme } impl std::convert::TryFrom<&str> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4968,7 +5152,7 @@ impl ::std::fmt::Display for BranchProtectionRuleMergeQueueEnforcementLevel { } impl std::str::FromStr for BranchProtectionRuleMergeQueueEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -4979,19 +5163,27 @@ impl std::str::FromStr for BranchProtectionRuleMergeQueueEnforcementLevel { } impl std::convert::TryFrom<&str> for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleMergeQueueEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleMergeQueueEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleMergeQueueEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleMergeQueueEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5048,7 +5240,7 @@ impl ::std::fmt::Display for BranchProtectionRulePullRequestReviewsEnforcementLe } impl std::str::FromStr for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -5059,19 +5251,27 @@ impl std::str::FromStr for BranchProtectionRulePullRequestReviewsEnforcementLeve } impl std::convert::TryFrom<&str> for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRulePullRequestReviewsEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRulePullRequestReviewsEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRulePullRequestReviewsEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRulePullRequestReviewsEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5128,7 +5328,7 @@ impl ::std::fmt::Display for BranchProtectionRuleRequiredConversationResolutionL } impl std::str::FromStr for BranchProtectionRuleRequiredConversationResolutionLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -5139,19 +5339,27 @@ impl std::str::FromStr for BranchProtectionRuleRequiredConversationResolutionLev } impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleRequiredConversationResolutionLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleRequiredConversationResolutionLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleRequiredConversationResolutionLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleRequiredConversationResolutionLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5208,7 +5416,7 @@ impl ::std::fmt::Display for BranchProtectionRuleRequiredDeploymentsEnforcementL } impl std::str::FromStr for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -5219,19 +5427,27 @@ impl std::str::FromStr for BranchProtectionRuleRequiredDeploymentsEnforcementLev } impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleRequiredDeploymentsEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleRequiredDeploymentsEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5288,7 +5504,7 @@ impl ::std::fmt::Display for BranchProtectionRuleRequiredStatusChecksEnforcement } impl std::str::FromStr for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -5299,19 +5515,27 @@ impl std::str::FromStr for BranchProtectionRuleRequiredStatusChecksEnforcementLe } impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleRequiredStatusChecksEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleRequiredStatusChecksEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5368,7 +5592,7 @@ impl ::std::fmt::Display for BranchProtectionRuleSignatureRequirementEnforcement } impl std::str::FromStr for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), @@ -5379,19 +5603,27 @@ impl std::str::FromStr for BranchProtectionRuleSignatureRequirementEnforcementLe } impl std::convert::TryFrom<&str> for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for BranchProtectionRuleSignatureRequirementEnforcementLevel { +impl std::convert::TryFrom<&::std::string::String> + for BranchProtectionRuleSignatureRequirementEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for BranchProtectionRuleSignatureRequirementEnforcementLevel { +impl std::convert::TryFrom<::std::string::String> + for BranchProtectionRuleSignatureRequirementEnforcementLevel +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5683,14 +5915,14 @@ impl std::convert::TryFrom for BranchProtectionRuleSignatureRequirementE pub struct CheckRunCompleted { pub action: CheckRunCompletedAction, pub check_run: CheckRunCompletedCheckRun, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, #[doc = "The action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub requested_action: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub requested_action: ::std::option::Option, pub sender: User, } impl From<&CheckRunCompleted> for CheckRunCompleted { @@ -5741,7 +5973,7 @@ impl ::std::fmt::Display for CheckRunCompletedAction { } impl std::str::FromStr for CheckRunCompletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), @@ -5750,19 +5982,23 @@ impl std::str::FromStr for CheckRunCompletedAction { } impl std::convert::TryFrom<&str> for CheckRunCompletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCompletedAction { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCompletedAction { +impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6009,28 +6245,28 @@ pub struct CheckRunCompletedCheckRun { pub app: App, pub check_suite: CheckRunCompletedCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub completed_at: String, + pub completed_at: ::std::string::String, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] - pub conclusion: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub details_url: Option, - pub external_id: String, + pub conclusion: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub details_url: ::std::option::Option<::std::string::String>, + pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] - pub head_sha: String, - pub html_url: String, + pub head_sha: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check run."] - pub name: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunCompletedCheckRunOutput, - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub started_at: String, + pub started_at: ::std::string::String, #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] pub status: CheckRunCompletedCheckRunStatus, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunCompletedCheckRun> for CheckRunCompletedCheckRun { fn from(value: &CheckRunCompletedCheckRun) -> Self { @@ -6145,25 +6381,25 @@ impl From<&CheckRunCompletedCheckRun> for CheckRunCompletedCheckRun { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCompletedCheckRunCheckSuite { - pub after: Option, + pub after: ::std::option::Option<::std::string::String>, pub app: App, - pub before: Option, - pub conclusion: Option, + pub before: ::std::option::Option<::std::string::String>, + pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployment: Option, - pub head_branch: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployment: ::std::option::Option, + pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, pub status: CheckRunCompletedCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunCompletedCheckRunCheckSuite> for CheckRunCompletedCheckRunCheckSuite { fn from(value: &CheckRunCompletedCheckRunCheckSuite) -> Self { @@ -6239,7 +6475,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunCheckSuiteConclusion { } impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -6254,19 +6490,27 @@ impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> + for CheckRunCompletedCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCompletedCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> + for CheckRunCompletedCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6323,7 +6567,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunCheckSuiteStatus { } impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), @@ -6334,19 +6578,23 @@ impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCompletedCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6422,7 +6670,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunConclusion { } impl std::str::FromStr for CheckRunCompletedCheckRunConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -6438,19 +6686,23 @@ impl std::str::FromStr for CheckRunCompletedCheckRunConclusion { } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCompletedCheckRunConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6502,11 +6754,11 @@ impl std::convert::TryFrom for CheckRunCompletedCheckRunConclusion { #[serde(deny_unknown_fields)] pub struct CheckRunCompletedCheckRunOutput { pub annotations_count: i64, - pub annotations_url: String, - pub summary: Option, - pub text: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub title: Option, + pub annotations_url: ::std::string::String, + pub summary: ::std::option::Option<::std::string::String>, + pub text: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCompletedCheckRunOutput> for CheckRunCompletedCheckRunOutput { fn from(value: &CheckRunCompletedCheckRunOutput) -> Self { @@ -6557,7 +6809,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunStatus { } impl std::str::FromStr for CheckRunCompletedCheckRunStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), @@ -6566,19 +6818,23 @@ impl std::str::FromStr for CheckRunCompletedCheckRunStatus { } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCompletedCheckRunStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6604,8 +6860,8 @@ impl std::convert::TryFrom for CheckRunCompletedCheckRunStatus { #[serde(deny_unknown_fields)] pub struct CheckRunCompletedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub identifier: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedAction { fn from(value: &CheckRunCompletedRequestedAction) -> Self { @@ -6905,14 +7161,14 @@ impl From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedActio pub struct CheckRunCreated { pub action: CheckRunCreatedAction, pub check_run: CheckRunCreatedCheckRun, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, #[doc = "The action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub requested_action: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub requested_action: ::std::option::Option, pub sender: User, } impl From<&CheckRunCreated> for CheckRunCreated { @@ -6963,7 +7219,7 @@ impl ::std::fmt::Display for CheckRunCreatedAction { } impl std::str::FromStr for CheckRunCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -6972,19 +7228,23 @@ impl std::str::FromStr for CheckRunCreatedAction { } impl std::convert::TryFrom<&str> for CheckRunCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCreatedAction { +impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7236,28 +7496,28 @@ pub struct CheckRunCreatedCheckRun { pub app: App, pub check_suite: CheckRunCreatedCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub completed_at: Option, + pub completed_at: ::std::option::Option<::std::string::String>, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] - pub conclusion: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub details_url: Option, - pub external_id: String, + pub conclusion: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub details_url: ::std::option::Option<::std::string::String>, + pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] - pub head_sha: String, - pub html_url: String, + pub head_sha: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check run."] - pub name: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunCreatedCheckRunOutput, - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub started_at: String, + pub started_at: ::std::string::String, #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] pub status: CheckRunCreatedCheckRunStatus, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunCreatedCheckRun> for CheckRunCreatedCheckRun { fn from(value: &CheckRunCreatedCheckRun) -> Self { @@ -7372,25 +7632,25 @@ impl From<&CheckRunCreatedCheckRun> for CheckRunCreatedCheckRun { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCreatedCheckRunCheckSuite { - pub after: Option, + pub after: ::std::option::Option<::std::string::String>, pub app: App, - pub before: Option, - pub conclusion: Option, + pub before: ::std::option::Option<::std::string::String>, + pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployment: Option, - pub head_branch: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployment: ::std::option::Option, + pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, pub status: CheckRunCreatedCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunCreatedCheckRunCheckSuite> for CheckRunCreatedCheckRunCheckSuite { fn from(value: &CheckRunCreatedCheckRunCheckSuite) -> Self { @@ -7466,7 +7726,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunCheckSuiteConclusion { } impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -7481,19 +7741,23 @@ impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCreatedCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7548,7 +7812,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunCheckSuiteStatus { } impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), @@ -7559,19 +7823,23 @@ impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCreatedCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7647,7 +7915,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunConclusion { } impl std::str::FromStr for CheckRunCreatedCheckRunConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -7663,19 +7931,23 @@ impl std::str::FromStr for CheckRunCreatedCheckRunConclusion { } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCreatedCheckRunConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7727,11 +7999,11 @@ impl std::convert::TryFrom for CheckRunCreatedCheckRunConclusion { #[serde(deny_unknown_fields)] pub struct CheckRunCreatedCheckRunOutput { pub annotations_count: i64, - pub annotations_url: String, - pub summary: Option, - pub text: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub title: Option, + pub annotations_url: ::std::string::String, + pub summary: ::std::option::Option<::std::string::String>, + pub text: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCreatedCheckRunOutput> for CheckRunCreatedCheckRunOutput { fn from(value: &CheckRunCreatedCheckRunOutput) -> Self { @@ -7790,7 +8062,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunStatus { } impl std::str::FromStr for CheckRunCreatedCheckRunStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), @@ -7801,19 +8073,23 @@ impl std::str::FromStr for CheckRunCreatedCheckRunStatus { } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunCreatedCheckRunStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7839,8 +8115,8 @@ impl std::convert::TryFrom for CheckRunCreatedCheckRunStatus { #[serde(deny_unknown_fields)] pub struct CheckRunCreatedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub identifier: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCreatedRequestedAction> for CheckRunCreatedRequestedAction { fn from(value: &CheckRunCreatedRequestedAction) -> Self { @@ -7921,16 +8197,16 @@ impl From<&CheckRunCreatedRequestedAction> for CheckRunCreatedRequestedAction { #[serde(deny_unknown_fields)] pub struct CheckRunDeployment { pub created_at: chrono::DateTime, - pub description: Option, - pub environment: String, + pub description: ::std::option::Option<::std::string::String>, + pub environment: ::std::string::String, pub id: i64, - pub node_id: String, - pub original_environment: String, - pub repository_url: String, - pub statuses_url: String, - pub task: String, + pub node_id: ::std::string::String, + pub original_environment: ::std::string::String, + pub repository_url: ::std::string::String, + pub statuses_url: ::std::string::String, + pub task: ::std::string::String, pub updated_at: chrono::DateTime, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunDeployment> for CheckRunDeployment { fn from(value: &CheckRunDeployment) -> Self { @@ -8072,7 +8348,7 @@ pub struct CheckRunPullRequest { pub head: CheckRunPullRequestHead, pub id: i64, pub number: i64, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunPullRequest> for CheckRunPullRequest { fn from(value: &CheckRunPullRequest) -> Self { @@ -8110,9 +8386,9 @@ impl From<&CheckRunPullRequest> for CheckRunPullRequest { #[serde(deny_unknown_fields)] pub struct CheckRunPullRequestBase { #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repo: RepoRef, - pub sha: String, + pub sha: ::std::string::String, } impl From<&CheckRunPullRequestBase> for CheckRunPullRequestBase { fn from(value: &CheckRunPullRequestBase) -> Self { @@ -8150,9 +8426,9 @@ impl From<&CheckRunPullRequestBase> for CheckRunPullRequestBase { #[serde(deny_unknown_fields)] pub struct CheckRunPullRequestHead { #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repo: RepoRef, - pub sha: String, + pub sha: ::std::string::String, } impl From<&CheckRunPullRequestHead> for CheckRunPullRequestHead { fn from(value: &CheckRunPullRequestHead) -> Self { @@ -8450,10 +8726,10 @@ impl From<&CheckRunPullRequestHead> for CheckRunPullRequestHead { pub struct CheckRunRequestedAction { pub action: CheckRunRequestedActionAction, pub check_run: CheckRunRequestedActionCheckRun, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub requested_action: CheckRunRequestedActionRequestedAction, pub sender: User, @@ -8506,7 +8782,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionAction { } impl std::str::FromStr for CheckRunRequestedActionAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "requested_action" => Ok(Self::RequestedAction), _ => Err("invalid value".into()), @@ -8515,19 +8791,23 @@ impl std::str::FromStr for CheckRunRequestedActionAction { } impl std::convert::TryFrom<&str> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRequestedActionAction { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRequestedActionAction { +impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -8779,28 +9059,28 @@ pub struct CheckRunRequestedActionCheckRun { pub app: App, pub check_suite: CheckRunRequestedActionCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub completed_at: Option, + pub completed_at: ::std::option::Option<::std::string::String>, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] - pub conclusion: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub details_url: Option, - pub external_id: String, + pub conclusion: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub details_url: ::std::option::Option<::std::string::String>, + pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] - pub head_sha: String, - pub html_url: String, + pub head_sha: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check run."] - pub name: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunRequestedActionCheckRunOutput, - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub started_at: String, + pub started_at: ::std::string::String, #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] pub status: CheckRunRequestedActionCheckRunStatus, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunRequestedActionCheckRun> for CheckRunRequestedActionCheckRun { fn from(value: &CheckRunRequestedActionCheckRun) -> Self { @@ -8915,25 +9195,25 @@ impl From<&CheckRunRequestedActionCheckRun> for CheckRunRequestedActionCheckRun #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionCheckRunCheckSuite { - pub after: Option, + pub after: ::std::option::Option<::std::string::String>, pub app: App, - pub before: Option, - pub conclusion: Option, + pub before: ::std::option::Option<::std::string::String>, + pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployment: Option, - pub head_branch: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployment: ::std::option::Option, + pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, pub status: CheckRunRequestedActionCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunRequestedActionCheckRunCheckSuite> for CheckRunRequestedActionCheckRunCheckSuite @@ -9011,7 +9291,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunCheckSuiteConclusion } impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -9026,19 +9306,27 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> + for CheckRunRequestedActionCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRequestedActionCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> + for CheckRunRequestedActionCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9095,7 +9383,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunCheckSuiteStatus { } impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), @@ -9106,19 +9394,27 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> + for CheckRunRequestedActionCheckRunCheckSuiteStatus +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRequestedActionCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> + for CheckRunRequestedActionCheckRunCheckSuiteStatus +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9196,7 +9492,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunConclusion { } impl std::str::FromStr for CheckRunRequestedActionCheckRunConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -9212,19 +9508,23 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunConclusion { } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRequestedActionCheckRunConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9276,11 +9576,11 @@ impl std::convert::TryFrom for CheckRunRequestedActionCheckRunConclusion #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionCheckRunOutput { pub annotations_count: i64, - pub annotations_url: String, - pub summary: Option, - pub text: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub title: Option, + pub annotations_url: ::std::string::String, + pub summary: ::std::option::Option<::std::string::String>, + pub text: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRequestedActionCheckRunOutput> for CheckRunRequestedActionCheckRunOutput { fn from(value: &CheckRunRequestedActionCheckRunOutput) -> Self { @@ -9339,7 +9639,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunStatus { } impl std::str::FromStr for CheckRunRequestedActionCheckRunStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), @@ -9350,19 +9650,23 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunStatus { } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRequestedActionCheckRunStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9388,8 +9692,8 @@ impl std::convert::TryFrom for CheckRunRequestedActionCheckRunStatus { #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub identifier: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRequestedActionRequestedAction> for CheckRunRequestedActionRequestedAction { fn from(value: &CheckRunRequestedActionRequestedAction) -> Self { @@ -9678,14 +9982,14 @@ impl From<&CheckRunRequestedActionRequestedAction> for CheckRunRequestedActionRe pub struct CheckRunRerequested { pub action: CheckRunRerequestedAction, pub check_run: CheckRunRerequestedCheckRun, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, #[doc = "The action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub requested_action: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub requested_action: ::std::option::Option, pub sender: User, } impl From<&CheckRunRerequested> for CheckRunRerequested { @@ -9736,7 +10040,7 @@ impl ::std::fmt::Display for CheckRunRerequestedAction { } impl std::str::FromStr for CheckRunRerequestedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "rerequested" => Ok(Self::Rerequested), _ => Err("invalid value".into()), @@ -9745,19 +10049,23 @@ impl std::str::FromStr for CheckRunRerequestedAction { } impl std::convert::TryFrom<&str> for CheckRunRerequestedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRerequestedAction { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRerequestedAction { +impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9998,28 +10306,28 @@ pub struct CheckRunRerequestedCheckRun { pub app: App, pub check_suite: CheckRunRerequestedCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub completed_at: String, + pub completed_at: ::std::string::String, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."] - pub conclusion: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub details_url: Option, - pub external_id: String, + pub conclusion: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub details_url: ::std::option::Option<::std::string::String>, + pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] - pub head_sha: String, - pub html_url: String, + pub head_sha: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check."] - pub name: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunRerequestedCheckRunOutput, - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub started_at: String, + pub started_at: ::std::string::String, #[doc = "The phase of the lifecycle that the check is currently in."] pub status: CheckRunRerequestedCheckRunStatus, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunRerequestedCheckRun> for CheckRunRerequestedCheckRun { fn from(value: &CheckRunRerequestedCheckRun) -> Self { @@ -10128,25 +10436,25 @@ impl From<&CheckRunRerequestedCheckRun> for CheckRunRerequestedCheckRun { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedCheckRunCheckSuite { - pub after: Option, + pub after: ::std::option::Option<::std::string::String>, pub app: App, - pub before: Option, + pub before: ::std::option::Option<::std::string::String>, pub conclusion: CheckRunRerequestedCheckRunCheckSuiteConclusion, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployment: Option, - pub head_branch: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployment: ::std::option::Option, + pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, pub status: CheckRunRerequestedCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, - pub url: String, + pub url: ::std::string::String, } impl From<&CheckRunRerequestedCheckRunCheckSuite> for CheckRunRerequestedCheckRunCheckSuite { fn from(value: &CheckRunRerequestedCheckRunCheckSuite) -> Self { @@ -10222,7 +10530,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunCheckSuiteConclusion { } impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -10237,19 +10545,27 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> + for CheckRunRerequestedCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRerequestedCheckRunCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> + for CheckRunRerequestedCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10298,7 +10614,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunCheckSuiteStatus { } impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), @@ -10307,19 +10623,23 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRerequestedCheckRunCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10395,7 +10715,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunConclusion { } impl std::str::FromStr for CheckRunRerequestedCheckRunConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -10411,19 +10731,23 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunConclusion { } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRerequestedCheckRunConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10475,11 +10799,11 @@ impl std::convert::TryFrom for CheckRunRerequestedCheckRunConclusion { #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedCheckRunOutput { pub annotations_count: i64, - pub annotations_url: String, - pub summary: Option, - pub text: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub title: Option, + pub annotations_url: ::std::string::String, + pub summary: ::std::option::Option<::std::string::String>, + pub text: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRerequestedCheckRunOutput> for CheckRunRerequestedCheckRunOutput { fn from(value: &CheckRunRerequestedCheckRunOutput) -> Self { @@ -10530,7 +10854,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunStatus { } impl std::str::FromStr for CheckRunRerequestedCheckRunStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), @@ -10539,19 +10863,23 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunStatus { } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckRunRerequestedCheckRunStatus { +impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10577,8 +10905,8 @@ impl std::convert::TryFrom for CheckRunRerequestedCheckRunStatus { #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub identifier: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRerequestedRequestedAction> for CheckRunRerequestedRequestedAction { fn from(value: &CheckRunRerequestedRequestedAction) -> Self { @@ -10744,10 +11072,10 @@ impl From<&CheckRunRerequestedRequestedAction> for CheckRunRerequestedRequestedA pub struct CheckSuiteCompleted { pub action: CheckSuiteCompletedAction, pub check_suite: CheckSuiteCompletedCheckSuite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -10799,7 +11127,7 @@ impl ::std::fmt::Display for CheckSuiteCompletedAction { } impl std::str::FromStr for CheckSuiteCompletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), @@ -10808,19 +11136,23 @@ impl std::str::FromStr for CheckSuiteCompletedAction { } impl std::convert::TryFrom<&str> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteCompletedAction { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteCompletedAction { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10949,28 +11281,28 @@ impl std::convert::TryFrom for CheckSuiteCompletedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteCompletedCheckSuite { - pub after: String, + pub after: ::std::string::String, pub app: App, - pub before: Option, - pub check_runs_url: String, + pub before: ::std::option::Option<::std::string::String>, + pub check_runs_url: ::std::string::String, #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."] - pub conclusion: Option, + pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, #[doc = "The head branch name the changes are on."] - pub head_branch: Option, + pub head_branch: ::std::option::Option<::std::string::String>, pub head_commit: CommitSimple, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, pub id: i64, pub latest_check_runs_count: i64, - pub node_id: String, + pub node_id: ::std::string::String, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] - pub status: Option, + pub status: ::std::option::Option, pub updated_at: chrono::DateTime, #[doc = "URL that points to the check suite API resource."] - pub url: String, + pub url: ::std::string::String, } impl From<&CheckSuiteCompletedCheckSuite> for CheckSuiteCompletedCheckSuite { fn from(value: &CheckSuiteCompletedCheckSuite) -> Self { @@ -11045,7 +11377,7 @@ impl ::std::fmt::Display for CheckSuiteCompletedCheckSuiteConclusion { } impl std::str::FromStr for CheckSuiteCompletedCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -11060,19 +11392,23 @@ impl std::str::FromStr for CheckSuiteCompletedCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteCompletedCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteCompletedCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11132,7 +11468,7 @@ impl ::std::fmt::Display for CheckSuiteCompletedCheckSuiteStatus { } impl std::str::FromStr for CheckSuiteCompletedCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "requested" => Ok(Self::Requested), "in_progress" => Ok(Self::InProgress), @@ -11144,19 +11480,23 @@ impl std::str::FromStr for CheckSuiteCompletedCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteCompletedCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteCompletedCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11366,10 +11706,10 @@ impl From for CheckSuiteEvent { pub struct CheckSuiteRequested { pub action: CheckSuiteRequestedAction, pub check_suite: CheckSuiteRequestedCheckSuite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -11421,7 +11761,7 @@ impl ::std::fmt::Display for CheckSuiteRequestedAction { } impl std::str::FromStr for CheckSuiteRequestedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "requested" => Ok(Self::Requested), _ => Err("invalid value".into()), @@ -11430,19 +11770,23 @@ impl std::str::FromStr for CheckSuiteRequestedAction { } impl std::convert::TryFrom<&str> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteRequestedAction { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteRequestedAction { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11571,28 +11915,28 @@ impl std::convert::TryFrom for CheckSuiteRequestedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteRequestedCheckSuite { - pub after: String, + pub after: ::std::string::String, pub app: App, - pub before: Option, - pub check_runs_url: String, + pub before: ::std::option::Option<::std::string::String>, + pub check_runs_url: ::std::string::String, #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] - pub conclusion: Option, + pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, #[doc = "The head branch name the changes are on."] - pub head_branch: Option, + pub head_branch: ::std::option::Option<::std::string::String>, pub head_commit: CommitSimple, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, pub id: i64, pub latest_check_runs_count: i64, - pub node_id: String, + pub node_id: ::std::string::String, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] - pub status: Option, + pub status: ::std::option::Option, pub updated_at: chrono::DateTime, #[doc = "URL that points to the check suite API resource."] - pub url: String, + pub url: ::std::string::String, } impl From<&CheckSuiteRequestedCheckSuite> for CheckSuiteRequestedCheckSuite { fn from(value: &CheckSuiteRequestedCheckSuite) -> Self { @@ -11667,7 +12011,7 @@ impl ::std::fmt::Display for CheckSuiteRequestedCheckSuiteConclusion { } impl std::str::FromStr for CheckSuiteRequestedCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -11682,19 +12026,23 @@ impl std::str::FromStr for CheckSuiteRequestedCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteRequestedCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteRequestedCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11754,7 +12102,7 @@ impl ::std::fmt::Display for CheckSuiteRequestedCheckSuiteStatus { } impl std::str::FromStr for CheckSuiteRequestedCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "requested" => Ok(Self::Requested), "in_progress" => Ok(Self::InProgress), @@ -11766,19 +12114,23 @@ impl std::str::FromStr for CheckSuiteRequestedCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteRequestedCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteRequestedCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11941,10 +12293,10 @@ impl std::convert::TryFrom for CheckSuiteRequestedCheckSuiteStatus { pub struct CheckSuiteRerequested { pub action: CheckSuiteRerequestedAction, pub check_suite: CheckSuiteRerequestedCheckSuite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -11996,7 +12348,7 @@ impl ::std::fmt::Display for CheckSuiteRerequestedAction { } impl std::str::FromStr for CheckSuiteRerequestedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "rerequested" => Ok(Self::Rerequested), _ => Err("invalid value".into()), @@ -12005,19 +12357,23 @@ impl std::str::FromStr for CheckSuiteRerequestedAction { } impl std::convert::TryFrom<&str> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteRerequestedAction { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteRerequestedAction { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12146,28 +12502,28 @@ impl std::convert::TryFrom for CheckSuiteRerequestedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteRerequestedCheckSuite { - pub after: String, + pub after: ::std::string::String, pub app: App, - pub before: Option, - pub check_runs_url: String, + pub before: ::std::option::Option<::std::string::String>, + pub check_runs_url: ::std::string::String, #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] - pub conclusion: Option, + pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, #[doc = "The head branch name the changes are on."] - pub head_branch: Option, + pub head_branch: ::std::option::Option<::std::string::String>, pub head_commit: CommitSimple, #[doc = "The SHA of the head commit that is being checked."] - pub head_sha: String, + pub head_sha: ::std::string::String, pub id: i64, pub latest_check_runs_count: i64, - pub node_id: String, + pub node_id: ::std::string::String, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] - pub pull_requests: Vec, + pub pull_requests: ::std::vec::Vec, #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] - pub status: Option, + pub status: ::std::option::Option, pub updated_at: chrono::DateTime, #[doc = "URL that points to the check suite API resource."] - pub url: String, + pub url: ::std::string::String, } impl From<&CheckSuiteRerequestedCheckSuite> for CheckSuiteRerequestedCheckSuite { fn from(value: &CheckSuiteRerequestedCheckSuite) -> Self { @@ -12244,7 +12600,7 @@ impl ::std::fmt::Display for CheckSuiteRerequestedCheckSuiteConclusion { } impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteConclusion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), @@ -12259,19 +12615,23 @@ impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteConclusion { } impl std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteRerequestedCheckSuiteConclusion { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteRerequestedCheckSuiteConclusion { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12331,7 +12691,7 @@ impl ::std::fmt::Display for CheckSuiteRerequestedCheckSuiteStatus { } impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "requested" => Ok(Self::Requested), "in_progress" => Ok(Self::InProgress), @@ -12343,19 +12703,23 @@ impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteStatus { } impl std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CheckSuiteRerequestedCheckSuiteStatus { +impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CheckSuiteRerequestedCheckSuiteStatus { +impl std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12555,14 +12919,14 @@ pub struct CodeScanningAlertAppearedInBranch { pub action: CodeScanningAlertAppearedInBranchAction, pub alert: CodeScanningAlertAppearedInBranchAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] - pub commit_oid: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub commit_oid: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repository: Repository, pub sender: GithubOrg, } @@ -12614,7 +12978,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAction { } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "appeared_in_branch" => Ok(Self::AppearedInBranch), _ => Err("invalid value".into()), @@ -12623,19 +12987,23 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAction { } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAction { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAction { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12793,22 +13161,23 @@ pub struct CodeScanningAlertAppearedInBranchAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub dismissed_at: Option>, - pub dismissed_by: Option, + pub dismissed_at: ::std::option::Option>, + pub dismissed_by: ::std::option::Option, #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] - pub dismissed_reason: Option, + pub dismissed_reason: + ::std::option::Option, #[doc = "The GitHub URL of the alert resource."] - pub html_url: String, - pub instances: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub most_recent_instance: Option, + pub html_url: ::std::string::String, + pub instances: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertAppearedInBranchAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertAppearedInBranchAlertState, pub tool: CodeScanningAlertAppearedInBranchAlertTool, - pub url: String, + pub url: ::std::string::String, } impl From<&CodeScanningAlertAppearedInBranchAlert> for CodeScanningAlertAppearedInBranchAlert { fn from(value: &CodeScanningAlertAppearedInBranchAlert) -> Self { @@ -12869,7 +13238,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertDismissedReas } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "false positive" => Ok(Self::FalsePositive), "won't fix" => Ok(Self::WontFix), @@ -12880,19 +13249,27 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertDismissedReason } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAlertDismissedReason { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertAppearedInBranchAlertDismissedReason +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertDismissedReason { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertAppearedInBranchAlertDismissedReason +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12940,11 +13317,11 @@ impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertDis #[serde(deny_unknown_fields)] pub struct CodeScanningAlertAppearedInBranchAlertRule { #[doc = "A short description of the rule used to detect the alert."] - pub description: String, + pub description: ::std::string::String, #[doc = "A unique identifier for the rule used to detect the alert."] - pub id: String, + pub id: ::std::string::String, #[doc = "The severity of the alert."] - pub severity: Option, + pub severity: ::std::option::Option, } impl From<&CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule @@ -13011,7 +13388,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertRuleSeverity } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), @@ -13023,19 +13400,27 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertRuleSeverity { } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertAppearedInBranchAlertRuleSeverity +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertRuleSeverity { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertAppearedInBranchAlertRuleSeverity +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13093,7 +13478,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertState { } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), @@ -13104,19 +13489,23 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertState { } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAlertState { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertState { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13152,9 +13541,9 @@ impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertSta #[serde(deny_unknown_fields)] pub struct CodeScanningAlertAppearedInBranchAlertTool { #[doc = "The name of the tool used to generate the code scanning analysis alert."] - pub name: String, + pub name: ::std::string::String, #[doc = "The version of the tool used to detect the alert."] - pub version: Option, + pub version: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertAppearedInBranchAlertTool> for CodeScanningAlertAppearedInBranchAlertTool @@ -13381,14 +13770,14 @@ pub struct CodeScanningAlertClosedByUser { pub action: CodeScanningAlertClosedByUserAction, pub alert: CodeScanningAlertClosedByUserAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] - pub commit_oid: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub commit_oid: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repository: Repository, pub sender: User, } @@ -13440,7 +13829,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAction { } impl std::str::FromStr for CodeScanningAlertClosedByUserAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "closed_by_user" => Ok(Self::ClosedByUser), _ => Err("invalid value".into()), @@ -13449,19 +13838,23 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAction { } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAction { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertClosedByUserAction { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13644,19 +14037,19 @@ pub struct CodeScanningAlertClosedByUserAlert { pub dismissed_at: chrono::DateTime, pub dismissed_by: User, #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] - pub dismissed_reason: Option, + pub dismissed_reason: ::std::option::Option, #[doc = "The GitHub URL of the alert resource."] - pub html_url: String, - pub instances: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub most_recent_instance: Option, + pub html_url: ::std::string::String, + pub instances: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertClosedByUserAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertClosedByUserAlertState, pub tool: CodeScanningAlertClosedByUserAlertTool, - pub url: String, + pub url: ::std::string::String, } impl From<&CodeScanningAlertClosedByUserAlert> for CodeScanningAlertClosedByUserAlert { fn from(value: &CodeScanningAlertClosedByUserAlert) -> Self { @@ -13718,7 +14111,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertDismissedReason { } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertDismissedReason { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "false positive" => Ok(Self::FalsePositive), "won't fix" => Ok(Self::WontFix), @@ -13729,19 +14122,27 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertDismissedReason { } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertDismissedReason { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertClosedByUserAlertDismissedReason +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertDismissedReason { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertClosedByUserAlertDismissedReason +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13778,20 +14179,20 @@ impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertDismiss #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] - pub analysis_key: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub classifications: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub commit_sha: Option, + pub analysis_key: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub classifications: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] - pub environment: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub location: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub message: Option, + pub environment: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub location: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub state: CodeScanningAlertClosedByUserAlertInstancesItemState, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItem> @@ -13832,16 +14233,16 @@ impl From<&CodeScanningAlertClosedByUserAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_line: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub path: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_line: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_line: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub path: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> for CodeScanningAlertClosedByUserAlertInstancesItemLocation @@ -13869,8 +14270,8 @@ impl From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub text: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemMessage> for CodeScanningAlertClosedByUserAlertInstancesItemMessage @@ -13924,7 +14325,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertInstancesItemStat } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertInstancesItemState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "dismissed" => Ok(Self::Dismissed), _ => Err("invalid value".into()), @@ -13933,19 +14334,27 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertInstancesItemState } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertInstancesItemState { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertClosedByUserAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertInstancesItemState { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertClosedByUserAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14005,17 +14414,17 @@ impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertInstanc #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertRule { #[doc = "A short description of the rule used to detect the alert."] - pub description: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub full_description: Option, + pub description: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] - pub severity: Option, + pub severity: ::std::option::Option, #[serde(default)] pub tags: (), } @@ -14082,7 +14491,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertRuleSeverity { } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertRuleSeverity { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), @@ -14094,19 +14503,27 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertRuleSeverity { } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertRuleSeverity { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertClosedByUserAlertRuleSeverity +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertRuleSeverity { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertClosedByUserAlertRuleSeverity +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14154,7 +14571,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertState { } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "dismissed" => Ok(Self::Dismissed), _ => Err("invalid value".into()), @@ -14163,19 +14580,23 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertState { } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertState { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertState { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14216,12 +14637,12 @@ impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertState { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertTool { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub guid: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] - pub name: String, + pub name: ::std::string::String, #[doc = "The version of the tool used to detect the alert."] - pub version: Option, + pub version: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertClosedByUserAlertTool> for CodeScanningAlertClosedByUserAlertTool { fn from(value: &CodeScanningAlertClosedByUserAlertTool) -> Self { @@ -14441,14 +14862,14 @@ pub struct CodeScanningAlertCreated { pub action: CodeScanningAlertCreatedAction, pub alert: CodeScanningAlertCreatedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] - pub commit_oid: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub commit_oid: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repository: Repository, pub sender: GithubOrg, } @@ -14500,7 +14921,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAction { } impl std::str::FromStr for CodeScanningAlertCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -14509,19 +14930,23 @@ impl std::str::FromStr for CodeScanningAlertCreatedAction { } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertCreatedAction { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14701,17 +15126,17 @@ pub struct CodeScanningAlertCreatedAlert { #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: (), #[doc = "The GitHub URL of the alert resource."] - pub html_url: String, - pub instances: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub most_recent_instance: Option, + pub html_url: ::std::string::String, + pub instances: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertCreatedAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertCreatedAlertState, pub tool: CodeScanningAlertCreatedAlertTool, - pub url: String, + pub url: ::std::string::String, } impl From<&CodeScanningAlertCreatedAlert> for CodeScanningAlertCreatedAlert { fn from(value: &CodeScanningAlertCreatedAlert) -> Self { @@ -14752,20 +15177,20 @@ impl From<&CodeScanningAlertCreatedAlert> for CodeScanningAlertCreatedAlert { #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] - pub analysis_key: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub classifications: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub commit_sha: Option, + pub analysis_key: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub classifications: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] - pub environment: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub location: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub message: Option, + pub environment: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub location: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub state: CodeScanningAlertCreatedAlertInstancesItemState, } impl From<&CodeScanningAlertCreatedAlertInstancesItem> @@ -14806,16 +15231,16 @@ impl From<&CodeScanningAlertCreatedAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_line: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub path: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_line: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_line: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub path: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertCreatedAlertInstancesItemLocation> for CodeScanningAlertCreatedAlertInstancesItemLocation @@ -14843,8 +15268,8 @@ impl From<&CodeScanningAlertCreatedAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub text: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertCreatedAlertInstancesItemMessage> for CodeScanningAlertCreatedAlertInstancesItemMessage @@ -14902,7 +15327,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAlertInstancesItemState { } impl std::str::FromStr for CodeScanningAlertCreatedAlertInstancesItemState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), @@ -14912,19 +15337,27 @@ impl std::str::FromStr for CodeScanningAlertCreatedAlertInstancesItemState { } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAlertInstancesItemState { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertCreatedAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertCreatedAlertInstancesItemState { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertCreatedAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14984,17 +15417,17 @@ impl std::convert::TryFrom for CodeScanningAlertCreatedAlertInstancesIte #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertRule { #[doc = "A short description of the rule used to detect the alert."] - pub description: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub full_description: Option, + pub description: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] - pub severity: Option, + pub severity: ::std::option::Option, #[serde(default)] pub tags: (), } @@ -15061,7 +15494,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAlertRuleSeverity { } impl std::str::FromStr for CodeScanningAlertCreatedAlertRuleSeverity { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), @@ -15073,19 +15506,23 @@ impl std::str::FromStr for CodeScanningAlertCreatedAlertRuleSeverity { } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAlertRuleSeverity { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertCreatedAlertRuleSeverity { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -15137,7 +15574,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAlertState { } impl std::str::FromStr for CodeScanningAlertCreatedAlertState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), @@ -15147,19 +15584,23 @@ impl std::str::FromStr for CodeScanningAlertCreatedAlertState { } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAlertState { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertCreatedAlertState { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -15200,12 +15641,12 @@ impl std::convert::TryFrom for CodeScanningAlertCreatedAlertState { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertTool { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub guid: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] - pub name: String, + pub name: ::std::string::String, #[doc = "The version of the tool used to detect the alert."] - pub version: Option, + pub version: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertCreatedAlertTool> for CodeScanningAlertCreatedAlertTool { fn from(value: &CodeScanningAlertCreatedAlertTool) -> Self { @@ -15521,14 +15962,14 @@ pub struct CodeScanningAlertFixed { pub action: CodeScanningAlertFixedAction, pub alert: CodeScanningAlertFixedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] - pub commit_oid: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub commit_oid: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repository: Repository, pub sender: GithubOrg, } @@ -15580,7 +16021,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAction { } impl std::str::FromStr for CodeScanningAlertFixedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), @@ -15589,19 +16030,23 @@ impl std::str::FromStr for CodeScanningAlertFixedAction { } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAction { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertFixedAction { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -15798,24 +16243,24 @@ pub struct CodeScanningAlertFixedAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] - pub dismissed_at: Option>, - pub dismissed_by: Option, + pub dismissed_at: ::std::option::Option>, + pub dismissed_by: ::std::option::Option, #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] - pub dismissed_reason: Option, + pub dismissed_reason: ::std::option::Option, #[doc = "The GitHub URL of the alert resource."] - pub html_url: String, - pub instances: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub instances_url: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub most_recent_instance: Option, + pub html_url: ::std::string::String, + pub instances: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub instances_url: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertFixedAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertFixedAlertState, pub tool: CodeScanningAlertFixedAlertTool, - pub url: String, + pub url: ::std::string::String, } impl From<&CodeScanningAlertFixedAlert> for CodeScanningAlertFixedAlert { fn from(value: &CodeScanningAlertFixedAlert) -> Self { @@ -15876,7 +16321,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertDismissedReason { } impl std::str::FromStr for CodeScanningAlertFixedAlertDismissedReason { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "false positive" => Ok(Self::FalsePositive), "won't fix" => Ok(Self::WontFix), @@ -15887,19 +16332,23 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertDismissedReason { } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertDismissedReason { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertFixedAlertDismissedReason { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -15936,20 +16385,20 @@ impl std::convert::TryFrom for CodeScanningAlertFixedAlertDismissedReaso #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] - pub analysis_key: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub classifications: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub commit_sha: Option, + pub analysis_key: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub classifications: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] - pub environment: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub location: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub message: Option, + pub environment: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub location: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub state: CodeScanningAlertFixedAlertInstancesItemState, } impl From<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem { @@ -15988,16 +16437,16 @@ impl From<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedA #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_line: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub path: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_line: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_line: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub path: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertFixedAlertInstancesItemLocation> for CodeScanningAlertFixedAlertInstancesItemLocation @@ -16025,8 +16474,8 @@ impl From<&CodeScanningAlertFixedAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub text: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertFixedAlertInstancesItemMessage> for CodeScanningAlertFixedAlertInstancesItemMessage @@ -16080,7 +16529,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertInstancesItemState { } impl std::str::FromStr for CodeScanningAlertFixedAlertInstancesItemState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), @@ -16089,19 +16538,27 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertInstancesItemState { } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertInstancesItemState { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertFixedAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertFixedAlertInstancesItemState { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertFixedAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -16161,17 +16618,17 @@ impl std::convert::TryFrom for CodeScanningAlertFixedAlertInstancesItemS #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertRule { #[doc = "A short description of the rule used to detect the alert."] - pub description: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub full_description: Option, + pub description: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] - pub severity: Option, + pub severity: ::std::option::Option, #[serde(default)] pub tags: (), } @@ -16236,7 +16693,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertRuleSeverity { } impl std::str::FromStr for CodeScanningAlertFixedAlertRuleSeverity { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), @@ -16248,19 +16705,23 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertRuleSeverity { } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertRuleSeverity { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertFixedAlertRuleSeverity { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -16308,7 +16769,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertState { } impl std::str::FromStr for CodeScanningAlertFixedAlertState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), @@ -16317,19 +16778,23 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertState { } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertState { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertFixedAlertState { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -16370,12 +16835,12 @@ impl std::convert::TryFrom for CodeScanningAlertFixedAlertState { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertTool { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub guid: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] - pub name: String, + pub name: ::std::string::String, #[doc = "The version of the tool used to detect the alert."] - pub version: Option, + pub version: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertFixedAlertTool> for CodeScanningAlertFixedAlertTool { fn from(value: &CodeScanningAlertFixedAlertTool) -> Self { @@ -16595,14 +17060,14 @@ pub struct CodeScanningAlertReopened { pub action: CodeScanningAlertReopenedAction, pub alert: CodeScanningAlertReopenedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] - pub commit_oid: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub commit_oid: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repository: Repository, pub sender: GithubOrg, } @@ -16654,7 +17119,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAction { } impl std::str::FromStr for CodeScanningAlertReopenedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "reopened" => Ok(Self::Reopened), _ => Err("invalid value".into()), @@ -16663,19 +17128,23 @@ impl std::str::FromStr for CodeScanningAlertReopenedAction { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAction { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedAction { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -16855,17 +17324,17 @@ pub struct CodeScanningAlertReopenedAlert { #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: (), #[doc = "The GitHub URL of the alert resource."] - pub html_url: String, - pub instances: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub most_recent_instance: Option, + pub html_url: ::std::string::String, + pub instances: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertReopenedAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertReopenedAlertState, pub tool: CodeScanningAlertReopenedAlertTool, - pub url: String, + pub url: ::std::string::String, } impl From<&CodeScanningAlertReopenedAlert> for CodeScanningAlertReopenedAlert { fn from(value: &CodeScanningAlertReopenedAlert) -> Self { @@ -16905,20 +17374,20 @@ impl From<&CodeScanningAlertReopenedAlert> for CodeScanningAlertReopenedAlert { #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] - pub analysis_key: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub classifications: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub commit_sha: Option, + pub analysis_key: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub classifications: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] - pub environment: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub location: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub message: Option, + pub environment: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub location: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub state: CodeScanningAlertReopenedAlertInstancesItemState, } impl From<&CodeScanningAlertReopenedAlertInstancesItem> @@ -16959,16 +17428,16 @@ impl From<&CodeScanningAlertReopenedAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_line: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub path: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_line: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_line: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub path: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertReopenedAlertInstancesItemLocation> for CodeScanningAlertReopenedAlertInstancesItemLocation @@ -16996,8 +17465,8 @@ impl From<&CodeScanningAlertReopenedAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub text: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertReopenedAlertInstancesItemMessage> for CodeScanningAlertReopenedAlertInstancesItemMessage @@ -17051,7 +17520,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAlertInstancesItemState { } impl std::str::FromStr for CodeScanningAlertReopenedAlertInstancesItemState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), @@ -17060,19 +17529,27 @@ impl std::str::FromStr for CodeScanningAlertReopenedAlertInstancesItemState { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAlertInstancesItemState { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertReopenedAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedAlertInstancesItemState { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertReopenedAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17132,17 +17609,17 @@ impl std::convert::TryFrom for CodeScanningAlertReopenedAlertInstancesIt #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertRule { #[doc = "A short description of the rule used to detect the alert."] - pub description: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub full_description: Option, + pub description: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] - pub severity: Option, + pub severity: ::std::option::Option, #[serde(default)] pub tags: (), } @@ -17209,7 +17686,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAlertRuleSeverity { } impl std::str::FromStr for CodeScanningAlertReopenedAlertRuleSeverity { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), @@ -17221,19 +17698,23 @@ impl std::str::FromStr for CodeScanningAlertReopenedAlertRuleSeverity { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAlertRuleSeverity { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedAlertRuleSeverity { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17289,7 +17770,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAlertState { } impl std::str::FromStr for CodeScanningAlertReopenedAlertState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), @@ -17300,19 +17781,23 @@ impl std::str::FromStr for CodeScanningAlertReopenedAlertState { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAlertState { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedAlertState { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17353,12 +17838,12 @@ impl std::convert::TryFrom for CodeScanningAlertReopenedAlertState { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertTool { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub guid: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] - pub name: String, + pub name: ::std::string::String, #[doc = "The version of the tool used to detect the alert."] - pub version: Option, + pub version: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertReopenedAlertTool> for CodeScanningAlertReopenedAlertTool { fn from(value: &CodeScanningAlertReopenedAlertTool) -> Self { @@ -17558,14 +18043,14 @@ pub struct CodeScanningAlertReopenedByUser { pub action: CodeScanningAlertReopenedByUserAction, pub alert: CodeScanningAlertReopenedByUserAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] - pub commit_oid: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub commit_oid: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub repository: Repository, pub sender: User, } @@ -17617,7 +18102,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAction { } impl std::str::FromStr for CodeScanningAlertReopenedByUserAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "reopened_by_user" => Ok(Self::ReopenedByUser), _ => Err("invalid value".into()), @@ -17626,19 +18111,23 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAction { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAction { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAction { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17798,17 +18287,17 @@ pub struct CodeScanningAlertReopenedByUserAlert { #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: (), #[doc = "The GitHub URL of the alert resource."] - pub html_url: String, - pub instances: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub most_recent_instance: Option, + pub html_url: ::std::string::String, + pub instances: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertReopenedByUserAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertReopenedByUserAlertState, pub tool: CodeScanningAlertReopenedByUserAlertTool, - pub url: String, + pub url: ::std::string::String, } impl From<&CodeScanningAlertReopenedByUserAlert> for CodeScanningAlertReopenedByUserAlert { fn from(value: &CodeScanningAlertReopenedByUserAlert) -> Self { @@ -17848,20 +18337,20 @@ impl From<&CodeScanningAlertReopenedByUserAlert> for CodeScanningAlertReopenedBy #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] - pub analysis_key: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub classifications: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub commit_sha: Option, + pub analysis_key: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub classifications: ::std::vec::Vec<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] - pub environment: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub location: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub message: Option, + pub environment: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub location: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, pub state: CodeScanningAlertReopenedByUserAlertInstancesItemState, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItem> @@ -17902,16 +18391,16 @@ impl From<&CodeScanningAlertReopenedByUserAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end_line: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub path: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_column: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_line: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub end_line: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub path: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_column: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> for CodeScanningAlertReopenedByUserAlertInstancesItemLocation @@ -17939,8 +18428,8 @@ impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub text: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemMessage> for CodeScanningAlertReopenedByUserAlertInstancesItemMessage @@ -17994,7 +18483,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertInstancesItemSt } impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), @@ -18003,19 +18492,27 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertInstancesItemStat } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAlertInstancesItemState { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertReopenedByUserAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertInstancesItemState { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertReopenedByUserAlertInstancesItemState +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -18063,11 +18560,11 @@ impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertInsta #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertRule { #[doc = "A short description of the rule used to detect the alert."] - pub description: String, + pub description: ::std::string::String, #[doc = "A unique identifier for the rule used to detect the alert."] - pub id: String, + pub id: ::std::string::String, #[doc = "The severity of the alert."] - pub severity: Option, + pub severity: ::std::option::Option, } impl From<&CodeScanningAlertReopenedByUserAlertRule> for CodeScanningAlertReopenedByUserAlertRule { fn from(value: &CodeScanningAlertReopenedByUserAlertRule) -> Self { @@ -18132,7 +18629,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertRuleSeverity { } impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), @@ -18144,19 +18641,27 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertRuleSeverity { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAlertRuleSeverity { +impl std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertReopenedByUserAlertRuleSeverity +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertRuleSeverity { +impl std::convert::TryFrom<::std::string::String> + for CodeScanningAlertReopenedByUserAlertRuleSeverity +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -18206,7 +18711,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertState { } impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), @@ -18215,19 +18720,23 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertState { } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAlertState { +impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertState { +impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -18263,9 +18772,9 @@ impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertState #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertTool { #[doc = "The name of the tool used to generate the code scanning analysis alert."] - pub name: String, + pub name: ::std::string::String, #[doc = "The version of the tool used to detect the alert."] - pub version: Option, + pub version: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertReopenedByUserAlertTool> for CodeScanningAlertReopenedByUserAlertTool { fn from(value: &CodeScanningAlertReopenedByUserAlertTool) -> Self { @@ -18354,23 +18863,23 @@ impl From<&CodeScanningAlertReopenedByUserAlertTool> for CodeScanningAlertReopen #[serde(deny_unknown_fields)] pub struct Commit { #[doc = "An array of files added in the commit."] - pub added: Vec, + pub added: ::std::vec::Vec<::std::string::String>, pub author: Committer, pub committer: Committer, #[doc = "Whether this commit is distinct from any that have been pushed before."] pub distinct: bool, - pub id: String, + pub id: ::std::string::String, #[doc = "The commit message."] - pub message: String, + pub message: ::std::string::String, #[doc = "An array of files modified by the commit."] - pub modified: Vec, + pub modified: ::std::vec::Vec<::std::string::String>, #[doc = "An array of files removed in the commit."] - pub removed: Vec, + pub removed: ::std::vec::Vec<::std::string::String>, #[doc = "The ISO 8601 timestamp of the commit."] - pub timestamp: String, - pub tree_id: String, + pub timestamp: ::std::string::String, + pub tree_id: ::std::string::String, #[doc = "URL that points to the commit API resource."] - pub url: String, + pub url: ::std::string::String, } impl From<&Commit> for Commit { fn from(value: &Commit) -> Self { @@ -18503,10 +19012,10 @@ pub struct CommitCommentCreated { #[doc = "The action performed. Can be `created`."] pub action: CommitCommentCreatedAction, pub comment: CommitCommentCreatedComment, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -18559,7 +19068,7 @@ impl ::std::fmt::Display for CommitCommentCreatedAction { } impl std::str::FromStr for CommitCommentCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -18568,19 +19077,23 @@ impl std::str::FromStr for CommitCommentCreatedAction { } impl std::convert::TryFrom<&str> for CommitCommentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CommitCommentCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for CommitCommentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CommitCommentCreatedAction { +impl std::convert::TryFrom<::std::string::String> for CommitCommentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -18675,23 +19188,23 @@ impl std::convert::TryFrom for CommitCommentCreatedAction { pub struct CommitCommentCreatedComment { pub author_association: AuthorAssociation, #[doc = "The text of the comment."] - pub body: String, + pub body: ::std::string::String, #[doc = "The SHA of the commit to which the comment applies."] - pub commit_id: String, - pub created_at: String, - pub html_url: String, + pub commit_id: ::std::string::String, + pub created_at: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "The ID of the commit comment."] pub id: i64, #[doc = "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"] - pub line: Option, + pub line: ::std::option::Option, #[doc = "The node ID of the commit comment."] - pub node_id: String, + pub node_id: ::std::string::String, #[doc = "The relative path of the file to which the comment applies."] - pub path: Option, + pub path: ::std::option::Option<::std::string::String>, #[doc = "The line index in the diff to which the comment applies."] - pub position: Option, - pub updated_at: String, - pub url: String, + pub position: ::std::option::Option, + pub updated_at: ::std::string::String, + pub url: ::std::string::String, pub user: User, } impl From<&CommitCommentCreatedComment> for CommitCommentCreatedComment { @@ -18782,10 +19295,10 @@ impl From for CommitCommentEvent { pub struct CommitSimple { pub author: Committer, pub committer: Committer, - pub id: String, - pub message: String, - pub timestamp: String, - pub tree_id: String, + pub id: ::std::string::String, + pub message: ::std::string::String, + pub timestamp: ::std::string::String, + pub tree_id: ::std::string::String, } impl From<&CommitSimple> for CommitSimple { fn from(value: &CommitSimple) -> Self { @@ -18838,14 +19351,14 @@ impl From<&CommitSimple> for CommitSimple { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Committer { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub date: ::std::option::Option>, #[doc = "The git author's email address."] - pub email: Option, + pub email: ::std::option::Option<::std::string::String>, #[doc = "The git author's name."] - pub name: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub username: Option, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub username: ::std::option::Option<::std::string::String>, } impl From<&Committer> for Committer { fn from(value: &Committer) -> Self { @@ -18919,8 +19432,8 @@ pub struct ContentReferenceCreated { pub action: ContentReferenceCreatedAction, pub content_reference: ContentReferenceCreatedContentReference, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -18972,7 +19485,7 @@ impl ::std::fmt::Display for ContentReferenceCreatedAction { } impl std::str::FromStr for ContentReferenceCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -18981,19 +19494,23 @@ impl std::str::FromStr for ContentReferenceCreatedAction { } impl std::convert::TryFrom<&str> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for ContentReferenceCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for ContentReferenceCreatedAction { +impl std::convert::TryFrom<::std::string::String> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -19029,8 +19546,8 @@ impl std::convert::TryFrom for ContentReferenceCreatedAction { #[serde(deny_unknown_fields)] pub struct ContentReferenceCreatedContentReference { pub id: i64, - pub node_id: String, - pub reference: String, + pub node_id: ::std::string::String, + pub reference: ::std::string::String, } impl From<&ContentReferenceCreatedContentReference> for ContentReferenceCreatedContentReference { fn from(value: &ContentReferenceCreatedContentReference) -> Self { @@ -19142,18 +19659,18 @@ impl From for ContentReferenceEvent { #[serde(deny_unknown_fields)] pub struct CreateEvent { #[doc = "The repository's current description."] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, #[doc = "The name of the repository's default branch (usually `main`)."] - pub master_branch: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + pub master_branch: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The pusher type for the event. Can be either `user` or a deploy key."] - pub pusher_type: String, + pub pusher_type: ::std::string::String, #[doc = "The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, #[doc = "The type of Git ref object created in the repository. Can be either `branch` or `tag`."] pub ref_type: CreateEventRefType, pub repository: Repository, @@ -19212,7 +19729,7 @@ impl ::std::fmt::Display for CreateEventRefType { } impl std::str::FromStr for CreateEventRefType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "tag" => Ok(Self::Tag), "branch" => Ok(Self::Branch), @@ -19222,19 +19739,23 @@ impl std::str::FromStr for CreateEventRefType { } impl std::convert::TryFrom<&str> for CreateEventRefType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for CreateEventRefType { +impl std::convert::TryFrom<&::std::string::String> for CreateEventRefType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for CreateEventRefType { +impl std::convert::TryFrom<::std::string::String> for CreateEventRefType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -19292,15 +19813,15 @@ impl std::convert::TryFrom for CreateEventRefType { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeleteEvent { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The pusher type for the event. Can be either `user` or a deploy key."] - pub pusher_type: String, + pub pusher_type: ::std::string::String, #[doc = "The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource."] #[serde(rename = "ref")] - pub ref_: String, + pub ref_: ::std::string::String, #[doc = "The type of Git ref object deleted in the repository. Can be either `branch` or `tag`."] pub ref_type: DeleteEventRefType, pub repository: Repository, @@ -19359,7 +19880,7 @@ impl ::std::fmt::Display for DeleteEventRefType { } impl std::str::FromStr for DeleteEventRefType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "tag" => Ok(Self::Tag), "branch" => Ok(Self::Branch), @@ -19369,19 +19890,23 @@ impl std::str::FromStr for DeleteEventRefType { } impl std::convert::TryFrom<&str> for DeleteEventRefType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DeleteEventRefType { +impl std::convert::TryFrom<&::std::string::String> for DeleteEventRefType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DeleteEventRefType { +impl std::convert::TryFrom<::std::string::String> for DeleteEventRefType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -19466,11 +19991,11 @@ impl std::convert::TryFrom for DeleteEventRefType { #[serde(deny_unknown_fields)] pub struct DeployKeyCreated { pub action: DeployKeyCreatedAction, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, pub key: DeployKeyCreatedKey, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -19522,7 +20047,7 @@ impl ::std::fmt::Display for DeployKeyCreatedAction { } impl std::str::FromStr for DeployKeyCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -19531,19 +20056,23 @@ impl std::str::FromStr for DeployKeyCreatedAction { } impl std::convert::TryFrom<&str> for DeployKeyCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DeployKeyCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for DeployKeyCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DeployKeyCreatedAction { +impl std::convert::TryFrom<::std::string::String> for DeployKeyCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -19595,12 +20124,12 @@ impl std::convert::TryFrom for DeployKeyCreatedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeployKeyCreatedKey { - pub created_at: String, + pub created_at: ::std::string::String, pub id: i64, - pub key: String, + pub key: ::std::string::String, pub read_only: bool, - pub title: String, - pub url: String, + pub title: ::std::string::String, + pub url: ::std::string::String, pub verified: bool, } impl From<&DeployKeyCreatedKey> for DeployKeyCreatedKey { @@ -19689,11 +20218,11 @@ impl From<&DeployKeyCreatedKey> for DeployKeyCreatedKey { #[serde(deny_unknown_fields)] pub struct DeployKeyDeleted { pub action: DeployKeyDeletedAction, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, pub key: DeployKeyDeletedKey, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -19745,7 +20274,7 @@ impl ::std::fmt::Display for DeployKeyDeletedAction { } impl std::str::FromStr for DeployKeyDeletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), @@ -19754,19 +20283,23 @@ impl std::str::FromStr for DeployKeyDeletedAction { } impl std::convert::TryFrom<&str> for DeployKeyDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DeployKeyDeletedAction { +impl std::convert::TryFrom<&::std::string::String> for DeployKeyDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DeployKeyDeletedAction { +impl std::convert::TryFrom<::std::string::String> for DeployKeyDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -19818,12 +20351,12 @@ impl std::convert::TryFrom for DeployKeyDeletedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeployKeyDeletedKey { - pub created_at: String, + pub created_at: ::std::string::String, pub id: i64, - pub key: String, + pub key: ::std::string::String, pub read_only: bool, - pub title: String, - pub url: String, + pub title: ::std::string::String, + pub url: ::std::string::String, pub verified: bool, } impl From<&DeployKeyDeletedKey> for DeployKeyDeletedKey { @@ -20004,10 +20537,10 @@ impl From for DeployKeyEvent { pub struct DeploymentCreated { pub action: DeploymentCreatedAction, pub deployment: DeploymentCreatedDeployment, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, pub workflow: (), @@ -20061,7 +20594,7 @@ impl ::std::fmt::Display for DeploymentCreatedAction { } impl std::str::FromStr for DeploymentCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -20070,19 +20603,23 @@ impl std::str::FromStr for DeploymentCreatedAction { } impl std::convert::TryFrom<&str> for DeploymentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DeploymentCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for DeploymentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DeploymentCreatedAction { +impl std::convert::TryFrom<::std::string::String> for DeploymentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -20179,24 +20716,24 @@ impl std::convert::TryFrom for DeploymentCreatedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentCreatedDeployment { - pub created_at: String, + pub created_at: ::std::string::String, pub creator: User, pub description: (), - pub environment: String, + pub environment: ::std::string::String, pub id: i64, - pub node_id: String, - pub original_environment: String, + pub node_id: ::std::string::String, + pub original_environment: ::std::string::String, pub payload: DeploymentCreatedDeploymentPayload, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub performed_via_github_app: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub performed_via_github_app: ::std::option::Option, #[serde(rename = "ref")] - pub ref_: String, - pub repository_url: String, - pub sha: String, - pub statuses_url: String, - pub task: String, - pub updated_at: String, - pub url: String, + pub ref_: ::std::string::String, + pub repository_url: ::std::string::String, + pub sha: ::std::string::String, + pub statuses_url: ::std::string::String, + pub task: ::std::string::String, + pub updated_at: ::std::string::String, + pub url: ::std::string::String, } impl From<&DeploymentCreatedDeployment> for DeploymentCreatedDeployment { fn from(value: &DeploymentCreatedDeployment) -> Self { @@ -20462,10 +20999,10 @@ pub struct DeploymentStatusCreated { pub action: DeploymentStatusCreatedAction, pub deployment: DeploymentStatusCreatedDeployment, pub deployment_status: DeploymentStatusCreatedDeploymentStatus, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -20517,7 +21054,7 @@ impl ::std::fmt::Display for DeploymentStatusCreatedAction { } impl std::str::FromStr for DeploymentStatusCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -20526,19 +21063,23 @@ impl std::str::FromStr for DeploymentStatusCreatedAction { } impl std::convert::TryFrom<&str> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DeploymentStatusCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DeploymentStatusCreatedAction { +impl std::convert::TryFrom<::std::string::String> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -20636,23 +21177,23 @@ impl std::convert::TryFrom for DeploymentStatusCreatedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreatedDeployment { - pub created_at: String, + pub created_at: ::std::string::String, pub creator: User, pub description: (), - pub environment: String, + pub environment: ::std::string::String, pub id: i64, - pub node_id: String, - pub original_environment: String, + pub node_id: ::std::string::String, + pub original_environment: ::std::string::String, pub payload: DeploymentStatusCreatedDeploymentPayload, - pub performed_via_github_app: Option, + pub performed_via_github_app: ::std::option::Option, #[serde(rename = "ref")] - pub ref_: String, - pub repository_url: String, - pub sha: String, - pub statuses_url: String, - pub task: String, - pub updated_at: String, - pub url: String, + pub ref_: ::std::string::String, + pub repository_url: ::std::string::String, + pub sha: ::std::string::String, + pub statuses_url: ::std::string::String, + pub task: ::std::string::String, + pub updated_at: ::std::string::String, + pub url: ::std::string::String, } impl From<&DeploymentStatusCreatedDeployment> for DeploymentStatusCreatedDeployment { fn from(value: &DeploymentStatusCreatedDeployment) -> Self { @@ -20761,23 +21302,23 @@ impl From<&DeploymentStatusCreatedDeploymentPayload> for DeploymentStatusCreated #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreatedDeploymentStatus { - pub created_at: String, + pub created_at: ::std::string::String, pub creator: User, - pub deployment_url: String, + pub deployment_url: ::std::string::String, #[doc = "The optional human-readable description added to the status."] - pub description: String, - pub environment: String, + pub description: ::std::string::String, + pub environment: ::std::string::String, pub id: i64, - pub node_id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub performed_via_github_app: Option, - pub repository_url: String, + pub node_id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub performed_via_github_app: ::std::option::Option, + pub repository_url: ::std::string::String, #[doc = "The new state. Can be `pending`, `success`, `failure`, or `error`."] - pub state: String, + pub state: ::std::string::String, #[doc = "The optional link added to the status."] - pub target_url: String, - pub updated_at: String, - pub url: String, + pub target_url: ::std::string::String, + pub updated_at: ::std::string::String, + pub url: ::std::string::String, } impl From<&DeploymentStatusCreatedDeploymentStatus> for DeploymentStatusCreatedDeploymentStatus { fn from(value: &DeploymentStatusCreatedDeploymentStatus) -> Self { @@ -20982,23 +21523,23 @@ impl From for DeploymentStatusEvent { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Discussion { - pub active_lock_reason: Option, - pub answer_chosen_at: Option, - pub answer_chosen_by: Option, - pub answer_html_url: Option, + pub active_lock_reason: ::std::option::Option<::std::string::String>, + pub answer_chosen_at: ::std::option::Option<::std::string::String>, + pub answer_chosen_by: ::std::option::Option, + pub answer_html_url: ::std::option::Option<::std::string::String>, pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub category: DiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, pub locked: bool, - pub node_id: String, + pub node_id: ::std::string::String, pub number: i64, - pub repository_url: String, + pub repository_url: ::std::string::String, pub state: DiscussionState, - pub title: String, + pub title: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -21156,10 +21697,10 @@ pub struct DiscussionAnswered { pub action: DiscussionAnsweredAction, pub answer: DiscussionAnsweredAnswer, pub discussion: DiscussionAnsweredDiscussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -21211,7 +21752,7 @@ impl ::std::fmt::Display for DiscussionAnsweredAction { } impl std::str::FromStr for DiscussionAnsweredAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "answered" => Ok(Self::Answered), _ => Err("invalid value".into()), @@ -21220,19 +21761,23 @@ impl std::str::FromStr for DiscussionAnsweredAction { } impl std::convert::TryFrom<&str> for DiscussionAnsweredAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionAnsweredAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionAnsweredAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionAnsweredAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -21305,15 +21850,15 @@ impl std::convert::TryFrom for DiscussionAnsweredAction { #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredAnswer { pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub child_comment_count: i64, pub created_at: chrono::DateTime, pub discussion_id: i64, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, - pub node_id: String, + pub node_id: ::std::string::String, pub parent_id: (), - pub repository_url: String, + pub repository_url: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -21377,23 +21922,23 @@ impl From<&DiscussionAnsweredAnswer> for DiscussionAnsweredAnswer { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussion { - pub active_lock_reason: Option, + pub active_lock_reason: ::std::option::Option<::std::string::String>, pub answer_chosen_at: chrono::DateTime, pub answer_chosen_by: DiscussionAnsweredDiscussionAnswerChosenBy, - pub answer_html_url: String, + pub answer_html_url: ::std::string::String, pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub category: DiscussionAnsweredDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, pub locked: bool, - pub node_id: String, + pub node_id: ::std::string::String, pub number: i64, - pub repository_url: String, + pub repository_url: ::std::string::String, pub state: DiscussionAnsweredDiscussionState, - pub title: String, + pub title: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -21530,29 +22075,29 @@ impl From<&DiscussionAnsweredDiscussion> for DiscussionAnsweredDiscussion { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussionAnswerChosenBy { - pub avatar_url: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub email: Option, - pub events_url: String, - pub followers_url: String, - pub following_url: String, - pub gists_url: String, - pub gravatar_id: String, - pub html_url: String, + pub avatar_url: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub email: ::std::option::Option<::std::string::String>, + pub events_url: ::std::string::String, + pub followers_url: ::std::string::String, + pub following_url: ::std::string::String, + pub gists_url: ::std::string::String, + pub gravatar_id: ::std::string::String, + pub html_url: ::std::string::String, pub id: i64, - pub login: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, - pub node_id: String, - pub organizations_url: String, - pub received_events_url: String, - pub repos_url: String, + pub login: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, + pub node_id: ::std::string::String, + pub organizations_url: ::std::string::String, + pub received_events_url: ::std::string::String, + pub repos_url: ::std::string::String, pub site_admin: bool, - pub starred_url: String, - pub subscriptions_url: String, + pub starred_url: ::std::string::String, + pub subscriptions_url: ::std::string::String, #[serde(rename = "type")] pub type_: DiscussionAnsweredDiscussionAnswerChosenByType, - pub url: String, + pub url: ::std::string::String, } impl From<&DiscussionAnsweredDiscussionAnswerChosenBy> for DiscussionAnsweredDiscussionAnswerChosenBy @@ -21611,7 +22156,7 @@ impl ::std::fmt::Display for DiscussionAnsweredDiscussionAnswerChosenByType { } impl std::str::FromStr for DiscussionAnsweredDiscussionAnswerChosenByType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Bot" => Ok(Self::Bot), "User" => Ok(Self::User), @@ -21622,19 +22167,27 @@ impl std::str::FromStr for DiscussionAnsweredDiscussionAnswerChosenByType { } impl std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionAnsweredDiscussionAnswerChosenByType { +impl std::convert::TryFrom<&::std::string::String> + for DiscussionAnsweredDiscussionAnswerChosenByType +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionAnsweredDiscussionAnswerChosenByType { +impl std::convert::TryFrom<::std::string::String> + for DiscussionAnsweredDiscussionAnswerChosenByType +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -21697,14 +22250,14 @@ impl std::convert::TryFrom for DiscussionAnsweredDiscussionAnswerChosenB #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussionCategory { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionAnsweredDiscussionCategory> for DiscussionAnsweredDiscussionCategory { fn from(value: &DiscussionAnsweredDiscussionCategory) -> Self { @@ -21762,7 +22315,7 @@ impl ::std::fmt::Display for DiscussionAnsweredDiscussionState { } impl std::str::FromStr for DiscussionAnsweredDiscussionState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "locked" => Ok(Self::Locked), @@ -21773,19 +22326,23 @@ impl std::str::FromStr for DiscussionAnsweredDiscussionState { } impl std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionAnsweredDiscussionState { +impl std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionAnsweredDiscussionState { +impl std::convert::TryFrom<::std::string::String> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -21845,14 +22402,14 @@ impl std::convert::TryFrom for DiscussionAnsweredDiscussionState { #[serde(deny_unknown_fields)] pub struct DiscussionCategory { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionCategory> for DiscussionCategory { fn from(value: &DiscussionCategory) -> Self { @@ -21971,10 +22528,10 @@ pub struct DiscussionCategoryChanged { pub action: DiscussionCategoryChangedAction, pub changes: DiscussionCategoryChangedChanges, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -22026,7 +22583,7 @@ impl ::std::fmt::Display for DiscussionCategoryChangedAction { } impl std::str::FromStr for DiscussionCategoryChangedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "category_changed" => Ok(Self::CategoryChanged), _ => Err("invalid value".into()), @@ -22035,19 +22592,23 @@ impl std::str::FromStr for DiscussionCategoryChangedAction { } impl std::convert::TryFrom<&str> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionCategoryChangedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionCategoryChangedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -22258,14 +22819,14 @@ impl From<&DiscussionCategoryChangedChangesCategory> for DiscussionCategoryChang #[serde(deny_unknown_fields)] pub struct DiscussionCategoryChangedChangesCategoryFrom { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionCategoryChangedChangesCategoryFrom> for DiscussionCategoryChangedChangesCategoryFrom @@ -22384,8 +22945,8 @@ pub struct DiscussionCommentCreated { pub comment: DiscussionCommentCreatedComment, pub discussion: Discussion, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -22437,7 +22998,7 @@ impl ::std::fmt::Display for DiscussionCommentCreatedAction { } impl std::str::FromStr for DiscussionCommentCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -22446,19 +23007,23 @@ impl std::str::FromStr for DiscussionCommentCreatedAction { } impl std::convert::TryFrom<&str> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionCommentCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionCommentCreatedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -22532,16 +23097,16 @@ impl std::convert::TryFrom for DiscussionCommentCreatedAction { #[serde(deny_unknown_fields)] pub struct DiscussionCommentCreatedComment { pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub child_comment_count: i64, - pub created_at: String, + pub created_at: ::std::string::String, pub discussion_id: i64, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, - pub node_id: String, - pub parent_id: Option, - pub repository_url: String, - pub updated_at: String, + pub node_id: ::std::string::String, + pub parent_id: ::std::option::Option, + pub repository_url: ::std::string::String, + pub updated_at: ::std::string::String, pub user: User, } impl From<&DiscussionCommentCreatedComment> for DiscussionCommentCreatedComment { @@ -22659,8 +23224,8 @@ pub struct DiscussionCommentDeleted { pub comment: DiscussionCommentDeletedComment, pub discussion: Discussion, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -22712,7 +23277,7 @@ impl ::std::fmt::Display for DiscussionCommentDeletedAction { } impl std::str::FromStr for DiscussionCommentDeletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), @@ -22721,19 +23286,23 @@ impl std::str::FromStr for DiscussionCommentDeletedAction { } impl std::convert::TryFrom<&str> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionCommentDeletedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionCommentDeletedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -22807,16 +23376,16 @@ impl std::convert::TryFrom for DiscussionCommentDeletedAction { #[serde(deny_unknown_fields)] pub struct DiscussionCommentDeletedComment { pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub child_comment_count: i64, - pub created_at: String, + pub created_at: ::std::string::String, pub discussion_id: i64, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, - pub node_id: String, - pub parent_id: Option, - pub repository_url: String, - pub updated_at: String, + pub node_id: ::std::string::String, + pub parent_id: ::std::option::Option, + pub repository_url: ::std::string::String, + pub updated_at: ::std::string::String, pub user: User, } impl From<&DiscussionCommentDeletedComment> for DiscussionCommentDeletedComment { @@ -22957,8 +23526,8 @@ pub struct DiscussionCommentEdited { pub comment: DiscussionCommentEditedComment, pub discussion: Discussion, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -23010,7 +23579,7 @@ impl ::std::fmt::Display for DiscussionCommentEditedAction { } impl std::str::FromStr for DiscussionCommentEditedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), @@ -23019,19 +23588,23 @@ impl std::str::FromStr for DiscussionCommentEditedAction { } impl std::convert::TryFrom<&str> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionCommentEditedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionCommentEditedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23095,7 +23668,7 @@ impl From<&DiscussionCommentEditedChanges> for DiscussionCommentEditedChanges { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentEditedChangesBody { - pub from: String, + pub from: ::std::string::String, } impl From<&DiscussionCommentEditedChangesBody> for DiscussionCommentEditedChangesBody { fn from(value: &DiscussionCommentEditedChangesBody) -> Self { @@ -23172,16 +23745,16 @@ impl From<&DiscussionCommentEditedChangesBody> for DiscussionCommentEditedChange #[serde(deny_unknown_fields)] pub struct DiscussionCommentEditedComment { pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub child_comment_count: i64, - pub created_at: String, + pub created_at: ::std::string::String, pub discussion_id: i64, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, - pub node_id: String, - pub parent_id: Option, - pub repository_url: String, - pub updated_at: String, + pub node_id: ::std::string::String, + pub parent_id: ::std::option::Option, + pub repository_url: ::std::string::String, + pub updated_at: ::std::string::String, pub user: User, } impl From<&DiscussionCommentEditedComment> for DiscussionCommentEditedComment { @@ -23322,10 +23895,10 @@ impl From for DiscussionCommentEvent { pub struct DiscussionCreated { pub action: DiscussionCreatedAction, pub discussion: DiscussionCreatedDiscussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -23377,7 +23950,7 @@ impl ::std::fmt::Display for DiscussionCreatedAction { } impl std::str::FromStr for DiscussionCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -23386,19 +23959,23 @@ impl std::str::FromStr for DiscussionCreatedAction { } impl std::convert::TryFrom<&str> for DiscussionCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionCreatedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23454,23 +24031,23 @@ impl std::convert::TryFrom for DiscussionCreatedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCreatedDiscussion { - pub active_lock_reason: Option, + pub active_lock_reason: ::std::option::Option<::std::string::String>, pub answer_chosen_at: (), pub answer_chosen_by: (), pub answer_html_url: (), pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub category: DiscussionCreatedDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, pub locked: bool, - pub node_id: String, + pub node_id: ::std::string::String, pub number: i64, - pub repository_url: String, + pub repository_url: ::std::string::String, pub state: DiscussionCreatedDiscussionState, - pub title: String, + pub title: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -23535,14 +24112,14 @@ impl From<&DiscussionCreatedDiscussion> for DiscussionCreatedDiscussion { #[serde(deny_unknown_fields)] pub struct DiscussionCreatedDiscussionCategory { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionCreatedDiscussionCategory> for DiscussionCreatedDiscussionCategory { fn from(value: &DiscussionCreatedDiscussionCategory) -> Self { @@ -23596,7 +24173,7 @@ impl ::std::fmt::Display for DiscussionCreatedDiscussionState { } impl std::str::FromStr for DiscussionCreatedDiscussionState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "converting" => Ok(Self::Converting), @@ -23606,19 +24183,23 @@ impl std::str::FromStr for DiscussionCreatedDiscussionState { } impl std::convert::TryFrom<&str> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionCreatedDiscussionState { +impl std::convert::TryFrom<&::std::string::String> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionCreatedDiscussionState { +impl std::convert::TryFrom<::std::string::String> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23669,10 +24250,10 @@ impl std::convert::TryFrom for DiscussionCreatedDiscussionState { pub struct DiscussionDeleted { pub action: DiscussionDeletedAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -23724,7 +24305,7 @@ impl ::std::fmt::Display for DiscussionDeletedAction { } impl std::str::FromStr for DiscussionDeletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), @@ -23733,19 +24314,23 @@ impl std::str::FromStr for DiscussionDeletedAction { } impl std::convert::TryFrom<&str> for DiscussionDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionDeletedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionDeletedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23825,13 +24410,13 @@ impl std::convert::TryFrom for DiscussionDeletedAction { #[serde(deny_unknown_fields)] pub struct DiscussionEdited { pub action: DiscussionEditedAction, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub changes: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub changes: ::std::option::Option, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -23883,7 +24468,7 @@ impl ::std::fmt::Display for DiscussionEditedAction { } impl std::str::FromStr for DiscussionEditedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), @@ -23892,19 +24477,23 @@ impl std::str::FromStr for DiscussionEditedAction { } impl std::convert::TryFrom<&str> for DiscussionEditedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionEditedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionEditedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionEditedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionEditedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23948,10 +24537,10 @@ impl std::convert::TryFrom for DiscussionEditedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChanges { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub body: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub title: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub body: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub title: ::std::option::Option, } impl From<&DiscussionEditedChanges> for DiscussionEditedChanges { fn from(value: &DiscussionEditedChanges) -> Self { @@ -23980,7 +24569,7 @@ impl From<&DiscussionEditedChanges> for DiscussionEditedChanges { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChangesBody { - pub from: String, + pub from: ::std::string::String, } impl From<&DiscussionEditedChangesBody> for DiscussionEditedChangesBody { fn from(value: &DiscussionEditedChangesBody) -> Self { @@ -24009,7 +24598,7 @@ impl From<&DiscussionEditedChangesBody> for DiscussionEditedChangesBody { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChangesTitle { - pub from: String, + pub from: ::std::string::String, } impl From<&DiscussionEditedChangesTitle> for DiscussionEditedChangesTitle { fn from(value: &DiscussionEditedChangesTitle) -> Self { @@ -24204,11 +24793,11 @@ impl From for DiscussionEvent { pub struct DiscussionLabeled { pub action: DiscussionLabeledAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, pub label: Label, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -24260,7 +24849,7 @@ impl ::std::fmt::Display for DiscussionLabeledAction { } impl std::str::FromStr for DiscussionLabeledAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "labeled" => Ok(Self::Labeled), _ => Err("invalid value".into()), @@ -24269,19 +24858,23 @@ impl std::str::FromStr for DiscussionLabeledAction { } impl std::convert::TryFrom<&str> for DiscussionLabeledAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionLabeledAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionLabeledAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionLabeledAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionLabeledAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -24358,10 +24951,10 @@ impl std::convert::TryFrom for DiscussionLabeledAction { pub struct DiscussionLocked { pub action: DiscussionLockedAction, pub discussion: DiscussionLockedDiscussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -24413,7 +25006,7 @@ impl ::std::fmt::Display for DiscussionLockedAction { } impl std::str::FromStr for DiscussionLockedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "locked" => Ok(Self::Locked), _ => Err("invalid value".into()), @@ -24422,19 +25015,23 @@ impl std::str::FromStr for DiscussionLockedAction { } impl std::convert::TryFrom<&str> for DiscussionLockedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionLockedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionLockedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionLockedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionLockedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -24477,23 +25074,23 @@ impl std::convert::TryFrom for DiscussionLockedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionLockedDiscussion { - pub active_lock_reason: Option, - pub answer_chosen_at: Option, - pub answer_chosen_by: Option, - pub answer_html_url: Option, + pub active_lock_reason: ::std::option::Option<::std::string::String>, + pub answer_chosen_at: ::std::option::Option<::std::string::String>, + pub answer_chosen_by: ::std::option::Option, + pub answer_html_url: ::std::option::Option<::std::string::String>, pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub category: DiscussionLockedDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, pub locked: bool, - pub node_id: String, + pub node_id: ::std::string::String, pub number: i64, - pub repository_url: String, + pub repository_url: ::std::string::String, pub state: DiscussionLockedDiscussionState, - pub title: String, + pub title: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -24558,14 +25155,14 @@ impl From<&DiscussionLockedDiscussion> for DiscussionLockedDiscussion { #[serde(deny_unknown_fields)] pub struct DiscussionLockedDiscussionCategory { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionLockedDiscussionCategory> for DiscussionLockedDiscussionCategory { fn from(value: &DiscussionLockedDiscussionCategory) -> Self { @@ -24615,7 +25212,7 @@ impl ::std::fmt::Display for DiscussionLockedDiscussionState { } impl std::str::FromStr for DiscussionLockedDiscussionState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "locked" => Ok(Self::Locked), _ => Err("invalid value".into()), @@ -24624,19 +25221,23 @@ impl std::str::FromStr for DiscussionLockedDiscussionState { } impl std::convert::TryFrom<&str> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionLockedDiscussionState { +impl std::convert::TryFrom<&::std::string::String> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionLockedDiscussionState { +impl std::convert::TryFrom<::std::string::String> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -24687,10 +25288,10 @@ impl std::convert::TryFrom for DiscussionLockedDiscussionState { pub struct DiscussionPinned { pub action: DiscussionPinnedAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -24742,7 +25343,7 @@ impl ::std::fmt::Display for DiscussionPinnedAction { } impl std::str::FromStr for DiscussionPinnedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "pinned" => Ok(Self::Pinned), _ => Err("invalid value".into()), @@ -24751,19 +25352,23 @@ impl std::str::FromStr for DiscussionPinnedAction { } impl std::convert::TryFrom<&str> for DiscussionPinnedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionPinnedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionPinnedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionPinnedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionPinnedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -24818,7 +25423,7 @@ impl ::std::fmt::Display for DiscussionState { } impl std::str::FromStr for DiscussionState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "locked" => Ok(Self::Locked), @@ -24829,19 +25434,23 @@ impl std::str::FromStr for DiscussionState { } impl std::convert::TryFrom<&str> for DiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionState { +impl std::convert::TryFrom<&::std::string::String> for DiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionState { +impl std::convert::TryFrom<::std::string::String> for DiscussionState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -24910,10 +25519,10 @@ pub struct DiscussionTransferred { pub action: DiscussionTransferredAction, pub changes: DiscussionTransferredChanges, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -24965,7 +25574,7 @@ impl ::std::fmt::Display for DiscussionTransferredAction { } impl std::str::FromStr for DiscussionTransferredAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "transferred" => Ok(Self::Transferred), _ => Err("invalid value".into()), @@ -24974,19 +25583,23 @@ impl std::str::FromStr for DiscussionTransferredAction { } impl std::convert::TryFrom<&str> for DiscussionTransferredAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionTransferredAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionTransferredAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionTransferredAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionTransferredAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -25170,11 +25783,11 @@ impl From<&DiscussionTransferredChanges> for DiscussionTransferredChanges { pub struct DiscussionUnanswered { pub action: DiscussionUnansweredAction, pub discussion: DiscussionUnansweredDiscussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, pub old_answer: DiscussionUnansweredOldAnswer, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -25226,7 +25839,7 @@ impl ::std::fmt::Display for DiscussionUnansweredAction { } impl std::str::FromStr for DiscussionUnansweredAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "unanswered" => Ok(Self::Unanswered), _ => Err("invalid value".into()), @@ -25235,19 +25848,23 @@ impl std::str::FromStr for DiscussionUnansweredAction { } impl std::convert::TryFrom<&str> for DiscussionUnansweredAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionUnansweredAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionUnansweredAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionUnansweredAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -25304,23 +25921,23 @@ impl std::convert::TryFrom for DiscussionUnansweredAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnansweredDiscussion { - pub active_lock_reason: Option, + pub active_lock_reason: ::std::option::Option<::std::string::String>, pub answer_chosen_at: (), pub answer_chosen_by: (), pub answer_html_url: (), pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub category: DiscussionUnansweredDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, pub locked: bool, - pub node_id: String, + pub node_id: ::std::string::String, pub number: i64, - pub repository_url: String, + pub repository_url: ::std::string::String, pub state: DiscussionUnansweredDiscussionState, - pub title: String, + pub title: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -25388,14 +26005,14 @@ impl From<&DiscussionUnansweredDiscussion> for DiscussionUnansweredDiscussion { #[serde(deny_unknown_fields)] pub struct DiscussionUnansweredDiscussionCategory { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionUnansweredDiscussionCategory> for DiscussionUnansweredDiscussionCategory { fn from(value: &DiscussionUnansweredDiscussionCategory) -> Self { @@ -25453,7 +26070,7 @@ impl ::std::fmt::Display for DiscussionUnansweredDiscussionState { } impl std::str::FromStr for DiscussionUnansweredDiscussionState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), "locked" => Ok(Self::Locked), @@ -25464,19 +26081,23 @@ impl std::str::FromStr for DiscussionUnansweredDiscussionState { } impl std::convert::TryFrom<&str> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionUnansweredDiscussionState { +impl std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionUnansweredDiscussionState { +impl std::convert::TryFrom<::std::string::String> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -25549,15 +26170,15 @@ impl std::convert::TryFrom for DiscussionUnansweredDiscussionState { #[serde(deny_unknown_fields)] pub struct DiscussionUnansweredOldAnswer { pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub child_comment_count: i64, pub created_at: chrono::DateTime, pub discussion_id: i64, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, - pub node_id: String, + pub node_id: ::std::string::String, pub parent_id: (), - pub repository_url: String, + pub repository_url: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -25617,11 +26238,11 @@ impl From<&DiscussionUnansweredOldAnswer> for DiscussionUnansweredOldAnswer { pub struct DiscussionUnlabeled { pub action: DiscussionUnlabeledAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, pub label: Label, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -25673,7 +26294,7 @@ impl ::std::fmt::Display for DiscussionUnlabeledAction { } impl std::str::FromStr for DiscussionUnlabeledAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "unlabeled" => Ok(Self::Unlabeled), _ => Err("invalid value".into()), @@ -25682,19 +26303,23 @@ impl std::str::FromStr for DiscussionUnlabeledAction { } impl std::convert::TryFrom<&str> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionUnlabeledAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionUnlabeledAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -25771,10 +26396,10 @@ impl std::convert::TryFrom for DiscussionUnlabeledAction { pub struct DiscussionUnlocked { pub action: DiscussionUnlockedAction, pub discussion: DiscussionUnlockedDiscussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -25826,7 +26451,7 @@ impl ::std::fmt::Display for DiscussionUnlockedAction { } impl std::str::FromStr for DiscussionUnlockedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "unlocked" => Ok(Self::Unlocked), _ => Err("invalid value".into()), @@ -25835,19 +26460,23 @@ impl std::str::FromStr for DiscussionUnlockedAction { } impl std::convert::TryFrom<&str> for DiscussionUnlockedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionUnlockedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionUnlockedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionUnlockedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -25890,23 +26519,23 @@ impl std::convert::TryFrom for DiscussionUnlockedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnlockedDiscussion { - pub active_lock_reason: Option, - pub answer_chosen_at: Option, - pub answer_chosen_by: Option, - pub answer_html_url: Option, + pub active_lock_reason: ::std::option::Option<::std::string::String>, + pub answer_chosen_at: ::std::option::Option<::std::string::String>, + pub answer_chosen_by: ::std::option::Option, + pub answer_html_url: ::std::option::Option<::std::string::String>, pub author_association: AuthorAssociation, - pub body: String, + pub body: ::std::string::String, pub category: DiscussionUnlockedDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, - pub html_url: String, + pub html_url: ::std::string::String, pub id: i64, pub locked: bool, - pub node_id: String, + pub node_id: ::std::string::String, pub number: i64, - pub repository_url: String, + pub repository_url: ::std::string::String, pub state: DiscussionUnlockedDiscussionState, - pub title: String, + pub title: ::std::string::String, pub updated_at: chrono::DateTime, pub user: User, } @@ -25971,14 +26600,14 @@ impl From<&DiscussionUnlockedDiscussion> for DiscussionUnlockedDiscussion { #[serde(deny_unknown_fields)] pub struct DiscussionUnlockedDiscussionCategory { pub created_at: chrono::DateTime, - pub description: String, - pub emoji: String, + pub description: ::std::string::String, + pub emoji: ::std::string::String, pub id: i64, pub is_answerable: bool, - pub name: String, + pub name: ::std::string::String, pub repository_id: i64, - pub slug: String, - pub updated_at: String, + pub slug: ::std::string::String, + pub updated_at: ::std::string::String, } impl From<&DiscussionUnlockedDiscussionCategory> for DiscussionUnlockedDiscussionCategory { fn from(value: &DiscussionUnlockedDiscussionCategory) -> Self { @@ -26028,7 +26657,7 @@ impl ::std::fmt::Display for DiscussionUnlockedDiscussionState { } impl std::str::FromStr for DiscussionUnlockedDiscussionState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), @@ -26037,19 +26666,23 @@ impl std::str::FromStr for DiscussionUnlockedDiscussionState { } impl std::convert::TryFrom<&str> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionUnlockedDiscussionState { +impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionUnlockedDiscussionState { +impl std::convert::TryFrom<::std::string::String> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -26100,10 +26733,10 @@ impl std::convert::TryFrom for DiscussionUnlockedDiscussionState { pub struct DiscussionUnpinned { pub action: DiscussionUnpinnedAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -26155,7 +26788,7 @@ impl ::std::fmt::Display for DiscussionUnpinnedAction { } impl std::str::FromStr for DiscussionUnpinnedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "unpinned" => Ok(Self::Unpinned), _ => Err("invalid value".into()), @@ -26164,19 +26797,23 @@ impl std::str::FromStr for DiscussionUnpinnedAction { } impl std::convert::TryFrom<&str> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for DiscussionUnpinnedAction { +impl std::convert::TryFrom<&::std::string::String> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for DiscussionUnpinnedAction { +impl std::convert::TryFrom<::std::string::String> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -26752,10 +27389,10 @@ impl From for Everything { #[serde(deny_unknown_fields)] pub struct ForkEvent { pub forkee: ForkEventForkee, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, } @@ -26797,8 +27434,8 @@ pub struct ForkEventForkee { #[serde(default)] pub allow_auto_merge: bool, #[doc = "Whether to allow private forks"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub allow_forking: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub allow_forking: ::std::option::Option, #[doc = "Whether to allow merge commits for pull requests."] #[serde(default = "defaults::default_bool::")] pub allow_merge_commit: bool, @@ -26808,41 +27445,41 @@ pub struct ForkEventForkee { #[doc = "Whether to allow squash merges for pull requests."] #[serde(default = "defaults::default_bool::")] pub allow_squash_merge: bool, - pub archive_url: String, + pub archive_url: ::std::string::String, #[doc = "Whether the repository is archived."] pub archived: bool, - pub assignees_url: String, - pub blobs_url: String, - pub branches_url: String, - pub clone_url: String, - pub collaborators_url: String, - pub comments_url: String, - pub commits_url: String, - pub compare_url: String, - pub contents_url: String, - pub contributors_url: String, + pub assignees_url: ::std::string::String, + pub blobs_url: ::std::string::String, + pub branches_url: ::std::string::String, + pub clone_url: ::std::string::String, + pub collaborators_url: ::std::string::String, + pub comments_url: ::std::string::String, + pub commits_url: ::std::string::String, + pub compare_url: ::std::string::String, + pub contents_url: ::std::string::String, + pub contributors_url: ::std::string::String, pub created_at: ForkEventForkeeCreatedAt, #[doc = "The default branch of the repository."] - pub default_branch: String, + pub default_branch: ::std::string::String, #[doc = "Whether to delete head branches when pull requests are merged"] #[serde(default)] pub delete_branch_on_merge: bool, - pub deployments_url: String, - pub description: Option, + pub deployments_url: ::std::string::String, + pub description: ::std::option::Option<::std::string::String>, #[doc = "Returns whether or not this repository is disabled."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub disabled: Option, - pub downloads_url: String, - pub events_url: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub disabled: ::std::option::Option, + pub downloads_url: ::std::string::String, + pub events_url: ::std::string::String, pub fork: bool, pub forks: i64, pub forks_count: i64, - pub forks_url: String, - pub full_name: String, - pub git_commits_url: String, - pub git_refs_url: String, - pub git_tags_url: String, - pub git_url: String, + pub forks_url: ::std::string::String, + pub full_name: ::std::string::String, + pub git_commits_url: ::std::string::String, + pub git_refs_url: ::std::string::String, + pub git_tags_url: ::std::string::String, + pub git_url: ::std::string::String, #[doc = "Whether downloads are enabled."] pub has_downloads: bool, #[doc = "Whether issues are enabled."] @@ -26852,57 +27489,57 @@ pub struct ForkEventForkee { pub has_projects: bool, #[doc = "Whether the wiki is enabled."] pub has_wiki: bool, - pub homepage: Option, - pub hooks_url: String, - pub html_url: String, + pub homepage: ::std::option::Option<::std::string::String>, + pub hooks_url: ::std::string::String, + pub html_url: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, - pub issue_comment_url: String, - pub issue_events_url: String, - pub issues_url: String, - pub keys_url: String, - pub labels_url: String, - pub language: Option, - pub languages_url: String, - pub license: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub master_branch: Option, - pub merges_url: String, - pub milestones_url: String, - pub mirror_url: Option, + pub issue_comment_url: ::std::string::String, + pub issue_events_url: ::std::string::String, + pub issues_url: ::std::string::String, + pub keys_url: ::std::string::String, + pub labels_url: ::std::string::String, + pub language: ::std::option::Option<::std::string::String>, + pub languages_url: ::std::string::String, + pub license: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub master_branch: ::std::option::Option<::std::string::String>, + pub merges_url: ::std::string::String, + pub milestones_url: ::std::string::String, + pub mirror_url: ::std::option::Option<::std::string::String>, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, - pub notifications_url: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, + pub notifications_url: ::std::string::String, pub open_issues: i64, pub open_issues_count: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option<::std::string::String>, pub owner: User, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub permissions: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub permissions: ::std::option::Option, #[doc = "Whether the repository is private or public."] pub private: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub public: Option, - pub pulls_url: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub public: ::std::option::Option, + pub pulls_url: ::std::string::String, pub pushed_at: ForkEventForkeePushedAt, - pub releases_url: String, + pub releases_url: ::std::string::String, pub size: i64, - pub ssh_url: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub stargazers: Option, + pub ssh_url: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub stargazers: ::std::option::Option, pub stargazers_count: i64, - pub stargazers_url: String, - pub statuses_url: String, - pub subscribers_url: String, - pub subscription_url: String, - pub svn_url: String, - pub tags_url: String, - pub teams_url: String, - pub trees_url: String, + pub stargazers_url: ::std::string::String, + pub statuses_url: ::std::string::String, + pub subscribers_url: ::std::string::String, + pub subscription_url: ::std::string::String, + pub svn_url: ::std::string::String, + pub tags_url: ::std::string::String, + pub teams_url: ::std::string::String, + pub trees_url: ::std::string::String, pub updated_at: chrono::DateTime, - pub url: String, + pub url: ::std::string::String, pub watchers: i64, pub watchers_count: i64, } @@ -26942,7 +27579,7 @@ impl From<&ForkEventForkeeCreatedAt> for ForkEventForkeeCreatedAt { } impl std::str::FromStr for ForkEventForkeeCreatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -26954,19 +27591,23 @@ impl std::str::FromStr for ForkEventForkeeCreatedAt { } impl std::convert::TryFrom<&str> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for ForkEventForkeeCreatedAt { +impl std::convert::TryFrom<&::std::string::String> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for ForkEventForkeeCreatedAt { +impl std::convert::TryFrom<::std::string::String> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -27025,12 +27666,12 @@ impl From> for ForkEventForkeeCreatedAt { #[serde(deny_unknown_fields)] pub struct ForkEventForkeePermissions { pub admin: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub maintain: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub maintain: ::std::option::Option, pub pull: bool, pub push: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub triage: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub triage: ::std::option::Option, } impl From<&ForkEventForkeePermissions> for ForkEventForkeePermissions { fn from(value: &ForkEventForkeePermissions) -> Self { @@ -27199,7 +27840,7 @@ impl ::std::fmt::Display for GithubAppAuthorizationRevokedAction { } impl std::str::FromStr for GithubAppAuthorizationRevokedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "revoked" => Ok(Self::Revoked), _ => Err("invalid value".into()), @@ -27208,19 +27849,23 @@ impl std::str::FromStr for GithubAppAuthorizationRevokedAction { } impl std::convert::TryFrom<&str> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for GithubAppAuthorizationRevokedAction { +impl std::convert::TryFrom<&::std::string::String> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for GithubAppAuthorizationRevokedAction { +impl std::convert::TryFrom<::std::string::String> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -27353,29 +27998,29 @@ impl std::convert::TryFrom for GithubAppAuthorizationRevokedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GithubOrg { - pub avatar_url: String, + pub avatar_url: ::std::string::String, #[serde(default)] pub email: (), - pub events_url: String, - pub followers_url: String, - pub following_url: String, - pub gists_url: String, - pub gravatar_id: String, - pub html_url: String, + pub events_url: ::std::string::String, + pub followers_url: ::std::string::String, + pub following_url: ::std::string::String, + pub gists_url: ::std::string::String, + pub gravatar_id: ::std::string::String, + pub html_url: ::std::string::String, pub id: i64, - pub login: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, - pub node_id: String, - pub organizations_url: String, - pub received_events_url: String, - pub repos_url: String, + pub login: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, + pub node_id: ::std::string::String, + pub organizations_url: ::std::string::String, + pub received_events_url: ::std::string::String, + pub repos_url: ::std::string::String, pub site_admin: bool, - pub starred_url: String, - pub subscriptions_url: String, + pub starred_url: ::std::string::String, + pub subscriptions_url: ::std::string::String, #[serde(rename = "type")] - pub type_: String, - pub url: String, + pub type_: ::std::string::String, + pub url: ::std::string::String, } impl From<&GithubOrg> for GithubOrg { fn from(value: &GithubOrg) -> Self { @@ -27464,12 +28109,12 @@ impl From<&GithubOrg> for GithubOrg { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GollumEvent { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub installation: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub installation: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization: ::std::option::Option, #[doc = "The pages that were updated."] - pub pages: Vec, + pub pages: ::std::vec::Vec, pub repository: Repository, pub sender: User, } @@ -27533,14 +28178,14 @@ pub struct GollumEventPagesItem { #[doc = "The action that was performed on the page. Can be `created` or `edited`."] pub action: GollumEventPagesItemAction, #[doc = "Points to the HTML wiki page."] - pub html_url: String, + pub html_url: ::std::string::String, #[doc = "The name of the page."] - pub page_name: String, + pub page_name: ::std::string::String, #[doc = "The latest commit SHA of the page."] - pub sha: String, + pub sha: ::std::string::String, pub summary: (), #[doc = "The current page title."] - pub title: String, + pub title: ::std::string::String, } impl From<&GollumEventPagesItem> for GollumEventPagesItem { fn from(value: &GollumEventPagesItem) -> Self { @@ -27595,7 +28240,7 @@ impl ::std::fmt::Display for GollumEventPagesItemAction { } impl std::str::FromStr for GollumEventPagesItemAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), "edited" => Ok(Self::Edited), @@ -27605,19 +28250,23 @@ impl std::str::FromStr for GollumEventPagesItemAction { } impl std::convert::TryFrom<&str> for GollumEventPagesItemAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for GollumEventPagesItemAction { +impl std::convert::TryFrom<&::std::string::String> for GollumEventPagesItemAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for GollumEventPagesItemAction { +impl std::convert::TryFrom<::std::string::String> for GollumEventPagesItemAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -28060,27 +28709,27 @@ impl std::convert::TryFrom for GollumEventPagesItemAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Installation { - pub access_tokens_url: String, + pub access_tokens_url: ::std::string::String, pub account: User, pub app_id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub app_slug: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub app_slug: ::std::option::Option<::std::string::String>, pub created_at: InstallationCreatedAt, - pub events: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub has_multiple_single_files: Option, - pub html_url: String, + pub events: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub has_multiple_single_files: ::std::option::Option, + pub html_url: ::std::string::String, #[doc = "The ID of the installation."] pub id: i64, pub permissions: InstallationPermissions, - pub repositories_url: String, + pub repositories_url: ::std::string::String, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositorySelection, - pub single_file_name: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub single_file_paths: Vec, - pub suspended_at: Option>, - pub suspended_by: Option, + pub single_file_name: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub single_file_paths: ::std::vec::Vec<::std::string::String>, + pub suspended_at: ::std::option::Option>, + pub suspended_by: ::std::option::Option, #[doc = "The ID of the user or organization this token is being scoped to."] pub target_id: i64, pub target_type: InstallationTargetType, @@ -28167,10 +28816,10 @@ pub struct InstallationCreated { pub action: InstallationCreatedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub repositories: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub requester: Option, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub repositories: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub requester: ::std::option::Option, pub sender: User, } impl From<&InstallationCreated> for InstallationCreated { @@ -28221,7 +28870,7 @@ impl ::std::fmt::Display for InstallationCreatedAction { } impl std::str::FromStr for InstallationCreatedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), @@ -28230,19 +28879,23 @@ impl std::str::FromStr for InstallationCreatedAction { } impl std::convert::TryFrom<&str> for InstallationCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationCreatedAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationCreatedAction { +impl std::convert::TryFrom<::std::string::String> for InstallationCreatedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -28277,7 +28930,7 @@ impl From<&InstallationCreatedAt> for InstallationCreatedAt { } impl std::str::FromStr for InstallationCreatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -28289,19 +28942,23 @@ impl std::str::FromStr for InstallationCreatedAt { } impl std::convert::TryFrom<&str> for InstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationCreatedAt { +impl std::convert::TryFrom<&::std::string::String> for InstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationCreatedAt { +impl std::convert::TryFrom<::std::string::String> for InstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -28364,12 +29021,12 @@ impl From for InstallationCreatedAt { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationCreatedRepositoriesItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -28454,8 +29111,8 @@ pub struct InstallationDeleted { pub action: InstallationDeletedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub repositories: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), pub sender: User, @@ -28508,7 +29165,7 @@ impl ::std::fmt::Display for InstallationDeletedAction { } impl std::str::FromStr for InstallationDeletedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), @@ -28517,19 +29174,23 @@ impl std::str::FromStr for InstallationDeletedAction { } impl std::convert::TryFrom<&str> for InstallationDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationDeletedAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationDeletedAction { +impl std::convert::TryFrom<::std::string::String> for InstallationDeletedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -28574,12 +29235,12 @@ impl std::convert::TryFrom for InstallationDeletedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationDeletedRepositoriesItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -28872,7 +29533,7 @@ impl ::std::fmt::Display for InstallationEventsItem { } impl std::str::FromStr for InstallationEventsItem { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), @@ -28925,19 +29586,23 @@ impl std::str::FromStr for InstallationEventsItem { } impl std::convert::TryFrom<&str> for InstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationEventsItem { +impl std::convert::TryFrom<&::std::string::String> for InstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationEventsItem { +impl std::convert::TryFrom<::std::string::String> for InstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -28973,7 +29638,7 @@ impl std::convert::TryFrom for InstallationEventsItem { pub struct InstallationLite { #[doc = "The ID of the installation."] pub id: i64, - pub node_id: String, + pub node_id: ::std::string::String, } impl From<&InstallationLite> for InstallationLite { fn from(value: &InstallationLite) -> Self { @@ -29056,8 +29721,8 @@ pub struct InstallationNewPermissionsAccepted { pub action: InstallationNewPermissionsAcceptedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub repositories: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), pub sender: User, @@ -29110,7 +29775,7 @@ impl ::std::fmt::Display for InstallationNewPermissionsAcceptedAction { } impl std::str::FromStr for InstallationNewPermissionsAcceptedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "new_permissions_accepted" => Ok(Self::NewPermissionsAccepted), _ => Err("invalid value".into()), @@ -29119,19 +29784,23 @@ impl std::str::FromStr for InstallationNewPermissionsAcceptedAction { } impl std::convert::TryFrom<&str> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationNewPermissionsAcceptedAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationNewPermissionsAcceptedAction { +impl std::convert::TryFrom<::std::string::String> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -29176,12 +29845,12 @@ impl std::convert::TryFrom for InstallationNewPermissionsAcceptedAction #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationNewPermissionsAcceptedRepositoriesItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -29453,77 +30122,80 @@ impl From<&InstallationNewPermissionsAcceptedRepositoriesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationPermissions { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub actions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub administration: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub checks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub content_references: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub contents: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub emails: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub environments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub issues: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub members: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metadata: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_administration: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_packages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_plan: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_projects: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub actions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub administration: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub checks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub content_references: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub contents: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub discussions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub emails: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub environments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub issues: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub members: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub metadata: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_administration: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_events: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_hooks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_packages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_plan: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_projects: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_secrets: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_self_hosted_runners: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_user_blocking: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub packages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pull_requests: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_projects: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub secret_scanning_alerts: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub security_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub security_scanning_alert: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub single_file: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub statuses: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub team_discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vulnerability_alerts: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub workflows: Option, + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_user_blocking: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub packages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pull_requests: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_hooks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_projects: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub secret_scanning_alerts: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub secrets: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub security_events: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub security_scanning_alert: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub single_file: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub statuses: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub team_discussions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vulnerability_alerts: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub workflows: ::std::option::Option, } impl From<&InstallationPermissions> for InstallationPermissions { fn from(value: &InstallationPermissions) -> Self { @@ -29577,7 +30249,7 @@ impl ::std::fmt::Display for InstallationPermissionsActions { } impl std::str::FromStr for InstallationPermissionsActions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -29587,19 +30259,23 @@ impl std::str::FromStr for InstallationPermissionsActions { } impl std::convert::TryFrom<&str> for InstallationPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsActions { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsActions { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -29650,7 +30326,7 @@ impl ::std::fmt::Display for InstallationPermissionsAdministration { } impl std::str::FromStr for InstallationPermissionsAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -29660,19 +30336,23 @@ impl std::str::FromStr for InstallationPermissionsAdministration { } impl std::convert::TryFrom<&str> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsAdministration { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsAdministration { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -29723,7 +30403,7 @@ impl ::std::fmt::Display for InstallationPermissionsChecks { } impl std::str::FromStr for InstallationPermissionsChecks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -29733,19 +30413,23 @@ impl std::str::FromStr for InstallationPermissionsChecks { } impl std::convert::TryFrom<&str> for InstallationPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsChecks { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsChecks { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -29796,7 +30480,7 @@ impl ::std::fmt::Display for InstallationPermissionsContentReferences { } impl std::str::FromStr for InstallationPermissionsContentReferences { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -29806,19 +30490,23 @@ impl std::str::FromStr for InstallationPermissionsContentReferences { } impl std::convert::TryFrom<&str> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsContentReferences { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsContentReferences { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -29869,7 +30557,7 @@ impl ::std::fmt::Display for InstallationPermissionsContents { } impl std::str::FromStr for InstallationPermissionsContents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -29879,19 +30567,23 @@ impl std::str::FromStr for InstallationPermissionsContents { } impl std::convert::TryFrom<&str> for InstallationPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsContents { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsContents { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -29942,7 +30634,7 @@ impl ::std::fmt::Display for InstallationPermissionsDeployments { } impl std::str::FromStr for InstallationPermissionsDeployments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -29952,19 +30644,23 @@ impl std::str::FromStr for InstallationPermissionsDeployments { } impl std::convert::TryFrom<&str> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsDeployments { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsDeployments { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30015,7 +30711,7 @@ impl ::std::fmt::Display for InstallationPermissionsDiscussions { } impl std::str::FromStr for InstallationPermissionsDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30025,19 +30721,23 @@ impl std::str::FromStr for InstallationPermissionsDiscussions { } impl std::convert::TryFrom<&str> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsDiscussions { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsDiscussions { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30088,7 +30788,7 @@ impl ::std::fmt::Display for InstallationPermissionsEmails { } impl std::str::FromStr for InstallationPermissionsEmails { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30098,19 +30798,23 @@ impl std::str::FromStr for InstallationPermissionsEmails { } impl std::convert::TryFrom<&str> for InstallationPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsEmails { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsEmails { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30161,7 +30865,7 @@ impl ::std::fmt::Display for InstallationPermissionsEnvironments { } impl std::str::FromStr for InstallationPermissionsEnvironments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30171,19 +30875,23 @@ impl std::str::FromStr for InstallationPermissionsEnvironments { } impl std::convert::TryFrom<&str> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsEnvironments { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsEnvironments { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30234,7 +30942,7 @@ impl ::std::fmt::Display for InstallationPermissionsIssues { } impl std::str::FromStr for InstallationPermissionsIssues { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30244,19 +30952,23 @@ impl std::str::FromStr for InstallationPermissionsIssues { } impl std::convert::TryFrom<&str> for InstallationPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsIssues { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsIssues { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30307,7 +31019,7 @@ impl ::std::fmt::Display for InstallationPermissionsMembers { } impl std::str::FromStr for InstallationPermissionsMembers { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30317,19 +31029,23 @@ impl std::str::FromStr for InstallationPermissionsMembers { } impl std::convert::TryFrom<&str> for InstallationPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsMembers { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsMembers { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30380,7 +31096,7 @@ impl ::std::fmt::Display for InstallationPermissionsMetadata { } impl std::str::FromStr for InstallationPermissionsMetadata { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30390,19 +31106,23 @@ impl std::str::FromStr for InstallationPermissionsMetadata { } impl std::convert::TryFrom<&str> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsMetadata { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsMetadata { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30455,7 +31175,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationAdministration { } impl std::str::FromStr for InstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30465,19 +31185,27 @@ impl std::str::FromStr for InstallationPermissionsOrganizationAdministration { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationAdministration { +impl std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsOrganizationAdministration +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationAdministration { +impl std::convert::TryFrom<::std::string::String> + for InstallationPermissionsOrganizationAdministration +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30530,7 +31258,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationEvents { } impl std::str::FromStr for InstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30540,19 +31268,23 @@ impl std::str::FromStr for InstallationPermissionsOrganizationEvents { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationEvents { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationEvents { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30603,7 +31335,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationHooks { } impl std::str::FromStr for InstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30613,19 +31345,23 @@ impl std::str::FromStr for InstallationPermissionsOrganizationHooks { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationHooks { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationHooks { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30678,7 +31414,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationPackages { } impl std::str::FromStr for InstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30688,19 +31424,23 @@ impl std::str::FromStr for InstallationPermissionsOrganizationPackages { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationPackages { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationPackages { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30751,7 +31491,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationPlan { } impl std::str::FromStr for InstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30761,19 +31501,23 @@ impl std::str::FromStr for InstallationPermissionsOrganizationPlan { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationPlan { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationPlan { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30826,7 +31570,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationProjects { } impl std::str::FromStr for InstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30836,19 +31580,23 @@ impl std::str::FromStr for InstallationPermissionsOrganizationProjects { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationProjects { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationProjects { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30901,7 +31649,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationSecrets { } impl std::str::FromStr for InstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30911,19 +31659,23 @@ impl std::str::FromStr for InstallationPermissionsOrganizationSecrets { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationSecrets { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationSecrets { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -30976,7 +31728,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationSelfHostedRunner } impl std::str::FromStr for InstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -30986,19 +31738,27 @@ impl std::str::FromStr for InstallationPermissionsOrganizationSelfHostedRunners } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationSelfHostedRunners { +impl std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsOrganizationSelfHostedRunners +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationSelfHostedRunners { +impl std::convert::TryFrom<::std::string::String> + for InstallationPermissionsOrganizationSelfHostedRunners +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31051,7 +31811,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationUserBlocking { } impl std::str::FromStr for InstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31061,19 +31821,27 @@ impl std::str::FromStr for InstallationPermissionsOrganizationUserBlocking { } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationUserBlocking { +impl std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsOrganizationUserBlocking +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsOrganizationUserBlocking { +impl std::convert::TryFrom<::std::string::String> + for InstallationPermissionsOrganizationUserBlocking +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31124,7 +31892,7 @@ impl ::std::fmt::Display for InstallationPermissionsPackages { } impl std::str::FromStr for InstallationPermissionsPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31134,19 +31902,23 @@ impl std::str::FromStr for InstallationPermissionsPackages { } impl std::convert::TryFrom<&str> for InstallationPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsPackages { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsPackages { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31197,7 +31969,7 @@ impl ::std::fmt::Display for InstallationPermissionsPages { } impl std::str::FromStr for InstallationPermissionsPages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31207,19 +31979,23 @@ impl std::str::FromStr for InstallationPermissionsPages { } impl std::convert::TryFrom<&str> for InstallationPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsPages { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsPages { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31270,7 +32046,7 @@ impl ::std::fmt::Display for InstallationPermissionsPullRequests { } impl std::str::FromStr for InstallationPermissionsPullRequests { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31280,19 +32056,23 @@ impl std::str::FromStr for InstallationPermissionsPullRequests { } impl std::convert::TryFrom<&str> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsPullRequests { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsPullRequests { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31343,7 +32123,7 @@ impl ::std::fmt::Display for InstallationPermissionsRepositoryHooks { } impl std::str::FromStr for InstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31353,19 +32133,23 @@ impl std::str::FromStr for InstallationPermissionsRepositoryHooks { } impl std::convert::TryFrom<&str> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsRepositoryHooks { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsRepositoryHooks { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31418,7 +32202,7 @@ impl ::std::fmt::Display for InstallationPermissionsRepositoryProjects { } impl std::str::FromStr for InstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31428,19 +32212,23 @@ impl std::str::FromStr for InstallationPermissionsRepositoryProjects { } impl std::convert::TryFrom<&str> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsRepositoryProjects { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsRepositoryProjects { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31493,7 +32281,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecretScanningAlerts { } impl std::str::FromStr for InstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31503,19 +32291,23 @@ impl std::str::FromStr for InstallationPermissionsSecretScanningAlerts { } impl std::convert::TryFrom<&str> for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsSecretScanningAlerts { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsSecretScanningAlerts { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31566,7 +32358,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecrets { } impl std::str::FromStr for InstallationPermissionsSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31576,19 +32368,23 @@ impl std::str::FromStr for InstallationPermissionsSecrets { } impl std::convert::TryFrom<&str> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsSecrets { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsSecrets { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31639,7 +32435,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecurityEvents { } impl std::str::FromStr for InstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31649,19 +32445,23 @@ impl std::str::FromStr for InstallationPermissionsSecurityEvents { } impl std::convert::TryFrom<&str> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsSecurityEvents { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsSecurityEvents { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31714,7 +32514,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecurityScanningAlert { } impl std::str::FromStr for InstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31724,19 +32524,25 @@ impl std::str::FromStr for InstallationPermissionsSecurityScanningAlert { } impl std::convert::TryFrom<&str> for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsSecurityScanningAlert { +impl std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsSecurityScanningAlert +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsSecurityScanningAlert { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31787,7 +32593,7 @@ impl ::std::fmt::Display for InstallationPermissionsSingleFile { } impl std::str::FromStr for InstallationPermissionsSingleFile { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31797,19 +32603,23 @@ impl std::str::FromStr for InstallationPermissionsSingleFile { } impl std::convert::TryFrom<&str> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsSingleFile { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsSingleFile { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31860,7 +32670,7 @@ impl ::std::fmt::Display for InstallationPermissionsStatuses { } impl std::str::FromStr for InstallationPermissionsStatuses { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31870,19 +32680,23 @@ impl std::str::FromStr for InstallationPermissionsStatuses { } impl std::convert::TryFrom<&str> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsStatuses { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsStatuses { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -31933,7 +32747,7 @@ impl ::std::fmt::Display for InstallationPermissionsTeamDiscussions { } impl std::str::FromStr for InstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -31943,19 +32757,23 @@ impl std::str::FromStr for InstallationPermissionsTeamDiscussions { } impl std::convert::TryFrom<&str> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsTeamDiscussions { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsTeamDiscussions { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32008,7 +32826,7 @@ impl ::std::fmt::Display for InstallationPermissionsVulnerabilityAlerts { } impl std::str::FromStr for InstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -32018,19 +32836,23 @@ impl std::str::FromStr for InstallationPermissionsVulnerabilityAlerts { } impl std::convert::TryFrom<&str> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsVulnerabilityAlerts { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsVulnerabilityAlerts { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32081,7 +32903,7 @@ impl ::std::fmt::Display for InstallationPermissionsWorkflows { } impl std::str::FromStr for InstallationPermissionsWorkflows { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -32091,19 +32913,23 @@ impl std::str::FromStr for InstallationPermissionsWorkflows { } impl std::convert::TryFrom<&str> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationPermissionsWorkflows { +impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationPermissionsWorkflows { +impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32231,12 +33057,12 @@ pub struct InstallationRepositoriesAdded { pub action: InstallationRepositoriesAddedAction, pub installation: Installation, #[doc = "An array of repository objects, which were added to the installation."] - pub repositories_added: Vec, + pub repositories_added: ::std::vec::Vec, #[doc = "An array of repository objects, which were removed from the installation."] - pub repositories_removed: Vec, + pub repositories_removed: ::std::vec::Vec, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositoriesAddedRepositorySelection, - pub requester: Option, + pub requester: ::std::option::Option, pub sender: User, } impl From<&InstallationRepositoriesAdded> for InstallationRepositoriesAdded { @@ -32287,7 +33113,7 @@ impl ::std::fmt::Display for InstallationRepositoriesAddedAction { } impl std::str::FromStr for InstallationRepositoriesAddedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "added" => Ok(Self::Added), _ => Err("invalid value".into()), @@ -32296,19 +33122,23 @@ impl std::str::FromStr for InstallationRepositoriesAddedAction { } impl std::convert::TryFrom<&str> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationRepositoriesAddedAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationRepositoriesAddedAction { +impl std::convert::TryFrom<::std::string::String> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32353,12 +33183,12 @@ impl std::convert::TryFrom for InstallationRepositoriesAddedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesAddedRepositoriesAddedItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -32403,19 +33233,19 @@ impl From<&InstallationRepositoriesAddedRepositoriesAddedItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesAddedRepositoriesRemovedItem { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub full_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub full_name: ::std::option::Option<::std::string::String>, #[doc = "Unique identifier of the repository"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub id: ::std::option::Option, #[doc = "The name of the repository."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub node_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub node_id: ::std::option::Option<::std::string::String>, #[doc = "Whether the repository is private or public."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub private: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub private: ::std::option::Option, } impl From<&InstallationRepositoriesAddedRepositoriesRemovedItem> for InstallationRepositoriesAddedRepositoriesRemovedItem @@ -32474,7 +33304,7 @@ impl ::std::fmt::Display for InstallationRepositoriesAddedRepositorySelection { } impl std::str::FromStr for InstallationRepositoriesAddedRepositorySelection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), @@ -32484,19 +33314,27 @@ impl std::str::FromStr for InstallationRepositoriesAddedRepositorySelection { } impl std::convert::TryFrom<&str> for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationRepositoriesAddedRepositorySelection { +impl std::convert::TryFrom<&::std::string::String> + for InstallationRepositoriesAddedRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationRepositoriesAddedRepositorySelection { +impl std::convert::TryFrom<::std::string::String> + for InstallationRepositoriesAddedRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32669,12 +33507,13 @@ pub struct InstallationRepositoriesRemoved { pub action: InstallationRepositoriesRemovedAction, pub installation: Installation, #[doc = "An array of repository objects, which were added to the installation."] - pub repositories_added: Vec, + pub repositories_added: ::std::vec::Vec, #[doc = "An array of repository objects, which were removed from the installation."] - pub repositories_removed: Vec, + pub repositories_removed: + ::std::vec::Vec, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositoriesRemovedRepositorySelection, - pub requester: Option, + pub requester: ::std::option::Option, pub sender: User, } impl From<&InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved { @@ -32725,7 +33564,7 @@ impl ::std::fmt::Display for InstallationRepositoriesRemovedAction { } impl std::str::FromStr for InstallationRepositoriesRemovedAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "removed" => Ok(Self::Removed), _ => Err("invalid value".into()), @@ -32734,19 +33573,23 @@ impl std::str::FromStr for InstallationRepositoriesRemovedAction { } impl std::convert::TryFrom<&str> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationRepositoriesRemovedAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationRepositoriesRemovedAction { +impl std::convert::TryFrom<::std::string::String> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32791,12 +33634,12 @@ impl std::convert::TryFrom for InstallationRepositoriesRemovedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesRemovedRepositoriesAddedItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -32848,12 +33691,12 @@ impl From<&InstallationRepositoriesRemovedRepositoriesAddedItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesRemovedRepositoriesRemovedItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -32914,7 +33757,7 @@ impl ::std::fmt::Display for InstallationRepositoriesRemovedRepositorySelection } impl std::str::FromStr for InstallationRepositoriesRemovedRepositorySelection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), @@ -32924,19 +33767,27 @@ impl std::str::FromStr for InstallationRepositoriesRemovedRepositorySelection { } impl std::convert::TryFrom<&str> for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationRepositoriesRemovedRepositorySelection { +impl std::convert::TryFrom<&::std::string::String> + for InstallationRepositoriesRemovedRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationRepositoriesRemovedRepositorySelection { +impl std::convert::TryFrom<::std::string::String> + for InstallationRepositoriesRemovedRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -32988,7 +33839,7 @@ impl ::std::fmt::Display for InstallationRepositorySelection { } impl std::str::FromStr for InstallationRepositorySelection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), @@ -32998,19 +33849,23 @@ impl std::str::FromStr for InstallationRepositorySelection { } impl std::convert::TryFrom<&str> for InstallationRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationRepositorySelection { +impl std::convert::TryFrom<&::std::string::String> for InstallationRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationRepositorySelection { +impl std::convert::TryFrom<::std::string::String> for InstallationRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -33111,8 +33966,8 @@ pub struct InstallationSuspend { pub action: InstallationSuspendAction, pub installation: InstallationSuspendInstallation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub repositories: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), pub sender: User, @@ -33165,7 +34020,7 @@ impl ::std::fmt::Display for InstallationSuspendAction { } impl std::str::FromStr for InstallationSuspendAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "suspend" => Ok(Self::Suspend), _ => Err("invalid value".into()), @@ -33174,19 +34029,23 @@ impl std::str::FromStr for InstallationSuspendAction { } impl std::convert::TryFrom<&str> for InstallationSuspendAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendAction { +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -33224,25 +34083,25 @@ impl std::convert::TryFrom for InstallationSuspendAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallation { - pub access_tokens_url: String, + pub access_tokens_url: ::std::string::String, pub account: User, pub app_id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub app_slug: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub app_slug: ::std::option::Option<::std::string::String>, pub created_at: InstallationSuspendInstallationCreatedAt, - pub events: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub has_multiple_single_files: Option, - pub html_url: String, + pub events: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub has_multiple_single_files: ::std::option::Option, + pub html_url: ::std::string::String, #[doc = "The ID of the installation."] pub id: i64, pub permissions: InstallationSuspendInstallationPermissions, - pub repositories_url: String, + pub repositories_url: ::std::string::String, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationSuspendInstallationRepositorySelection, - pub single_file_name: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub single_file_paths: Vec, + pub single_file_name: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub single_file_paths: ::std::vec::Vec<::std::string::String>, pub suspended_at: chrono::DateTime, pub suspended_by: InstallationSuspendInstallationSuspendedBy, #[doc = "The ID of the user or organization this token is being scoped to."] @@ -33286,7 +34145,7 @@ impl From<&InstallationSuspendInstallationCreatedAt> for InstallationSuspendInst } impl std::str::FromStr for InstallationSuspendInstallationCreatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -33298,19 +34157,23 @@ impl std::str::FromStr for InstallationSuspendInstallationCreatedAt { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationCreatedAt { +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationCreatedAt { +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -33553,7 +34416,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationEventsItem { } impl std::str::FromStr for InstallationSuspendInstallationEventsItem { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), @@ -33606,19 +34469,23 @@ impl std::str::FromStr for InstallationSuspendInstallationEventsItem { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationEventsItem { +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationEventsItem { +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -33883,83 +34750,96 @@ impl std::convert::TryFrom for InstallationSuspendInstallationEventsItem #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallationPermissions { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub actions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub administration: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub checks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub content_references: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub contents: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub emails: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub environments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub issues: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub members: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metadata: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub actions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub administration: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub checks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub content_references: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub contents: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub discussions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub emails: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub environments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub issues: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub members: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub metadata: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_administration: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_events: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_hooks: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_packages: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_plan: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_plan: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_projects: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_self_hosted_runners: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_secrets: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_self_hosted_runners: ::std::option::Option< + InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners, + >, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_user_blocking: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub packages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pull_requests: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_projects: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub packages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pull_requests: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_hooks: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_projects: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secret_scanning_alerts: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub security_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub secrets: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub security_events: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_scanning_alert: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub single_file: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub statuses: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub team_discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vulnerability_alerts: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub workflows: Option, + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub single_file: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub statuses: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub team_discussions: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vulnerability_alerts: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub workflows: ::std::option::Option, } impl From<&InstallationSuspendInstallationPermissions> for InstallationSuspendInstallationPermissions @@ -34017,7 +34897,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsActions { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsActions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34027,19 +34907,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsActions { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsActions { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsActions +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsActions { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsActions +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34092,7 +34980,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsAdministr } impl std::str::FromStr for InstallationSuspendInstallationPermissionsAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34102,19 +34990,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsAdministrat } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsAdministration { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsAdministration +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsAdministration { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsAdministration +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34167,7 +35063,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsChecks { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsChecks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34177,19 +35073,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsChecks { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsChecks { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsChecks +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsChecks { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsChecks +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34242,7 +35146,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsContentRe } impl std::str::FromStr for InstallationSuspendInstallationPermissionsContentReferences { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34252,21 +35156,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsContentRefe } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsContentReferences { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsContentReferences +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34319,7 +35229,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsContents } impl std::str::FromStr for InstallationSuspendInstallationPermissionsContents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34329,19 +35239,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsContents { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsContents { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsContents +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsContents { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsContents +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34394,7 +35312,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsDeploymen } impl std::str::FromStr for InstallationSuspendInstallationPermissionsDeployments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34404,19 +35322,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsDeployments } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsDeployments { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsDeployments +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsDeployments { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsDeployments +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34469,7 +35395,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsDiscussio } impl std::str::FromStr for InstallationSuspendInstallationPermissionsDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34479,19 +35405,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsDiscussions } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsDiscussions { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsDiscussions { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34544,7 +35478,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsEmails { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsEmails { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34554,19 +35488,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsEmails { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsEmails { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsEmails +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsEmails { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsEmails +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34619,7 +35561,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsEnvironme } impl std::str::FromStr for InstallationSuspendInstallationPermissionsEnvironments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34629,19 +35571,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsEnvironment } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsEnvironments { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsEnvironments +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsEnvironments { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsEnvironments +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34694,7 +35644,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsIssues { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsIssues { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34704,19 +35654,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsIssues { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsIssues { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsIssues +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsIssues { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsIssues +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34769,7 +35727,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsMembers { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsMembers { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34779,19 +35737,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsMembers { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsMembers { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsMembers +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsMembers { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsMembers +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34844,7 +35810,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsMetadata } impl std::str::FromStr for InstallationSuspendInstallationPermissionsMetadata { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34854,19 +35820,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsMetadata { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsMetadata { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsMetadata +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsMetadata { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsMetadata +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -34919,7 +35893,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -34931,23 +35905,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35000,7 +35978,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35010,23 +35988,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35079,7 +36061,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35089,21 +36071,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationHooks { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsOrganizationHooks +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35156,7 +36144,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35168,23 +36156,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35237,7 +36229,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35247,19 +36239,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationPlan { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsOrganizationPlan +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationPlan { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsOrganizationPlan +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35312,7 +36312,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35324,23 +36324,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35393,7 +36397,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35403,23 +36407,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35476,7 +36484,7 @@ impl ::std::fmt::Display } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35488,23 +36496,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35557,7 +36569,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35569,23 +36581,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35638,7 +36654,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPackages } impl std::str::FromStr for InstallationSuspendInstallationPermissionsPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35648,19 +36664,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsPackages { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsPackages { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsPackages +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsPackages { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsPackages +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35713,7 +36737,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPages { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsPages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35723,19 +36747,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsPages { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsPages { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsPages +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsPages { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsPages +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35788,7 +36820,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPullReque } impl std::str::FromStr for InstallationSuspendInstallationPermissionsPullRequests { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35798,19 +36830,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsPullRequest } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsPullRequests { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsPullRequests +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsPullRequests { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsPullRequests +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35863,7 +36903,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsRepositor } impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35873,19 +36913,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryH } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsRepositoryHooks { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsRepositoryHooks +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsRepositoryHooks { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsRepositoryHooks +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -35938,7 +36986,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsRepositor } impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -35948,23 +36996,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryP } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36017,7 +37069,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecretSca } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36029,23 +37081,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36098,7 +37154,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecrets { } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36108,19 +37164,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecrets { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSecrets { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsSecrets +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSecrets { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsSecrets +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36173,7 +37237,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecurityE } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36183,19 +37247,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityEve } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSecurityEvents { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsSecurityEvents +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSecurityEvents { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsSecurityEvents +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36248,7 +37320,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecurityS } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36260,23 +37332,27 @@ impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36329,7 +37405,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSingleFil } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSingleFile { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36339,19 +37415,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSingleFile } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSingleFile { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsSingleFile +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSingleFile { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsSingleFile +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36404,7 +37488,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsStatuses } impl std::str::FromStr for InstallationSuspendInstallationPermissionsStatuses { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36414,19 +37498,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsStatuses { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsStatuses { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsStatuses +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsStatuses { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsStatuses +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36479,7 +37571,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsTeamDiscu } impl std::str::FromStr for InstallationSuspendInstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36489,19 +37581,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsTeamDiscuss } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsTeamDiscussions { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsTeamDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsTeamDiscussions { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsTeamDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36554,7 +37654,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsVulnerabi } impl std::str::FromStr for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36564,23 +37664,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsVulnerabili } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36633,7 +37737,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsWorkflows } impl std::str::FromStr for InstallationSuspendInstallationPermissionsWorkflows { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -36643,19 +37747,27 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsWorkflows { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsWorkflows { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationPermissionsWorkflows +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsWorkflows { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationPermissionsWorkflows +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36709,7 +37821,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationRepositorySelection } impl std::str::FromStr for InstallationSuspendInstallationRepositorySelection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), @@ -36719,19 +37831,27 @@ impl std::str::FromStr for InstallationSuspendInstallationRepositorySelection { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationRepositorySelection { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationRepositorySelection { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -36863,29 +37983,29 @@ impl std::convert::TryFrom for InstallationSuspendInstallationRepository #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallationSuspendedBy { - pub avatar_url: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub email: Option, - pub events_url: String, - pub followers_url: String, - pub following_url: String, - pub gists_url: String, - pub gravatar_id: String, - pub html_url: String, + pub avatar_url: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub email: ::std::option::Option<::std::string::String>, + pub events_url: ::std::string::String, + pub followers_url: ::std::string::String, + pub following_url: ::std::string::String, + pub gists_url: ::std::string::String, + pub gravatar_id: ::std::string::String, + pub html_url: ::std::string::String, pub id: i64, - pub login: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, - pub node_id: String, - pub organizations_url: String, - pub received_events_url: String, - pub repos_url: String, + pub login: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option<::std::string::String>, + pub node_id: ::std::string::String, + pub organizations_url: ::std::string::String, + pub received_events_url: ::std::string::String, + pub repos_url: ::std::string::String, pub site_admin: bool, - pub starred_url: String, - pub subscriptions_url: String, + pub starred_url: ::std::string::String, + pub subscriptions_url: ::std::string::String, #[serde(rename = "type")] pub type_: InstallationSuspendInstallationSuspendedByType, - pub url: String, + pub url: ::std::string::String, } impl From<&InstallationSuspendInstallationSuspendedBy> for InstallationSuspendInstallationSuspendedBy @@ -36944,7 +38064,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationSuspendedByType { } impl std::str::FromStr for InstallationSuspendInstallationSuspendedByType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Bot" => Ok(Self::Bot), "User" => Ok(Self::User), @@ -36955,19 +38075,27 @@ impl std::str::FromStr for InstallationSuspendInstallationSuspendedByType { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationSuspendedByType { +impl std::convert::TryFrom<&::std::string::String> + for InstallationSuspendInstallationSuspendedByType +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationSuspendedByType { +impl std::convert::TryFrom<::std::string::String> + for InstallationSuspendInstallationSuspendedByType +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -37018,7 +38146,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationTargetType { } impl std::str::FromStr for InstallationSuspendInstallationTargetType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), @@ -37028,19 +38156,23 @@ impl std::str::FromStr for InstallationSuspendInstallationTargetType { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationTargetType { +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationTargetType { +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -37075,7 +38207,7 @@ impl From<&InstallationSuspendInstallationUpdatedAt> for InstallationSuspendInst } impl std::str::FromStr for InstallationSuspendInstallationUpdatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -37087,19 +38219,23 @@ impl std::str::FromStr for InstallationSuspendInstallationUpdatedAt { } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationSuspendInstallationUpdatedAt { +impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationSuspendInstallationUpdatedAt { +impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -37162,12 +38298,12 @@ impl From for InstallationSuspendInstallationUpdatedAt { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendRepositoriesItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -37221,7 +38357,7 @@ impl ::std::fmt::Display for InstallationTargetType { } impl std::str::FromStr for InstallationTargetType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), @@ -37231,19 +38367,23 @@ impl std::str::FromStr for InstallationTargetType { } impl std::convert::TryFrom<&str> for InstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationTargetType { +impl std::convert::TryFrom<&::std::string::String> for InstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationTargetType { +impl std::convert::TryFrom<::std::string::String> for InstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -37343,8 +38483,8 @@ pub struct InstallationUnsuspend { pub action: InstallationUnsuspendAction, pub installation: InstallationUnsuspendInstallation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub repositories: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), pub sender: User, @@ -37397,7 +38537,7 @@ impl ::std::fmt::Display for InstallationUnsuspendAction { } impl std::str::FromStr for InstallationUnsuspendAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "unsuspend" => Ok(Self::Unsuspend), _ => Err("invalid value".into()), @@ -37406,19 +38546,23 @@ impl std::str::FromStr for InstallationUnsuspendAction { } impl std::convert::TryFrom<&str> for InstallationUnsuspendAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendAction { +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendAction { +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -37455,25 +38599,25 @@ impl std::convert::TryFrom for InstallationUnsuspendAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendInstallation { - pub access_tokens_url: String, + pub access_tokens_url: ::std::string::String, pub account: User, pub app_id: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub app_slug: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub app_slug: ::std::option::Option<::std::string::String>, pub created_at: InstallationUnsuspendInstallationCreatedAt, - pub events: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub has_multiple_single_files: Option, - pub html_url: String, + pub events: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub has_multiple_single_files: ::std::option::Option, + pub html_url: ::std::string::String, #[doc = "The ID of the installation."] pub id: i64, pub permissions: InstallationUnsuspendInstallationPermissions, - pub repositories_url: String, + pub repositories_url: ::std::string::String, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationUnsuspendInstallationRepositorySelection, - pub single_file_name: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub single_file_paths: Vec, + pub single_file_name: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub single_file_paths: ::std::vec::Vec<::std::string::String>, pub suspended_at: (), pub suspended_by: (), #[doc = "The ID of the user or organization this token is being scoped to."] @@ -37519,7 +38663,7 @@ impl From<&InstallationUnsuspendInstallationCreatedAt> } impl std::str::FromStr for InstallationUnsuspendInstallationCreatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -37531,19 +38675,23 @@ impl std::str::FromStr for InstallationUnsuspendInstallationCreatedAt { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationCreatedAt { +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationCreatedAt { +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -37786,7 +38934,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationEventsItem { } impl std::str::FromStr for InstallationUnsuspendInstallationEventsItem { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), @@ -37839,19 +38987,23 @@ impl std::str::FromStr for InstallationUnsuspendInstallationEventsItem { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationEventsItem { +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationEventsItem { +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38116,85 +39268,98 @@ impl std::convert::TryFrom for InstallationUnsuspendInstallationEventsIt #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendInstallationPermissions { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub actions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub administration: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub checks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub content_references: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub contents: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub deployments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub emails: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub environments: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub issues: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub members: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metadata: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_administration: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub actions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub administration: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub checks: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub content_references: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub contents: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub deployments: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub discussions: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub emails: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub environments: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub issues: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub members: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub metadata: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_administration: ::std::option::Option< + InstallationUnsuspendInstallationPermissionsOrganizationAdministration, + >, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_events: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_hooks: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_packages: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_plan: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_plan: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_projects: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_secrets: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub organization_self_hosted_runners: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub organization_self_hosted_runners: ::std::option::Option< + InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners, + >, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_user_blocking: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub packages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pages: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pull_requests: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_hooks: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub repository_projects: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub packages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pages: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pull_requests: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_hooks: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub repository_projects: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secret_scanning_alerts: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub secrets: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub security_events: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub secrets: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub security_events: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_scanning_alert: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub single_file: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub statuses: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub team_discussions: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub single_file: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub statuses: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub team_discussions: + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub vulnerability_alerts: - Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub workflows: Option, + ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub workflows: ::std::option::Option, } impl From<&InstallationUnsuspendInstallationPermissions> for InstallationUnsuspendInstallationPermissions @@ -38252,7 +39417,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsActions } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsActions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38262,19 +39427,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsActions { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsActions { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsActions +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsActions { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsActions +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38327,7 +39500,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsAdminis } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38337,19 +39510,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsAdministr } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsAdministration { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsAdministration +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsAdministration { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsAdministration +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38402,7 +39583,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsChecks } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsChecks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38412,19 +39593,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsChecks { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsChecks { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsChecks +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsChecks { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsChecks +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38477,7 +39666,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsContent } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContentReferences { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38487,23 +39676,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContentRe } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38556,7 +39749,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsContent } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38566,19 +39759,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContents } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsContents { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsContents +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsContents { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsContents +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38631,7 +39832,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsDeploym } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDeployments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38641,19 +39842,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDeploymen } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsDeployments { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsDeployments +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsDeployments { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsDeployments +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38706,7 +39915,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsDiscuss } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38716,19 +39925,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDiscussio } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsDiscussions { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsDiscussions { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38781,7 +39998,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsEmails } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEmails { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38791,19 +40008,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEmails { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsEmails { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsEmails +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsEmails { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsEmails +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38856,7 +40081,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsEnviron } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEnvironments { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38866,19 +40091,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEnvironme } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsEnvironments { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsEnvironments +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsEnvironments { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsEnvironments +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -38931,7 +40164,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsIssues } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsIssues { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -38941,19 +40174,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsIssues { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsIssues { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsIssues +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsIssues { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsIssues +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39006,7 +40247,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsMembers } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMembers { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39016,19 +40257,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMembers { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsMembers { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsMembers +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsMembers { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsMembers +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39081,7 +40330,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsMetadat } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMetadata { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39091,19 +40340,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMetadata } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsMetadata { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsMetadata +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsMetadata { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsMetadata +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39160,7 +40417,7 @@ impl ::std::fmt::Display } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39172,23 +40429,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39241,7 +40502,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39253,23 +40514,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39322,7 +40587,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39332,23 +40597,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39401,7 +40670,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39413,23 +40682,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39482,7 +40755,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39492,23 +40765,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39561,7 +40838,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39573,23 +40850,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39642,7 +40923,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39654,23 +40935,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39729,7 +41014,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39741,23 +41026,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39810,7 +41099,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39822,23 +41111,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39891,7 +41184,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPackage } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPackages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39901,19 +41194,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPackages } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsPackages { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsPackages +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsPackages { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsPackages +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -39966,7 +41267,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPages { } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPages { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -39976,19 +41277,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPages { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsPages { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsPages +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsPages { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsPages +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40041,7 +41350,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPullReq } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPullRequests { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40051,19 +41360,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPullReque } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsPullRequests { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsPullRequests +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsPullRequests { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsPullRequests +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40116,7 +41433,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsReposit } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40126,21 +41443,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositor } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsRepositoryHooks { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsRepositoryHooks +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40193,7 +41516,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsReposit } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40205,23 +41528,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40274,7 +41601,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecretS } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40286,23 +41613,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40355,7 +41686,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecrets } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecrets { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40365,19 +41696,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecrets { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSecrets { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsSecrets +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSecrets { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsSecrets +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40430,7 +41769,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecurit } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40440,19 +41779,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityE } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSecurityEvents { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsSecurityEvents +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSecurityEvents { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsSecurityEvents +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40505,7 +41852,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecurit } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40517,23 +41864,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40586,7 +41937,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSingleF } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSingleFile { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40596,19 +41947,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSingleFil } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSingleFile { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsSingleFile +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSingleFile { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsSingleFile +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40661,7 +42020,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsStatuse } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsStatuses { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40671,19 +42030,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsStatuses } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsStatuses { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsStatuses +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsStatuses { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsStatuses +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40736,7 +42103,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsTeamDis } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40746,21 +42113,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsTeamDiscu } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsTeamDiscussions { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsTeamDiscussions +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40813,7 +42186,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsVulnera } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40825,23 +42198,27 @@ impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40894,7 +42271,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsWorkflo } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsWorkflows { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), @@ -40904,19 +42281,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsWorkflows } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsWorkflows { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationPermissionsWorkflows +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsWorkflows { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationPermissionsWorkflows +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -40970,7 +42355,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationRepositorySelectio } impl std::str::FromStr for InstallationUnsuspendInstallationRepositorySelection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), @@ -40980,19 +42365,27 @@ impl std::str::FromStr for InstallationUnsuspendInstallationRepositorySelection } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationRepositorySelection { +impl std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationRepositorySelection { +impl std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationRepositorySelection +{ type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -41043,7 +42436,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationTargetType { } impl std::str::FromStr for InstallationUnsuspendInstallationTargetType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), @@ -41053,19 +42446,23 @@ impl std::str::FromStr for InstallationUnsuspendInstallationTargetType { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationTargetType { +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationTargetType { +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -41102,7 +42499,7 @@ impl From<&InstallationUnsuspendInstallationUpdatedAt> } impl std::str::FromStr for InstallationUnsuspendInstallationUpdatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -41114,19 +42511,23 @@ impl std::str::FromStr for InstallationUnsuspendInstallationUpdatedAt { } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationUpdatedAt { +impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUnsuspendInstallationUpdatedAt { +impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -41189,12 +42590,12 @@ impl From for InstallationUnsuspendInstallationUpdatedAt { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendRepositoriesItem { - pub full_name: String, + pub full_name: ::std::string::String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] - pub name: String, - pub node_id: String, + pub name: ::std::string::String, + pub node_id: ::std::string::String, #[doc = "Whether the repository is private or public."] pub private: bool, } @@ -41234,7 +42635,7 @@ impl From<&InstallationUpdatedAt> for InstallationUpdatedAt { } impl std::str::FromStr for InstallationUpdatedAt { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { @@ -41246,19 +42647,23 @@ impl std::str::FromStr for InstallationUpdatedAt { } impl std::convert::TryFrom<&str> for InstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&String> for InstallationUpdatedAt { +impl std::convert::TryFrom<&::std::string::String> for InstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom for InstallationUpdatedAt { +impl std::convert::TryFrom<::std::string::String> for InstallationUpdatedAt { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -41478,41 +42883,41 @@ impl From for InstallationUpdatedAt { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Issue { - pub active_lock_reason: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub assignee: Option, - pub assignees: Vec, + pub active_lock_reason: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub assignee: ::std::option::Option, + pub assignees: ::std::vec::Vec, pub author_association: AuthorAssociation, #[doc = "Contents of the issue"] - pub body: Option, - pub closed_at: Option>, + pub body: ::std::option::Option<::std::string::String>, + pub closed_at: ::std::option::Option>, pub comments: i64, - pub comments_url: String, + pub comments_url: ::std::string::String, pub created_at: chrono::DateTime, - pub events_url: String, - pub html_url: String, + pub events_url: ::std::string::String, + pub html_url: ::std::string::String, pub id: i64, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub labels: Vec