diff --git a/cargo-typify/tests/outputs/builder.rs b/cargo-typify/tests/outputs/builder.rs index 8e2ebdf9..e0427ba6 100644 --- a/cargo-typify/tests/outputs/builder.rs +++ b/cargo-typify/tests/outputs/builder.rs @@ -50,17 +50,21 @@ impl ::std::ops::Deref for Fruit { &self.0 } } -impl From for ::std::collections::HashMap<::std::string::String, ::std::string::String> { +impl ::std::convert::From + for ::std::collections::HashMap<::std::string::String, ::std::string::String> +{ fn from(value: Fruit) -> Self { value.0 } } -impl From<&Fruit> for Fruit { +impl ::std::convert::From<&Fruit> for Fruit { fn from(value: &Fruit) -> Self { value.clone() } } -impl From<::std::collections::HashMap<::std::string::String, ::std::string::String>> for Fruit { +impl ::std::convert::From<::std::collections::HashMap<::std::string::String, ::std::string::String>> + for Fruit +{ fn from( value: ::std::collections::HashMap<::std::string::String, ::std::string::String>, ) -> Self { @@ -100,17 +104,17 @@ pub enum FruitOrVeg { Veg(Veggie), Fruit(Fruit), } -impl From<&FruitOrVeg> for FruitOrVeg { +impl ::std::convert::From<&FruitOrVeg> for FruitOrVeg { fn from(value: &FruitOrVeg) -> Self { value.clone() } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Veggie) -> Self { Self::Veg(value) } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Fruit) -> Self { Self::Fruit(value) } @@ -148,7 +152,7 @@ pub struct Veggie { #[serde(rename = "veggieName")] pub veggie_name: ::std::string::String, } -impl From<&Veggie> for Veggie { +impl ::std::convert::From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { value.clone() } @@ -192,11 +196,19 @@ pub struct Veggies { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } -impl From<&Veggies> for Veggies { +impl ::std::convert::From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { value.clone() } } +impl ::std::default::Default for Veggies { + fn default() -> Self { + Self { + fruits: Default::default(), + vegetables: Default::default(), + } + } +} impl Veggies { pub fn builder() -> builder::Veggies { Default::default() @@ -209,7 +221,7 @@ pub mod builder { veggie_like: ::std::result::Result, veggie_name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Veggie { + impl ::std::default::Default for Veggie { fn default() -> Self { Self { veggie_like: Err("no value supplied for veggie_like".to_string()), @@ -220,8 +232,8 @@ pub mod builder { impl Veggie { pub fn veggie_like(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.veggie_like = value .try_into() @@ -230,8 +242,8 @@ pub mod builder { } pub fn veggie_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.veggie_name = value .try_into() @@ -248,7 +260,7 @@ pub mod builder { }) } } - impl From for Veggie { + impl ::std::convert::From for Veggie { fn from(value: super::Veggie) -> Self { Self { veggie_like: Ok(value.veggie_like), @@ -262,7 +274,7 @@ pub mod builder { ::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 { + impl ::std::default::Default for Veggies { fn default() -> Self { Self { fruits: Ok(Default::default()), @@ -273,8 +285,8 @@ pub mod builder { impl Veggies { pub fn fruits(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.fruits = value .try_into() @@ -283,8 +295,8 @@ pub mod builder { } pub fn vegetables(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.vegetables = value .try_into() @@ -301,7 +313,7 @@ pub mod builder { }) } } - impl From for Veggies { + impl ::std::convert::From for Veggies { fn from(value: super::Veggies) -> Self { Self { fruits: Ok(value.fruits), diff --git a/cargo-typify/tests/outputs/custom_btree_map.rs b/cargo-typify/tests/outputs/custom_btree_map.rs index b49d03fb..a871ad6c 100644 --- a/cargo-typify/tests/outputs/custom_btree_map.rs +++ b/cargo-typify/tests/outputs/custom_btree_map.rs @@ -50,17 +50,22 @@ impl ::std::ops::Deref for Fruit { &self.0 } } -impl From for ::std::collections::BTreeMap<::std::string::String, ::std::string::String> { +impl ::std::convert::From + for ::std::collections::BTreeMap<::std::string::String, ::std::string::String> +{ fn from(value: Fruit) -> Self { value.0 } } -impl From<&Fruit> for Fruit { +impl ::std::convert::From<&Fruit> for Fruit { fn from(value: &Fruit) -> Self { value.clone() } } -impl From<::std::collections::BTreeMap<::std::string::String, ::std::string::String>> for Fruit { +impl + ::std::convert::From<::std::collections::BTreeMap<::std::string::String, ::std::string::String>> + for Fruit +{ fn from( value: ::std::collections::BTreeMap<::std::string::String, ::std::string::String>, ) -> Self { @@ -100,17 +105,17 @@ pub enum FruitOrVeg { Veg(Veggie), Fruit(Fruit), } -impl From<&FruitOrVeg> for FruitOrVeg { +impl ::std::convert::From<&FruitOrVeg> for FruitOrVeg { fn from(value: &FruitOrVeg) -> Self { value.clone() } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Veggie) -> Self { Self::Veg(value) } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Fruit) -> Self { Self::Fruit(value) } @@ -148,7 +153,7 @@ pub struct Veggie { #[serde(rename = "veggieName")] pub veggie_name: ::std::string::String, } -impl From<&Veggie> for Veggie { +impl ::std::convert::From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { value.clone() } @@ -192,11 +197,19 @@ pub struct Veggies { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } -impl From<&Veggies> for Veggies { +impl ::std::convert::From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { value.clone() } } +impl ::std::default::Default for Veggies { + fn default() -> Self { + Self { + fruits: Default::default(), + vegetables: Default::default(), + } + } +} impl Veggies { pub fn builder() -> builder::Veggies { Default::default() @@ -209,7 +222,7 @@ pub mod builder { veggie_like: ::std::result::Result, veggie_name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Veggie { + impl ::std::default::Default for Veggie { fn default() -> Self { Self { veggie_like: Err("no value supplied for veggie_like".to_string()), @@ -220,8 +233,8 @@ pub mod builder { impl Veggie { pub fn veggie_like(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.veggie_like = value .try_into() @@ -230,8 +243,8 @@ pub mod builder { } pub fn veggie_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.veggie_name = value .try_into() @@ -248,7 +261,7 @@ pub mod builder { }) } } - impl From for Veggie { + impl ::std::convert::From for Veggie { fn from(value: super::Veggie) -> Self { Self { veggie_like: Ok(value.veggie_like), @@ -262,7 +275,7 @@ pub mod builder { ::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 { + impl ::std::default::Default for Veggies { fn default() -> Self { Self { fruits: Ok(Default::default()), @@ -273,8 +286,8 @@ pub mod builder { impl Veggies { pub fn fruits(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.fruits = value .try_into() @@ -283,8 +296,8 @@ pub mod builder { } pub fn vegetables(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.vegetables = value .try_into() @@ -301,7 +314,7 @@ pub mod builder { }) } } - impl From for Veggies { + impl ::std::convert::From for Veggies { fn from(value: super::Veggies) -> Self { Self { fruits: Ok(value.fruits), diff --git a/cargo-typify/tests/outputs/derive.rs b/cargo-typify/tests/outputs/derive.rs index bc3b9b05..2e4bb81e 100644 --- a/cargo-typify/tests/outputs/derive.rs +++ b/cargo-typify/tests/outputs/derive.rs @@ -50,17 +50,21 @@ impl ::std::ops::Deref for Fruit { &self.0 } } -impl From for ::std::collections::HashMap<::std::string::String, ::std::string::String> { +impl ::std::convert::From + for ::std::collections::HashMap<::std::string::String, ::std::string::String> +{ fn from(value: Fruit) -> Self { value.0 } } -impl From<&Fruit> for Fruit { +impl ::std::convert::From<&Fruit> for Fruit { fn from(value: &Fruit) -> Self { value.clone() } } -impl From<::std::collections::HashMap<::std::string::String, ::std::string::String>> for Fruit { +impl ::std::convert::From<::std::collections::HashMap<::std::string::String, ::std::string::String>> + for Fruit +{ fn from( value: ::std::collections::HashMap<::std::string::String, ::std::string::String>, ) -> Self { @@ -100,17 +104,17 @@ pub enum FruitOrVeg { Veg(Veggie), Fruit(Fruit), } -impl From<&FruitOrVeg> for FruitOrVeg { +impl ::std::convert::From<&FruitOrVeg> for FruitOrVeg { fn from(value: &FruitOrVeg) -> Self { value.clone() } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Veggie) -> Self { Self::Veg(value) } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Fruit) -> Self { Self::Fruit(value) } @@ -148,7 +152,7 @@ pub struct Veggie { #[serde(rename = "veggieName")] pub veggie_name: ::std::string::String, } -impl From<&Veggie> for Veggie { +impl ::std::convert::From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { value.clone() } @@ -187,8 +191,16 @@ pub struct Veggies { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } -impl From<&Veggies> for Veggies { +impl ::std::convert::From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { value.clone() } } +impl ::std::default::Default for Veggies { + fn default() -> Self { + Self { + fruits: Default::default(), + vegetables: Default::default(), + } + } +} diff --git a/cargo-typify/tests/outputs/multi_derive.rs b/cargo-typify/tests/outputs/multi_derive.rs index ec31a143..58a73ecf 100644 --- a/cargo-typify/tests/outputs/multi_derive.rs +++ b/cargo-typify/tests/outputs/multi_derive.rs @@ -52,17 +52,21 @@ impl ::std::ops::Deref for Fruit { &self.0 } } -impl From for ::std::collections::HashMap<::std::string::String, ::std::string::String> { +impl ::std::convert::From + for ::std::collections::HashMap<::std::string::String, ::std::string::String> +{ fn from(value: Fruit) -> Self { value.0 } } -impl From<&Fruit> for Fruit { +impl ::std::convert::From<&Fruit> for Fruit { fn from(value: &Fruit) -> Self { value.clone() } } -impl From<::std::collections::HashMap<::std::string::String, ::std::string::String>> for Fruit { +impl ::std::convert::From<::std::collections::HashMap<::std::string::String, ::std::string::String>> + for Fruit +{ fn from( value: ::std::collections::HashMap<::std::string::String, ::std::string::String>, ) -> Self { @@ -104,17 +108,17 @@ pub enum FruitOrVeg { Veg(Veggie), Fruit(Fruit), } -impl From<&FruitOrVeg> for FruitOrVeg { +impl ::std::convert::From<&FruitOrVeg> for FruitOrVeg { fn from(value: &FruitOrVeg) -> Self { value.clone() } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Veggie) -> Self { Self::Veg(value) } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Fruit) -> Self { Self::Fruit(value) } @@ -154,7 +158,7 @@ pub struct Veggie { #[serde(rename = "veggieName")] pub veggie_name: ::std::string::String, } -impl From<&Veggie> for Veggie { +impl ::std::convert::From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { value.clone() } @@ -195,8 +199,16 @@ pub struct Veggies { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } -impl From<&Veggies> for Veggies { +impl ::std::convert::From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { value.clone() } } +impl ::std::default::Default for Veggies { + fn default() -> Self { + Self { + fruits: Default::default(), + vegetables: Default::default(), + } + } +} diff --git a/cargo-typify/tests/outputs/no-builder.rs b/cargo-typify/tests/outputs/no-builder.rs index d354cc17..5b6827b7 100644 --- a/cargo-typify/tests/outputs/no-builder.rs +++ b/cargo-typify/tests/outputs/no-builder.rs @@ -50,17 +50,21 @@ impl ::std::ops::Deref for Fruit { &self.0 } } -impl From for ::std::collections::HashMap<::std::string::String, ::std::string::String> { +impl ::std::convert::From + for ::std::collections::HashMap<::std::string::String, ::std::string::String> +{ fn from(value: Fruit) -> Self { value.0 } } -impl From<&Fruit> for Fruit { +impl ::std::convert::From<&Fruit> for Fruit { fn from(value: &Fruit) -> Self { value.clone() } } -impl From<::std::collections::HashMap<::std::string::String, ::std::string::String>> for Fruit { +impl ::std::convert::From<::std::collections::HashMap<::std::string::String, ::std::string::String>> + for Fruit +{ fn from( value: ::std::collections::HashMap<::std::string::String, ::std::string::String>, ) -> Self { @@ -100,17 +104,17 @@ pub enum FruitOrVeg { Veg(Veggie), Fruit(Fruit), } -impl From<&FruitOrVeg> for FruitOrVeg { +impl ::std::convert::From<&FruitOrVeg> for FruitOrVeg { fn from(value: &FruitOrVeg) -> Self { value.clone() } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Veggie) -> Self { Self::Veg(value) } } -impl From for FruitOrVeg { +impl ::std::convert::From for FruitOrVeg { fn from(value: Fruit) -> Self { Self::Fruit(value) } @@ -148,7 +152,7 @@ pub struct Veggie { #[serde(rename = "veggieName")] pub veggie_name: ::std::string::String, } -impl From<&Veggie> for Veggie { +impl ::std::convert::From<&Veggie> for Veggie { fn from(value: &Veggie) -> Self { value.clone() } @@ -187,8 +191,16 @@ pub struct Veggies { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } -impl From<&Veggies> for Veggies { +impl ::std::convert::From<&Veggies> for Veggies { fn from(value: &Veggies) -> Self { value.clone() } } +impl ::std::default::Default for Veggies { + fn default() -> Self { + Self { + fruits: Default::default(), + vegetables: Default::default(), + } + } +} diff --git a/typify-impl/src/enums.rs b/typify-impl/src/enums.rs index d0c8d2da..5309d5b2 100644 --- a/typify-impl/src/enums.rs +++ b/typify-impl/src/enums.rs @@ -1473,13 +1473,13 @@ mod tests { Err(::std::string::String), } - impl From<&ResultX> for ResultX { + impl ::std::convert::From<&ResultX> for ResultX { fn from(value: &ResultX) -> Self { value.clone() } } - impl From for ResultX { + impl ::std::convert::From for ResultX { fn from(value: u32) -> Self { Self::Ok(value) } @@ -1525,13 +1525,13 @@ mod tests { Err(::std::string::String), } - impl From<&ResultX> for ResultX { + impl ::std::convert::From<&ResultX> for ResultX { fn from(value: &ResultX) -> Self { value.clone() } } - impl From for ResultX { + impl ::std::convert::From for ResultX { fn from(value: u32) -> Self { Self::Ok(value) } diff --git a/typify-impl/src/lib.rs b/typify-impl/src/lib.rs index e003caa9..9c37445a 100644 --- a/typify-impl/src/lib.rs +++ b/typify-impl/src/lib.rs @@ -518,19 +518,16 @@ impl TypeSpaceSettings { /// /// ## Requirements /// - /// - Have an `is_empty` method that returns a boolean. - /// - Have two generic parameters, `K` and `V`. - /// - Have a [`std::fmt::Debug`] impl. - /// - Have a [`serde::Serialize``] impl. - /// - Have a [`serde::Deserialize``] impl. - /// - Have a [`Clone`] impl. + /// - An `is_empty` method that returns a boolean + /// - Two generic parameters, `K` and `V` + /// - [`Default`] + [`Clone`] + [`Debug`] + + /// [`Serialize`][serde::Serialize] + [`Deserialize`][serde::Deserialize] /// /// ## Examples /// /// - [`::std::collections::HashMap`] /// - [`::std::collections::BTreeMap`] - /// - [`::indexmap::IndexMap`] - /// + /// - [`::indexmap::IndexMap`](https://docs.rs/indexmap/latest/indexmap/map/struct.IndexMap.html) pub fn with_map_type>(&mut self, map_type: T) -> &mut Self { self.map_type = map_type.into(); self diff --git a/typify-impl/src/merge.rs b/typify-impl/src/merge.rs index 6ad751da..33b5cd24 100644 --- a/typify-impl/src/merge.rs +++ b/typify-impl/src/merge.rs @@ -288,6 +288,10 @@ pub(crate) fn try_merge_with_subschemas( }; if if_schema.is_some() || then_schema.is_some() || else_schema.is_some() { + println!( + "{}", + serde_json::to_string_pretty(&maybe_subschemas).unwrap() + ); unimplemented!("if/then/else schemas are not supported"); } diff --git a/typify-impl/src/type_entry.rs b/typify-impl/src/type_entry.rs index b4f53a34..8328b8eb 100644 --- a/typify-impl/src/type_entry.rs +++ b/typify-impl/src/type_entry.rs @@ -758,7 +758,7 @@ impl TypeEntry { } } } - impl std::str::FromStr for #type_name { + impl ::std::str::FromStr for #type_name { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { @@ -768,7 +768,7 @@ impl TypeEntry { } } } - impl std::convert::TryFrom<&str> for #type_name { + impl ::std::convert::TryFrom<&str> for #type_name { type Error = self::error::ConversionError; fn try_from(value: &str) -> @@ -777,7 +777,7 @@ impl TypeEntry { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for #type_name { + impl ::std::convert::TryFrom<&::std::string::String> for #type_name { type Error = self::error::ConversionError; fn try_from(value: &::std::string::String) -> @@ -786,7 +786,7 @@ impl TypeEntry { value.parse() } } - impl std::convert::TryFrom<::std::string::String> for #type_name { + impl ::std::convert::TryFrom<::std::string::String> for #type_name { type Error = self::error::ConversionError; fn try_from(value: ::std::string::String) -> @@ -801,7 +801,7 @@ impl TypeEntry { let default_impl = default.as_ref().map(|value| { let default_stream = self.output_value(type_space, &value.0, "e! {}).unwrap(); quote! { - impl Default for #type_name { + impl ::std::default::Default for #type_name { fn default() -> Self { #default_stream } @@ -817,7 +817,7 @@ impl TypeEntry { .map(|variant| format_ident!("{}", variant.name)); quote! { - impl std::str::FromStr for #type_name { + impl ::std::str::FromStr for #type_name { type Err = self::error::ConversionError; fn from_str(value: &str) -> @@ -834,7 +834,7 @@ impl TypeEntry { } } } - impl std::convert::TryFrom<&str> for #type_name { + impl ::std::convert::TryFrom<&str> for #type_name { type Error = self::error::ConversionError; fn try_from(value: &str) -> @@ -843,7 +843,7 @@ impl TypeEntry { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for #type_name { + impl ::std::convert::TryFrom<&::std::string::String> for #type_name { type Error = self::error::ConversionError; fn try_from(value: &::std::string::String) -> @@ -852,7 +852,7 @@ impl TypeEntry { value.parse() } } - impl std::convert::TryFrom<::std::string::String> for #type_name { + impl ::std::convert::TryFrom<::std::string::String> for #type_name { type Error = self::error::ConversionError; fn try_from(value: ::std::string::String) -> @@ -931,7 +931,7 @@ impl TypeEntry { let variant_type_ident = variant_type.type_ident(type_space, &None); let variant_name = format_ident!("{}", variant.name); quote! { - impl From<#variant_type_ident> for #type_name { + impl ::std::convert::From<#variant_type_ident> for #type_name { fn from(value: #variant_type_ident) -> Self { @@ -959,7 +959,7 @@ impl TypeEntry { let variant_name = format_ident!("{}", variant.name); let ii = (0..type_ids.len()).map(syn::Index::from); Some(quote! { - impl From<#variant_type_ident> for #type_name { + impl ::std::convert::From<#variant_type_ident> for #type_name { fn from(value: #variant_type_ident) -> Self { Self::#variant_name( #( value.#ii, )* @@ -990,7 +990,7 @@ impl TypeEntry { #(#variants_decl)* } - impl From<&#type_name> for #type_name { + impl ::std::convert::From<&#type_name> for #type_name { fn from(value: &#type_name) -> Self { value.clone() } @@ -1012,6 +1012,12 @@ impl TypeEntry { struct_details: &TypeEntryStruct, derive_set: BTreeSet<&str>, ) { + enum PropDefault { + None(String), + Default(TokenStream), + Custom(TokenStream), + } + let TypeEntryStruct { name, rename, @@ -1070,22 +1076,18 @@ impl TypeEntry { prop_serde.push(serde); prop_default.push(match default_fn { - DefaultFunction::Default => { - quote! { - Ok(Default::default()) - } - } + DefaultFunction::Default => PropDefault::Default(quote! { + Default::default() + }), DefaultFunction::Custom(fn_name) => { let default_fn = syn::parse_str::(&fn_name).unwrap(); - quote! { - Ok(super::#default_fn()) - } + PropDefault::Custom(quote! { + #default_fn() + }) } DefaultFunction::None => { let err_msg = format!("no value supplied for {}", prop.name); - quote! { - Err(#err_msg.to_string()) - } + PropDefault::None(err_msg) } }); }); @@ -1111,7 +1113,7 @@ impl TypeEntry { )* } - impl From<&#type_name> for #type_name { + impl ::std::convert::From<&#type_name> for #type_name { fn from(value: &#type_name) -> Self { value.clone() } @@ -1126,13 +1128,39 @@ impl TypeEntry { OutputSpaceMod::Crate, name, quote! { - impl Default for #type_name { + impl ::std::default::Default for #type_name { fn default() -> Self { #default_stream } } }, ); + } else if let Some(prop_default) = prop_default + .iter() + .map(|pd| match pd { + PropDefault::None(_) => None, + PropDefault::Default(token_stream) | PropDefault::Custom(token_stream) => { + Some(token_stream) + } + }) + .collect::>>() + { + // If all properties have a default, we can generate a Default impl + output.add_item( + OutputSpaceMod::Crate, + name, + quote! { + impl ::std::default::Default for #type_name { + fn default() -> Self { + Self { + #( + #prop_name: #prop_default, + )* + } + } + } + }, + ) } if type_space.settings.struct_builder { @@ -1156,6 +1184,12 @@ impl TypeEntry { quote! { value } }; + let prop_default = prop_default.iter().map(|pd| match pd { + PropDefault::None(err_msg) => quote! { Err(#err_msg.to_string()) }, + PropDefault::Default(default_fn) => quote! { Ok(#default_fn) }, + PropDefault::Custom(custom_fn) => quote! { Ok(super::#custom_fn) }, + }); + output.add_item( OutputSpaceMod::Builder, name, @@ -1167,7 +1201,7 @@ impl TypeEntry { )* } - impl Default for #type_name { + impl ::std::default::Default for #type_name { fn default() -> Self { Self { #( @@ -1181,8 +1215,8 @@ impl TypeEntry { #( pub fn #prop_name(mut self, value: T) -> Self where - T: std::convert::TryInto<#prop_type_scoped>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<#prop_type_scoped>, + T::Error: ::std::fmt::Display, { self.#prop_name = value.try_into() .map_err(|e| format!(#prop_error, e)); @@ -1209,7 +1243,7 @@ impl TypeEntry { } // Construct a builder from the item. - impl From for #type_name { + impl ::std::convert::From for #type_name { fn from(#value_ident: super::#type_name) -> Self { Self { #( @@ -1281,9 +1315,9 @@ impl TypeEntry { && !is_str) .then(|| { quote! { - impl std::str::FromStr for #type_name { + 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) -> ::std::result::Result @@ -1291,9 +1325,9 @@ impl TypeEntry { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for #type_name { + 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) -> ::std::result::Result @@ -1301,7 +1335,7 @@ impl TypeEntry { value.parse() } } - impl std::convert::TryFrom<&String> for #type_name { + impl ::std::convert::TryFrom<&String> for #type_name { type Error = <#inner_type_name as ::std::str::FromStr>::Err; @@ -1311,9 +1345,9 @@ impl TypeEntry { value.parse() } } - impl std::convert::TryFrom for #type_name { + 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) -> ::std::result::Result @@ -1337,7 +1371,7 @@ impl TypeEntry { }); quote! { - impl From<#inner_type_name> for #type_name { + impl ::std::convert::From<#inner_type_name> for #type_name { fn from(value: #inner_type_name) -> Self { Self(value) } @@ -1520,7 +1554,7 @@ impl TypeEntry { let default_impl = default.as_ref().map(|value| { let default_stream = self.output_value(type_space, &value.0, "e! {}).unwrap(); quote! { - impl Default for #type_name { + impl ::std::default::Default for #type_name { fn default() -> Self { #default_stream } @@ -1547,13 +1581,13 @@ impl TypeEntry { } } - impl From<#type_name> for #inner_type_name { + impl ::std::convert::From<#type_name> for #inner_type_name { fn from(value: #type_name) -> Self { value.0 } } - impl From<&#type_name> for #type_name { + impl ::std::convert::From<&#type_name> for #type_name { fn from(value: &#type_name) -> Self { value.clone() } diff --git a/typify-impl/tests/generator.out b/typify-impl/tests/generator.out index 07c91d11..cef85c8a 100644 --- a/typify-impl/tests/generator.out +++ b/typify-impl/tests/generator.out @@ -59,7 +59,7 @@ mod types { pub struct AllTheTraits { pub ok: ::std::string::String, } - impl From<&AllTheTraits> for AllTheTraits { + impl ::std::convert::From<&AllTheTraits> for AllTheTraits { fn from(value: &AllTheTraits) -> Self { value.clone() } @@ -99,7 +99,7 @@ mod types { pub value1: ::std::string::String, pub value2: u64, } - impl From<&CompoundType> for CompoundType { + impl ::std::convert::From<&CompoundType> for CompoundType { fn from(value: &CompoundType) -> Self { value.clone() } @@ -137,11 +137,19 @@ mod types { #[serde(default = "defaults::pair_b")] pub b: StringEnum, } - impl From<&Pair> for Pair { + impl ::std::convert::From<&Pair> for Pair { fn from(value: &Pair) -> Self { value.clone() } } + impl ::std::default::Default for Pair { + fn default() -> Self { + Self { + a: defaults::pair_a(), + b: defaults::pair_b(), + } + } + } impl Pair { pub fn builder() -> builder::Pair { Default::default() @@ -180,7 +188,7 @@ mod types { Two, BuckleMyShoe, } - impl From<&StringEnum> for StringEnum { + impl ::std::convert::From<&StringEnum> for StringEnum { fn from(value: &StringEnum) -> Self { value.clone() } @@ -194,7 +202,7 @@ mod types { } } } - impl std::str::FromStr for StringEnum { + impl ::std::str::FromStr for StringEnum { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -205,13 +213,13 @@ mod types { } } } - impl std::convert::TryFrom<&str> for StringEnum { + impl ::std::convert::TryFrom<&str> for StringEnum { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for StringEnum { + impl ::std::convert::TryFrom<&::std::string::String> for StringEnum { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -219,7 +227,7 @@ mod types { value.parse() } } - impl std::convert::TryFrom<::std::string::String> for StringEnum { + impl ::std::convert::TryFrom<::std::string::String> for StringEnum { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -233,7 +241,7 @@ mod types { pub struct AllTheTraits { ok: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for AllTheTraits { + impl ::std::default::Default for AllTheTraits { fn default() -> Self { Self { ok: Err("no value supplied for ok".to_string()), @@ -243,8 +251,8 @@ mod types { impl AllTheTraits { pub fn ok(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.ok = value .try_into() @@ -260,7 +268,7 @@ mod types { Ok(Self { ok: value.ok? }) } } - impl From for AllTheTraits { + impl ::std::convert::From for AllTheTraits { fn from(value: super::AllTheTraits) -> Self { Self { ok: Ok(value.ok) } } @@ -270,7 +278,7 @@ mod types { value1: ::std::result::Result<::std::string::String, ::std::string::String>, value2: ::std::result::Result, } - impl Default for CompoundType { + impl ::std::default::Default for CompoundType { fn default() -> Self { Self { value1: Err("no value supplied for value1".to_string()), @@ -281,8 +289,8 @@ mod types { impl CompoundType { pub fn value1(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.value1 = value .try_into() @@ -291,8 +299,8 @@ mod types { } pub fn value2(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.value2 = value .try_into() @@ -311,7 +319,7 @@ mod types { }) } } - impl From for CompoundType { + impl ::std::convert::From for CompoundType { fn from(value: super::CompoundType) -> Self { Self { value1: Ok(value.value1), @@ -324,7 +332,7 @@ mod types { a: ::std::result::Result, b: ::std::result::Result, } - impl Default for Pair { + impl ::std::default::Default for Pair { fn default() -> Self { Self { a: Ok(super::defaults::pair_a()), @@ -335,8 +343,8 @@ mod types { impl Pair { pub fn a(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.a = value .try_into() @@ -345,8 +353,8 @@ mod types { } pub fn b(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.b = value .try_into() @@ -363,7 +371,7 @@ mod types { }) } } - impl From for Pair { + impl ::std::convert::From for Pair { fn from(value: super::Pair) -> Self { Self { a: Ok(value.a), diff --git a/typify-impl/tests/github.out b/typify-impl/tests/github.out index 1bf4a317..06d17519 100644 --- a/typify-impl/tests/github.out +++ b/typify-impl/tests/github.out @@ -126,7 +126,7 @@ pub struct AlertInstance { #[doc = "State of a code scanning alert."] pub state: AlertInstanceState, } -impl From<&AlertInstance> for AlertInstance { +impl ::std::convert::From<&AlertInstance> for AlertInstance { fn from(value: &AlertInstance) -> Self { value.clone() } @@ -173,11 +173,22 @@ pub struct AlertInstanceLocation { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } -impl From<&AlertInstanceLocation> for AlertInstanceLocation { +impl ::std::convert::From<&AlertInstanceLocation> for AlertInstanceLocation { fn from(value: &AlertInstanceLocation) -> Self { value.clone() } } +impl ::std::default::Default for AlertInstanceLocation { + fn default() -> Self { + Self { + end_column: Default::default(), + end_line: Default::default(), + path: Default::default(), + start_column: Default::default(), + start_line: Default::default(), + } + } +} #[doc = "AlertInstanceMessage"] #[doc = r""] #[doc = r"
JSON schema"] @@ -200,11 +211,18 @@ pub struct AlertInstanceMessage { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } -impl From<&AlertInstanceMessage> for AlertInstanceMessage { +impl ::std::convert::From<&AlertInstanceMessage> for AlertInstanceMessage { fn from(value: &AlertInstanceMessage) -> Self { value.clone() } } +impl ::std::default::Default for AlertInstanceMessage { + fn default() -> Self { + Self { + text: Default::default(), + } + } +} #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] @@ -241,7 +259,7 @@ pub enum AlertInstanceState { #[serde(rename = "fixed")] Fixed, } -impl From<&AlertInstanceState> for AlertInstanceState { +impl ::std::convert::From<&AlertInstanceState> for AlertInstanceState { fn from(value: &AlertInstanceState) -> Self { value.clone() } @@ -255,7 +273,7 @@ impl ::std::fmt::Display for AlertInstanceState { } } } -impl std::str::FromStr for AlertInstanceState { +impl ::std::str::FromStr for AlertInstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -266,13 +284,13 @@ impl std::str::FromStr for AlertInstanceState { } } } -impl std::convert::TryFrom<&str> for AlertInstanceState { +impl ::std::convert::TryFrom<&str> for AlertInstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AlertInstanceState { +impl ::std::convert::TryFrom<&::std::string::String> for AlertInstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -280,7 +298,7 @@ impl std::convert::TryFrom<&::std::string::String> for AlertInstanceState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AlertInstanceState { +impl ::std::convert::TryFrom<::std::string::String> for AlertInstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -676,7 +694,7 @@ pub struct App { pub slug: ::std::option::Option<::std::string::String>, pub updated_at: chrono::DateTime, } -impl From<&App> for App { +impl ::std::convert::From<&App> for App { fn from(value: &App) -> Self { value.clone() } @@ -839,7 +857,7 @@ pub enum AppEventsItem { #[serde(rename = "workflow_run")] WorkflowRun, } -impl From<&AppEventsItem> for AppEventsItem { +impl ::std::convert::From<&AppEventsItem> for AppEventsItem { fn from(value: &AppEventsItem) -> Self { value.clone() } @@ -894,7 +912,7 @@ impl ::std::fmt::Display for AppEventsItem { } } } -impl std::str::FromStr for AppEventsItem { +impl ::std::str::FromStr for AppEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -946,13 +964,13 @@ impl std::str::FromStr for AppEventsItem { } } } -impl std::convert::TryFrom<&str> for AppEventsItem { +impl ::std::convert::TryFrom<&str> for AppEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppEventsItem { +impl ::std::convert::TryFrom<&::std::string::String> for AppEventsItem { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -960,7 +978,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppEventsItem { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppEventsItem { +impl ::std::convert::TryFrom<::std::string::String> for AppEventsItem { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1294,11 +1312,51 @@ pub struct AppPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } -impl From<&AppPermissions> for AppPermissions { +impl ::std::convert::From<&AppPermissions> for AppPermissions { fn from(value: &AppPermissions) -> Self { value.clone() } } +impl ::std::default::Default for AppPermissions { + fn default() -> Self { + Self { + actions: Default::default(), + administration: Default::default(), + checks: Default::default(), + content_references: Default::default(), + contents: Default::default(), + deployments: Default::default(), + discussions: Default::default(), + emails: Default::default(), + environments: Default::default(), + issues: Default::default(), + members: Default::default(), + metadata: Default::default(), + organization_administration: Default::default(), + organization_hooks: Default::default(), + organization_packages: Default::default(), + organization_plan: Default::default(), + organization_projects: Default::default(), + organization_secrets: Default::default(), + organization_self_hosted_runners: Default::default(), + organization_user_blocking: Default::default(), + packages: Default::default(), + pages: Default::default(), + pull_requests: Default::default(), + repository_hooks: Default::default(), + repository_projects: Default::default(), + secret_scanning_alerts: Default::default(), + secrets: Default::default(), + security_events: Default::default(), + security_scanning_alert: Default::default(), + single_file: Default::default(), + statuses: Default::default(), + team_discussions: Default::default(), + vulnerability_alerts: Default::default(), + workflows: Default::default(), + } + } +} #[doc = "AppPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] @@ -1331,7 +1389,7 @@ pub enum AppPermissionsActions { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsActions> for AppPermissionsActions { +impl ::std::convert::From<&AppPermissionsActions> for AppPermissionsActions { fn from(value: &AppPermissionsActions) -> Self { value.clone() } @@ -1344,7 +1402,7 @@ impl ::std::fmt::Display for AppPermissionsActions { } } } -impl std::str::FromStr for AppPermissionsActions { +impl ::std::str::FromStr for AppPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1354,13 +1412,13 @@ impl std::str::FromStr for AppPermissionsActions { } } } -impl std::convert::TryFrom<&str> for AppPermissionsActions { +impl ::std::convert::TryFrom<&str> for AppPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsActions { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsActions { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1368,7 +1426,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsActions { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsActions { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsActions { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1408,7 +1466,7 @@ pub enum AppPermissionsAdministration { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsAdministration> for AppPermissionsAdministration { +impl ::std::convert::From<&AppPermissionsAdministration> for AppPermissionsAdministration { fn from(value: &AppPermissionsAdministration) -> Self { value.clone() } @@ -1421,7 +1479,7 @@ impl ::std::fmt::Display for AppPermissionsAdministration { } } } -impl std::str::FromStr for AppPermissionsAdministration { +impl ::std::str::FromStr for AppPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1431,13 +1489,13 @@ impl std::str::FromStr for AppPermissionsAdministration { } } } -impl std::convert::TryFrom<&str> for AppPermissionsAdministration { +impl ::std::convert::TryFrom<&str> for AppPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsAdministration { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsAdministration { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1445,7 +1503,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsAdministrat value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsAdministration { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsAdministration { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1485,7 +1543,7 @@ pub enum AppPermissionsChecks { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsChecks> for AppPermissionsChecks { +impl ::std::convert::From<&AppPermissionsChecks> for AppPermissionsChecks { fn from(value: &AppPermissionsChecks) -> Self { value.clone() } @@ -1498,7 +1556,7 @@ impl ::std::fmt::Display for AppPermissionsChecks { } } } -impl std::str::FromStr for AppPermissionsChecks { +impl ::std::str::FromStr for AppPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1508,13 +1566,13 @@ impl std::str::FromStr for AppPermissionsChecks { } } } -impl std::convert::TryFrom<&str> for AppPermissionsChecks { +impl ::std::convert::TryFrom<&str> for AppPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsChecks { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsChecks { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1522,7 +1580,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsChecks { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsChecks { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsChecks { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1562,7 +1620,7 @@ pub enum AppPermissionsContentReferences { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsContentReferences> for AppPermissionsContentReferences { +impl ::std::convert::From<&AppPermissionsContentReferences> for AppPermissionsContentReferences { fn from(value: &AppPermissionsContentReferences) -> Self { value.clone() } @@ -1575,7 +1633,7 @@ impl ::std::fmt::Display for AppPermissionsContentReferences { } } } -impl std::str::FromStr for AppPermissionsContentReferences { +impl ::std::str::FromStr for AppPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1585,13 +1643,13 @@ impl std::str::FromStr for AppPermissionsContentReferences { } } } -impl std::convert::TryFrom<&str> for AppPermissionsContentReferences { +impl ::std::convert::TryFrom<&str> for AppPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsContentReferences { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1599,7 +1657,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsContentRefe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsContentReferences { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1639,7 +1697,7 @@ pub enum AppPermissionsContents { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsContents> for AppPermissionsContents { +impl ::std::convert::From<&AppPermissionsContents> for AppPermissionsContents { fn from(value: &AppPermissionsContents) -> Self { value.clone() } @@ -1652,7 +1710,7 @@ impl ::std::fmt::Display for AppPermissionsContents { } } } -impl std::str::FromStr for AppPermissionsContents { +impl ::std::str::FromStr for AppPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1662,13 +1720,13 @@ impl std::str::FromStr for AppPermissionsContents { } } } -impl std::convert::TryFrom<&str> for AppPermissionsContents { +impl ::std::convert::TryFrom<&str> for AppPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsContents { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsContents { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1676,7 +1734,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsContents { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsContents { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsContents { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1716,7 +1774,7 @@ pub enum AppPermissionsDeployments { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsDeployments> for AppPermissionsDeployments { +impl ::std::convert::From<&AppPermissionsDeployments> for AppPermissionsDeployments { fn from(value: &AppPermissionsDeployments) -> Self { value.clone() } @@ -1729,7 +1787,7 @@ impl ::std::fmt::Display for AppPermissionsDeployments { } } } -impl std::str::FromStr for AppPermissionsDeployments { +impl ::std::str::FromStr for AppPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1739,13 +1797,13 @@ impl std::str::FromStr for AppPermissionsDeployments { } } } -impl std::convert::TryFrom<&str> for AppPermissionsDeployments { +impl ::std::convert::TryFrom<&str> for AppPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsDeployments { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsDeployments { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1753,7 +1811,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsDeployments value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsDeployments { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsDeployments { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1793,7 +1851,7 @@ pub enum AppPermissionsDiscussions { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsDiscussions> for AppPermissionsDiscussions { +impl ::std::convert::From<&AppPermissionsDiscussions> for AppPermissionsDiscussions { fn from(value: &AppPermissionsDiscussions) -> Self { value.clone() } @@ -1806,7 +1864,7 @@ impl ::std::fmt::Display for AppPermissionsDiscussions { } } } -impl std::str::FromStr for AppPermissionsDiscussions { +impl ::std::str::FromStr for AppPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1816,13 +1874,13 @@ impl std::str::FromStr for AppPermissionsDiscussions { } } } -impl std::convert::TryFrom<&str> for AppPermissionsDiscussions { +impl ::std::convert::TryFrom<&str> for AppPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsDiscussions { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1830,7 +1888,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsDiscussions value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsDiscussions { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1870,7 +1928,7 @@ pub enum AppPermissionsEmails { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsEmails> for AppPermissionsEmails { +impl ::std::convert::From<&AppPermissionsEmails> for AppPermissionsEmails { fn from(value: &AppPermissionsEmails) -> Self { value.clone() } @@ -1883,7 +1941,7 @@ impl ::std::fmt::Display for AppPermissionsEmails { } } } -impl std::str::FromStr for AppPermissionsEmails { +impl ::std::str::FromStr for AppPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1893,13 +1951,13 @@ impl std::str::FromStr for AppPermissionsEmails { } } } -impl std::convert::TryFrom<&str> for AppPermissionsEmails { +impl ::std::convert::TryFrom<&str> for AppPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsEmails { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsEmails { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1907,7 +1965,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsEmails { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsEmails { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsEmails { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1947,7 +2005,7 @@ pub enum AppPermissionsEnvironments { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsEnvironments> for AppPermissionsEnvironments { +impl ::std::convert::From<&AppPermissionsEnvironments> for AppPermissionsEnvironments { fn from(value: &AppPermissionsEnvironments) -> Self { value.clone() } @@ -1960,7 +2018,7 @@ impl ::std::fmt::Display for AppPermissionsEnvironments { } } } -impl std::str::FromStr for AppPermissionsEnvironments { +impl ::std::str::FromStr for AppPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1970,13 +2028,13 @@ impl std::str::FromStr for AppPermissionsEnvironments { } } } -impl std::convert::TryFrom<&str> for AppPermissionsEnvironments { +impl ::std::convert::TryFrom<&str> for AppPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsEnvironments { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1984,7 +2042,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsEnvironment value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsEnvironments { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2024,7 +2082,7 @@ pub enum AppPermissionsIssues { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsIssues> for AppPermissionsIssues { +impl ::std::convert::From<&AppPermissionsIssues> for AppPermissionsIssues { fn from(value: &AppPermissionsIssues) -> Self { value.clone() } @@ -2037,7 +2095,7 @@ impl ::std::fmt::Display for AppPermissionsIssues { } } } -impl std::str::FromStr for AppPermissionsIssues { +impl ::std::str::FromStr for AppPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2047,13 +2105,13 @@ impl std::str::FromStr for AppPermissionsIssues { } } } -impl std::convert::TryFrom<&str> for AppPermissionsIssues { +impl ::std::convert::TryFrom<&str> for AppPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsIssues { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsIssues { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2061,7 +2119,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsIssues { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsIssues { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsIssues { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2101,7 +2159,7 @@ pub enum AppPermissionsMembers { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsMembers> for AppPermissionsMembers { +impl ::std::convert::From<&AppPermissionsMembers> for AppPermissionsMembers { fn from(value: &AppPermissionsMembers) -> Self { value.clone() } @@ -2114,7 +2172,7 @@ impl ::std::fmt::Display for AppPermissionsMembers { } } } -impl std::str::FromStr for AppPermissionsMembers { +impl ::std::str::FromStr for AppPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2124,13 +2182,13 @@ impl std::str::FromStr for AppPermissionsMembers { } } } -impl std::convert::TryFrom<&str> for AppPermissionsMembers { +impl ::std::convert::TryFrom<&str> for AppPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsMembers { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsMembers { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2138,7 +2196,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsMembers { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsMembers { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsMembers { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2178,7 +2236,7 @@ pub enum AppPermissionsMetadata { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsMetadata> for AppPermissionsMetadata { +impl ::std::convert::From<&AppPermissionsMetadata> for AppPermissionsMetadata { fn from(value: &AppPermissionsMetadata) -> Self { value.clone() } @@ -2191,7 +2249,7 @@ impl ::std::fmt::Display for AppPermissionsMetadata { } } } -impl std::str::FromStr for AppPermissionsMetadata { +impl ::std::str::FromStr for AppPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2201,13 +2259,13 @@ impl std::str::FromStr for AppPermissionsMetadata { } } } -impl std::convert::TryFrom<&str> for AppPermissionsMetadata { +impl ::std::convert::TryFrom<&str> for AppPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsMetadata { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsMetadata { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2215,7 +2273,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsMetadata { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsMetadata { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsMetadata { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2255,7 +2313,9 @@ pub enum AppPermissionsOrganizationAdministration { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationAdministration> for AppPermissionsOrganizationAdministration { +impl ::std::convert::From<&AppPermissionsOrganizationAdministration> + for AppPermissionsOrganizationAdministration +{ fn from(value: &AppPermissionsOrganizationAdministration) -> Self { value.clone() } @@ -2268,7 +2328,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationAdministration { } } } -impl std::str::FromStr for AppPermissionsOrganizationAdministration { +impl ::std::str::FromStr for AppPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2278,13 +2338,13 @@ impl std::str::FromStr for AppPermissionsOrganizationAdministration { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationAdministration { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationAdministration { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2292,7 +2352,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationAdministration { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2332,7 +2392,7 @@ pub enum AppPermissionsOrganizationHooks { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationHooks> for AppPermissionsOrganizationHooks { +impl ::std::convert::From<&AppPermissionsOrganizationHooks> for AppPermissionsOrganizationHooks { fn from(value: &AppPermissionsOrganizationHooks) -> Self { value.clone() } @@ -2345,7 +2405,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationHooks { } } } -impl std::str::FromStr for AppPermissionsOrganizationHooks { +impl ::std::str::FromStr for AppPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2355,13 +2415,13 @@ impl std::str::FromStr for AppPermissionsOrganizationHooks { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2369,7 +2429,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2409,7 +2469,9 @@ pub enum AppPermissionsOrganizationPackages { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationPackages> for AppPermissionsOrganizationPackages { +impl ::std::convert::From<&AppPermissionsOrganizationPackages> + for AppPermissionsOrganizationPackages +{ fn from(value: &AppPermissionsOrganizationPackages) -> Self { value.clone() } @@ -2422,7 +2484,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationPackages { } } } -impl std::str::FromStr for AppPermissionsOrganizationPackages { +impl ::std::str::FromStr for AppPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2432,13 +2494,13 @@ impl std::str::FromStr for AppPermissionsOrganizationPackages { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationPackages { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationPackages { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2446,7 +2508,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationPackages { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2486,7 +2548,7 @@ pub enum AppPermissionsOrganizationPlan { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationPlan> for AppPermissionsOrganizationPlan { +impl ::std::convert::From<&AppPermissionsOrganizationPlan> for AppPermissionsOrganizationPlan { fn from(value: &AppPermissionsOrganizationPlan) -> Self { value.clone() } @@ -2499,7 +2561,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationPlan { } } } -impl std::str::FromStr for AppPermissionsOrganizationPlan { +impl ::std::str::FromStr for AppPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2509,13 +2571,13 @@ impl std::str::FromStr for AppPermissionsOrganizationPlan { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2523,7 +2585,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2563,7 +2625,9 @@ pub enum AppPermissionsOrganizationProjects { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationProjects> for AppPermissionsOrganizationProjects { +impl ::std::convert::From<&AppPermissionsOrganizationProjects> + for AppPermissionsOrganizationProjects +{ fn from(value: &AppPermissionsOrganizationProjects) -> Self { value.clone() } @@ -2576,7 +2640,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationProjects { } } } -impl std::str::FromStr for AppPermissionsOrganizationProjects { +impl ::std::str::FromStr for AppPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2586,13 +2650,13 @@ impl std::str::FromStr for AppPermissionsOrganizationProjects { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationProjects { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationProjects { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2600,7 +2664,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationProjects { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2640,7 +2704,9 @@ pub enum AppPermissionsOrganizationSecrets { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationSecrets> for AppPermissionsOrganizationSecrets { +impl ::std::convert::From<&AppPermissionsOrganizationSecrets> + for AppPermissionsOrganizationSecrets +{ fn from(value: &AppPermissionsOrganizationSecrets) -> Self { value.clone() } @@ -2653,7 +2719,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationSecrets { } } } -impl std::str::FromStr for AppPermissionsOrganizationSecrets { +impl ::std::str::FromStr for AppPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2663,13 +2729,13 @@ impl std::str::FromStr for AppPermissionsOrganizationSecrets { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2677,7 +2743,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2717,7 +2783,7 @@ pub enum AppPermissionsOrganizationSelfHostedRunners { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationSelfHostedRunners> +impl ::std::convert::From<&AppPermissionsOrganizationSelfHostedRunners> for AppPermissionsOrganizationSelfHostedRunners { fn from(value: &AppPermissionsOrganizationSelfHostedRunners) -> Self { @@ -2732,7 +2798,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationSelfHostedRunners { } } } -impl std::str::FromStr for AppPermissionsOrganizationSelfHostedRunners { +impl ::std::str::FromStr for AppPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2742,13 +2808,15 @@ impl std::str::FromStr for AppPermissionsOrganizationSelfHostedRunners { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationSelfHostedRunners { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationSelfHostedRunners { +impl ::std::convert::TryFrom<&::std::string::String> + for AppPermissionsOrganizationSelfHostedRunners +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2756,7 +2824,9 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationSelfHostedRunners { +impl ::std::convert::TryFrom<::std::string::String> + for AppPermissionsOrganizationSelfHostedRunners +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2796,7 +2866,9 @@ pub enum AppPermissionsOrganizationUserBlocking { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsOrganizationUserBlocking> for AppPermissionsOrganizationUserBlocking { +impl ::std::convert::From<&AppPermissionsOrganizationUserBlocking> + for AppPermissionsOrganizationUserBlocking +{ fn from(value: &AppPermissionsOrganizationUserBlocking) -> Self { value.clone() } @@ -2809,7 +2881,7 @@ impl ::std::fmt::Display for AppPermissionsOrganizationUserBlocking { } } } -impl std::str::FromStr for AppPermissionsOrganizationUserBlocking { +impl ::std::str::FromStr for AppPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2819,13 +2891,13 @@ impl std::str::FromStr for AppPermissionsOrganizationUserBlocking { } } } -impl std::convert::TryFrom<&str> for AppPermissionsOrganizationUserBlocking { +impl ::std::convert::TryFrom<&str> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationUserBlocking { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2833,7 +2905,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsOrganizatio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationUserBlocking { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2873,7 +2945,7 @@ pub enum AppPermissionsPackages { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsPackages> for AppPermissionsPackages { +impl ::std::convert::From<&AppPermissionsPackages> for AppPermissionsPackages { fn from(value: &AppPermissionsPackages) -> Self { value.clone() } @@ -2886,7 +2958,7 @@ impl ::std::fmt::Display for AppPermissionsPackages { } } } -impl std::str::FromStr for AppPermissionsPackages { +impl ::std::str::FromStr for AppPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2896,13 +2968,13 @@ impl std::str::FromStr for AppPermissionsPackages { } } } -impl std::convert::TryFrom<&str> for AppPermissionsPackages { +impl ::std::convert::TryFrom<&str> for AppPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPackages { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsPackages { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2910,7 +2982,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPackages { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsPackages { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsPackages { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2950,7 +3022,7 @@ pub enum AppPermissionsPages { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsPages> for AppPermissionsPages { +impl ::std::convert::From<&AppPermissionsPages> for AppPermissionsPages { fn from(value: &AppPermissionsPages) -> Self { value.clone() } @@ -2963,7 +3035,7 @@ impl ::std::fmt::Display for AppPermissionsPages { } } } -impl std::str::FromStr for AppPermissionsPages { +impl ::std::str::FromStr for AppPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2973,13 +3045,13 @@ impl std::str::FromStr for AppPermissionsPages { } } } -impl std::convert::TryFrom<&str> for AppPermissionsPages { +impl ::std::convert::TryFrom<&str> for AppPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPages { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsPages { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2987,7 +3059,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPages { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsPages { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsPages { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3027,7 +3099,7 @@ pub enum AppPermissionsPullRequests { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsPullRequests> for AppPermissionsPullRequests { +impl ::std::convert::From<&AppPermissionsPullRequests> for AppPermissionsPullRequests { fn from(value: &AppPermissionsPullRequests) -> Self { value.clone() } @@ -3040,7 +3112,7 @@ impl ::std::fmt::Display for AppPermissionsPullRequests { } } } -impl std::str::FromStr for AppPermissionsPullRequests { +impl ::std::str::FromStr for AppPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3050,13 +3122,13 @@ impl std::str::FromStr for AppPermissionsPullRequests { } } } -impl std::convert::TryFrom<&str> for AppPermissionsPullRequests { +impl ::std::convert::TryFrom<&str> for AppPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPullRequests { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3064,7 +3136,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsPullRequest value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsPullRequests { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3104,7 +3176,7 @@ pub enum AppPermissionsRepositoryHooks { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsRepositoryHooks> for AppPermissionsRepositoryHooks { +impl ::std::convert::From<&AppPermissionsRepositoryHooks> for AppPermissionsRepositoryHooks { fn from(value: &AppPermissionsRepositoryHooks) -> Self { value.clone() } @@ -3117,7 +3189,7 @@ impl ::std::fmt::Display for AppPermissionsRepositoryHooks { } } } -impl std::str::FromStr for AppPermissionsRepositoryHooks { +impl ::std::str::FromStr for AppPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3127,13 +3199,13 @@ impl std::str::FromStr for AppPermissionsRepositoryHooks { } } } -impl std::convert::TryFrom<&str> for AppPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<&str> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3141,7 +3213,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryH value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3181,7 +3253,7 @@ pub enum AppPermissionsRepositoryProjects { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsRepositoryProjects> for AppPermissionsRepositoryProjects { +impl ::std::convert::From<&AppPermissionsRepositoryProjects> for AppPermissionsRepositoryProjects { fn from(value: &AppPermissionsRepositoryProjects) -> Self { value.clone() } @@ -3194,7 +3266,7 @@ impl ::std::fmt::Display for AppPermissionsRepositoryProjects { } } } -impl std::str::FromStr for AppPermissionsRepositoryProjects { +impl ::std::str::FromStr for AppPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3204,13 +3276,13 @@ impl std::str::FromStr for AppPermissionsRepositoryProjects { } } } -impl std::convert::TryFrom<&str> for AppPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<&str> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3218,7 +3290,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsRepositoryP value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3258,7 +3330,9 @@ pub enum AppPermissionsSecretScanningAlerts { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsSecretScanningAlerts> for AppPermissionsSecretScanningAlerts { +impl ::std::convert::From<&AppPermissionsSecretScanningAlerts> + for AppPermissionsSecretScanningAlerts +{ fn from(value: &AppPermissionsSecretScanningAlerts) -> Self { value.clone() } @@ -3271,7 +3345,7 @@ impl ::std::fmt::Display for AppPermissionsSecretScanningAlerts { } } } -impl std::str::FromStr for AppPermissionsSecretScanningAlerts { +impl ::std::str::FromStr for AppPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3281,13 +3355,13 @@ impl std::str::FromStr for AppPermissionsSecretScanningAlerts { } } } -impl std::convert::TryFrom<&str> for AppPermissionsSecretScanningAlerts { +impl ::std::convert::TryFrom<&str> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecretScanningAlerts { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3295,7 +3369,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecretScann value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecretScanningAlerts { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3335,7 +3409,7 @@ pub enum AppPermissionsSecrets { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsSecrets> for AppPermissionsSecrets { +impl ::std::convert::From<&AppPermissionsSecrets> for AppPermissionsSecrets { fn from(value: &AppPermissionsSecrets) -> Self { value.clone() } @@ -3348,7 +3422,7 @@ impl ::std::fmt::Display for AppPermissionsSecrets { } } } -impl std::str::FromStr for AppPermissionsSecrets { +impl ::std::str::FromStr for AppPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3358,13 +3432,13 @@ impl std::str::FromStr for AppPermissionsSecrets { } } } -impl std::convert::TryFrom<&str> for AppPermissionsSecrets { +impl ::std::convert::TryFrom<&str> for AppPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecrets { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsSecrets { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3372,7 +3446,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecrets { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecrets { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsSecrets { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3412,7 +3486,7 @@ pub enum AppPermissionsSecurityEvents { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsSecurityEvents> for AppPermissionsSecurityEvents { +impl ::std::convert::From<&AppPermissionsSecurityEvents> for AppPermissionsSecurityEvents { fn from(value: &AppPermissionsSecurityEvents) -> Self { value.clone() } @@ -3425,7 +3499,7 @@ impl ::std::fmt::Display for AppPermissionsSecurityEvents { } } } -impl std::str::FromStr for AppPermissionsSecurityEvents { +impl ::std::str::FromStr for AppPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3435,13 +3509,13 @@ impl std::str::FromStr for AppPermissionsSecurityEvents { } } } -impl std::convert::TryFrom<&str> for AppPermissionsSecurityEvents { +impl ::std::convert::TryFrom<&str> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityEvents { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3449,7 +3523,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityEve value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecurityEvents { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3489,7 +3563,9 @@ pub enum AppPermissionsSecurityScanningAlert { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsSecurityScanningAlert> for AppPermissionsSecurityScanningAlert { +impl ::std::convert::From<&AppPermissionsSecurityScanningAlert> + for AppPermissionsSecurityScanningAlert +{ fn from(value: &AppPermissionsSecurityScanningAlert) -> Self { value.clone() } @@ -3502,7 +3578,7 @@ impl ::std::fmt::Display for AppPermissionsSecurityScanningAlert { } } } -impl std::str::FromStr for AppPermissionsSecurityScanningAlert { +impl ::std::str::FromStr for AppPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3512,13 +3588,13 @@ impl std::str::FromStr for AppPermissionsSecurityScanningAlert { } } } -impl std::convert::TryFrom<&str> for AppPermissionsSecurityScanningAlert { +impl ::std::convert::TryFrom<&str> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityScanningAlert { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3526,7 +3602,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSecuritySca value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsSecurityScanningAlert { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3566,7 +3642,7 @@ pub enum AppPermissionsSingleFile { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsSingleFile> for AppPermissionsSingleFile { +impl ::std::convert::From<&AppPermissionsSingleFile> for AppPermissionsSingleFile { fn from(value: &AppPermissionsSingleFile) -> Self { value.clone() } @@ -3579,7 +3655,7 @@ impl ::std::fmt::Display for AppPermissionsSingleFile { } } } -impl std::str::FromStr for AppPermissionsSingleFile { +impl ::std::str::FromStr for AppPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3589,13 +3665,13 @@ impl std::str::FromStr for AppPermissionsSingleFile { } } } -impl std::convert::TryFrom<&str> for AppPermissionsSingleFile { +impl ::std::convert::TryFrom<&str> for AppPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSingleFile { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3603,7 +3679,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsSingleFile value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsSingleFile { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3643,7 +3719,7 @@ pub enum AppPermissionsStatuses { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsStatuses> for AppPermissionsStatuses { +impl ::std::convert::From<&AppPermissionsStatuses> for AppPermissionsStatuses { fn from(value: &AppPermissionsStatuses) -> Self { value.clone() } @@ -3656,7 +3732,7 @@ impl ::std::fmt::Display for AppPermissionsStatuses { } } } -impl std::str::FromStr for AppPermissionsStatuses { +impl ::std::str::FromStr for AppPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3666,13 +3742,13 @@ impl std::str::FromStr for AppPermissionsStatuses { } } } -impl std::convert::TryFrom<&str> for AppPermissionsStatuses { +impl ::std::convert::TryFrom<&str> for AppPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsStatuses { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsStatuses { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3680,7 +3756,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsStatuses { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsStatuses { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsStatuses { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3720,7 +3796,7 @@ pub enum AppPermissionsTeamDiscussions { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsTeamDiscussions> for AppPermissionsTeamDiscussions { +impl ::std::convert::From<&AppPermissionsTeamDiscussions> for AppPermissionsTeamDiscussions { fn from(value: &AppPermissionsTeamDiscussions) -> Self { value.clone() } @@ -3733,7 +3809,7 @@ impl ::std::fmt::Display for AppPermissionsTeamDiscussions { } } } -impl std::str::FromStr for AppPermissionsTeamDiscussions { +impl ::std::str::FromStr for AppPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3743,13 +3819,13 @@ impl std::str::FromStr for AppPermissionsTeamDiscussions { } } } -impl std::convert::TryFrom<&str> for AppPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<&str> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3757,7 +3833,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsTeamDiscuss value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3797,7 +3873,9 @@ pub enum AppPermissionsVulnerabilityAlerts { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsVulnerabilityAlerts> for AppPermissionsVulnerabilityAlerts { +impl ::std::convert::From<&AppPermissionsVulnerabilityAlerts> + for AppPermissionsVulnerabilityAlerts +{ fn from(value: &AppPermissionsVulnerabilityAlerts) -> Self { value.clone() } @@ -3810,7 +3888,7 @@ impl ::std::fmt::Display for AppPermissionsVulnerabilityAlerts { } } } -impl std::str::FromStr for AppPermissionsVulnerabilityAlerts { +impl ::std::str::FromStr for AppPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3820,13 +3898,13 @@ impl std::str::FromStr for AppPermissionsVulnerabilityAlerts { } } } -impl std::convert::TryFrom<&str> for AppPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<&str> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3834,7 +3912,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsVulnerabili value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3874,7 +3952,7 @@ pub enum AppPermissionsWorkflows { #[serde(rename = "write")] Write, } -impl From<&AppPermissionsWorkflows> for AppPermissionsWorkflows { +impl ::std::convert::From<&AppPermissionsWorkflows> for AppPermissionsWorkflows { fn from(value: &AppPermissionsWorkflows) -> Self { value.clone() } @@ -3887,7 +3965,7 @@ impl ::std::fmt::Display for AppPermissionsWorkflows { } } } -impl std::str::FromStr for AppPermissionsWorkflows { +impl ::std::str::FromStr for AppPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3897,13 +3975,13 @@ impl std::str::FromStr for AppPermissionsWorkflows { } } } -impl std::convert::TryFrom<&str> for AppPermissionsWorkflows { +impl ::std::convert::TryFrom<&str> for AppPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AppPermissionsWorkflows { +impl ::std::convert::TryFrom<&::std::string::String> for AppPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3911,7 +3989,7 @@ impl std::convert::TryFrom<&::std::string::String> for AppPermissionsWorkflows { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AppPermissionsWorkflows { +impl ::std::convert::TryFrom<::std::string::String> for AppPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3972,7 +4050,7 @@ pub enum AuthorAssociation { #[serde(rename = "OWNER")] Owner, } -impl From<&AuthorAssociation> for AuthorAssociation { +impl ::std::convert::From<&AuthorAssociation> for AuthorAssociation { fn from(value: &AuthorAssociation) -> Self { value.clone() } @@ -3991,7 +4069,7 @@ impl ::std::fmt::Display for AuthorAssociation { } } } -impl std::str::FromStr for AuthorAssociation { +impl ::std::str::FromStr for AuthorAssociation { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4007,13 +4085,13 @@ impl std::str::FromStr for AuthorAssociation { } } } -impl std::convert::TryFrom<&str> for AuthorAssociation { +impl ::std::convert::TryFrom<&str> for AuthorAssociation { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AuthorAssociation { +impl ::std::convert::TryFrom<&::std::string::String> for AuthorAssociation { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4021,7 +4099,7 @@ impl std::convert::TryFrom<&::std::string::String> for AuthorAssociation { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AuthorAssociation { +impl ::std::convert::TryFrom<::std::string::String> for AuthorAssociation { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4230,7 +4308,7 @@ pub struct BranchProtectionRule { pub strict_required_status_checks_policy: bool, pub updated_at: chrono::DateTime, } -impl From<&BranchProtectionRule> for BranchProtectionRule { +impl ::std::convert::From<&BranchProtectionRule> for BranchProtectionRule { fn from(value: &BranchProtectionRule) -> Self { value.clone() } @@ -4270,7 +4348,7 @@ pub enum BranchProtectionRuleAllowDeletionsEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleAllowDeletionsEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleAllowDeletionsEnforcementLevel> for BranchProtectionRuleAllowDeletionsEnforcementLevel { fn from(value: &BranchProtectionRuleAllowDeletionsEnforcementLevel) -> Self { @@ -4286,7 +4364,7 @@ impl ::std::fmt::Display for BranchProtectionRuleAllowDeletionsEnforcementLevel } } } -impl std::str::FromStr for BranchProtectionRuleAllowDeletionsEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4297,13 +4375,13 @@ impl std::str::FromStr for BranchProtectionRuleAllowDeletionsEnforcementLevel { } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleAllowDeletionsEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; @@ -4313,7 +4391,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; @@ -4358,7 +4436,7 @@ pub enum BranchProtectionRuleAllowForcePushesEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleAllowForcePushesEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleAllowForcePushesEnforcementLevel> for BranchProtectionRuleAllowForcePushesEnforcementLevel { fn from(value: &BranchProtectionRuleAllowForcePushesEnforcementLevel) -> Self { @@ -4374,7 +4452,7 @@ impl ::std::fmt::Display for BranchProtectionRuleAllowForcePushesEnforcementLeve } } } -impl std::str::FromStr for BranchProtectionRuleAllowForcePushesEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4385,13 +4463,13 @@ impl std::str::FromStr for BranchProtectionRuleAllowForcePushesEnforcementLevel } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleAllowForcePushesEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; @@ -4401,7 +4479,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; @@ -4466,7 +4544,7 @@ pub struct BranchProtectionRuleCreated { pub rule: BranchProtectionRule, pub sender: User, } -impl From<&BranchProtectionRuleCreated> for BranchProtectionRuleCreated { +impl ::std::convert::From<&BranchProtectionRuleCreated> for BranchProtectionRuleCreated { fn from(value: &BranchProtectionRuleCreated) -> Self { value.clone() } @@ -4500,7 +4578,9 @@ pub enum BranchProtectionRuleCreatedAction { #[serde(rename = "created")] Created, } -impl From<&BranchProtectionRuleCreatedAction> for BranchProtectionRuleCreatedAction { +impl ::std::convert::From<&BranchProtectionRuleCreatedAction> + for BranchProtectionRuleCreatedAction +{ fn from(value: &BranchProtectionRuleCreatedAction) -> Self { value.clone() } @@ -4512,7 +4592,7 @@ impl ::std::fmt::Display for BranchProtectionRuleCreatedAction { } } } -impl std::str::FromStr for BranchProtectionRuleCreatedAction { +impl ::std::str::FromStr for BranchProtectionRuleCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4521,13 +4601,13 @@ impl std::str::FromStr for BranchProtectionRuleCreatedAction { } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleCreatedAction { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4535,7 +4615,7 @@ impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleCreat value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4598,7 +4678,7 @@ pub struct BranchProtectionRuleDeleted { pub rule: BranchProtectionRule, pub sender: User, } -impl From<&BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted { +impl ::std::convert::From<&BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted { fn from(value: &BranchProtectionRuleDeleted) -> Self { value.clone() } @@ -4632,7 +4712,9 @@ pub enum BranchProtectionRuleDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&BranchProtectionRuleDeletedAction> for BranchProtectionRuleDeletedAction { +impl ::std::convert::From<&BranchProtectionRuleDeletedAction> + for BranchProtectionRuleDeletedAction +{ fn from(value: &BranchProtectionRuleDeletedAction) -> Self { value.clone() } @@ -4644,7 +4726,7 @@ impl ::std::fmt::Display for BranchProtectionRuleDeletedAction { } } } -impl std::str::FromStr for BranchProtectionRuleDeletedAction { +impl ::std::str::FromStr for BranchProtectionRuleDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4653,13 +4735,13 @@ impl std::str::FromStr for BranchProtectionRuleDeletedAction { } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleDeletedAction { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4667,7 +4749,7 @@ impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleDelet value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4766,7 +4848,7 @@ pub struct BranchProtectionRuleEdited { pub rule: BranchProtectionRule, pub sender: User, } -impl From<&BranchProtectionRuleEdited> for BranchProtectionRuleEdited { +impl ::std::convert::From<&BranchProtectionRuleEdited> for BranchProtectionRuleEdited { fn from(value: &BranchProtectionRuleEdited) -> Self { value.clone() } @@ -4800,7 +4882,7 @@ pub enum BranchProtectionRuleEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&BranchProtectionRuleEditedAction> for BranchProtectionRuleEditedAction { +impl ::std::convert::From<&BranchProtectionRuleEditedAction> for BranchProtectionRuleEditedAction { fn from(value: &BranchProtectionRuleEditedAction) -> Self { value.clone() } @@ -4812,7 +4894,7 @@ impl ::std::fmt::Display for BranchProtectionRuleEditedAction { } } } -impl std::str::FromStr for BranchProtectionRuleEditedAction { +impl ::std::str::FromStr for BranchProtectionRuleEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4821,13 +4903,13 @@ impl std::str::FromStr for BranchProtectionRuleEditedAction { } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleEditedAction { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4835,7 +4917,7 @@ impl std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleEdite value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4894,11 +4976,21 @@ pub struct BranchProtectionRuleEditedChanges { pub authorized_actors_only: ::std::option::Option, } -impl From<&BranchProtectionRuleEditedChanges> for BranchProtectionRuleEditedChanges { +impl ::std::convert::From<&BranchProtectionRuleEditedChanges> + for BranchProtectionRuleEditedChanges +{ fn from(value: &BranchProtectionRuleEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for BranchProtectionRuleEditedChanges { + fn default() -> Self { + Self { + authorized_actor_names: Default::default(), + authorized_actors_only: Default::default(), + } + } +} #[doc = "BranchProtectionRuleEditedChangesAuthorizedActorNames"] #[doc = r""] #[doc = r"
JSON schema"] @@ -4926,7 +5018,7 @@ impl From<&BranchProtectionRuleEditedChanges> for BranchProtectionRuleEditedChan pub struct BranchProtectionRuleEditedChangesAuthorizedActorNames { pub from: ::std::vec::Vec<::std::string::String>, } -impl From<&BranchProtectionRuleEditedChangesAuthorizedActorNames> +impl ::std::convert::From<&BranchProtectionRuleEditedChangesAuthorizedActorNames> for BranchProtectionRuleEditedChangesAuthorizedActorNames { fn from(value: &BranchProtectionRuleEditedChangesAuthorizedActorNames) -> Self { @@ -4957,7 +5049,7 @@ impl From<&BranchProtectionRuleEditedChangesAuthorizedActorNames> pub struct BranchProtectionRuleEditedChangesAuthorizedActorsOnly { pub from: bool, } -impl From<&BranchProtectionRuleEditedChangesAuthorizedActorsOnly> +impl ::std::convert::From<&BranchProtectionRuleEditedChangesAuthorizedActorsOnly> for BranchProtectionRuleEditedChangesAuthorizedActorsOnly { fn from(value: &BranchProtectionRuleEditedChangesAuthorizedActorsOnly) -> Self { @@ -4991,22 +5083,22 @@ pub enum BranchProtectionRuleEvent { Deleted(BranchProtectionRuleDeleted), Edited(BranchProtectionRuleEdited), } -impl From<&BranchProtectionRuleEvent> for BranchProtectionRuleEvent { +impl ::std::convert::From<&BranchProtectionRuleEvent> for BranchProtectionRuleEvent { fn from(value: &BranchProtectionRuleEvent) -> Self { value.clone() } } -impl From for BranchProtectionRuleEvent { +impl ::std::convert::From for BranchProtectionRuleEvent { fn from(value: BranchProtectionRuleCreated) -> Self { Self::Created(value) } } -impl From for BranchProtectionRuleEvent { +impl ::std::convert::From for BranchProtectionRuleEvent { fn from(value: BranchProtectionRuleDeleted) -> Self { Self::Deleted(value) } } -impl From for BranchProtectionRuleEvent { +impl ::std::convert::From for BranchProtectionRuleEvent { fn from(value: BranchProtectionRuleEdited) -> Self { Self::Edited(value) } @@ -5046,7 +5138,7 @@ pub enum BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleLinearHistoryRequirementEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleLinearHistoryRequirementEnforcementLevel> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { fn from(value: &BranchProtectionRuleLinearHistoryRequirementEnforcementLevel) -> Self { @@ -5062,7 +5154,7 @@ impl ::std::fmt::Display for BranchProtectionRuleLinearHistoryRequirementEnforce } } } -impl std::str::FromStr for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5073,13 +5165,15 @@ impl std::str::FromStr for BranchProtectionRuleLinearHistoryRequirementEnforceme } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { +impl ::std::convert::TryFrom<&str> + for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; @@ -5089,7 +5183,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; @@ -5134,7 +5228,7 @@ pub enum BranchProtectionRuleMergeQueueEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleMergeQueueEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleMergeQueueEnforcementLevel> for BranchProtectionRuleMergeQueueEnforcementLevel { fn from(value: &BranchProtectionRuleMergeQueueEnforcementLevel) -> Self { @@ -5150,7 +5244,7 @@ impl ::std::fmt::Display for BranchProtectionRuleMergeQueueEnforcementLevel { } } } -impl std::str::FromStr for BranchProtectionRuleMergeQueueEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleMergeQueueEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5161,13 +5255,13 @@ impl std::str::FromStr for BranchProtectionRuleMergeQueueEnforcementLevel { } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleMergeQueueEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; @@ -5177,7 +5271,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; @@ -5222,7 +5316,7 @@ pub enum BranchProtectionRulePullRequestReviewsEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRulePullRequestReviewsEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRulePullRequestReviewsEnforcementLevel> for BranchProtectionRulePullRequestReviewsEnforcementLevel { fn from(value: &BranchProtectionRulePullRequestReviewsEnforcementLevel) -> Self { @@ -5238,7 +5332,7 @@ impl ::std::fmt::Display for BranchProtectionRulePullRequestReviewsEnforcementLe } } } -impl std::str::FromStr for BranchProtectionRulePullRequestReviewsEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5249,13 +5343,13 @@ impl std::str::FromStr for BranchProtectionRulePullRequestReviewsEnforcementLeve } } } -impl std::convert::TryFrom<&str> for BranchProtectionRulePullRequestReviewsEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; @@ -5265,7 +5359,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; @@ -5310,7 +5404,7 @@ pub enum BranchProtectionRuleRequiredConversationResolutionLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleRequiredConversationResolutionLevel> +impl ::std::convert::From<&BranchProtectionRuleRequiredConversationResolutionLevel> for BranchProtectionRuleRequiredConversationResolutionLevel { fn from(value: &BranchProtectionRuleRequiredConversationResolutionLevel) -> Self { @@ -5326,7 +5420,7 @@ impl ::std::fmt::Display for BranchProtectionRuleRequiredConversationResolutionL } } } -impl std::str::FromStr for BranchProtectionRuleRequiredConversationResolutionLevel { +impl ::std::str::FromStr for BranchProtectionRuleRequiredConversationResolutionLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5337,13 +5431,13 @@ impl std::str::FromStr for BranchProtectionRuleRequiredConversationResolutionLev } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredConversationResolutionLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; @@ -5353,7 +5447,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; @@ -5398,7 +5492,7 @@ pub enum BranchProtectionRuleRequiredDeploymentsEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleRequiredDeploymentsEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleRequiredDeploymentsEnforcementLevel> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { fn from(value: &BranchProtectionRuleRequiredDeploymentsEnforcementLevel) -> Self { @@ -5414,7 +5508,7 @@ impl ::std::fmt::Display for BranchProtectionRuleRequiredDeploymentsEnforcementL } } } -impl std::str::FromStr for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5425,13 +5519,13 @@ impl std::str::FromStr for BranchProtectionRuleRequiredDeploymentsEnforcementLev } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; @@ -5441,7 +5535,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; @@ -5486,7 +5580,7 @@ pub enum BranchProtectionRuleRequiredStatusChecksEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleRequiredStatusChecksEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleRequiredStatusChecksEnforcementLevel> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { fn from(value: &BranchProtectionRuleRequiredStatusChecksEnforcementLevel) -> Self { @@ -5502,7 +5596,7 @@ impl ::std::fmt::Display for BranchProtectionRuleRequiredStatusChecksEnforcement } } } -impl std::str::FromStr for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5513,13 +5607,13 @@ impl std::str::FromStr for BranchProtectionRuleRequiredStatusChecksEnforcementLe } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; @@ -5529,7 +5623,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; @@ -5574,7 +5668,7 @@ pub enum BranchProtectionRuleSignatureRequirementEnforcementLevel { #[serde(rename = "everyone")] Everyone, } -impl From<&BranchProtectionRuleSignatureRequirementEnforcementLevel> +impl ::std::convert::From<&BranchProtectionRuleSignatureRequirementEnforcementLevel> for BranchProtectionRuleSignatureRequirementEnforcementLevel { fn from(value: &BranchProtectionRuleSignatureRequirementEnforcementLevel) -> Self { @@ -5590,7 +5684,7 @@ impl ::std::fmt::Display for BranchProtectionRuleSignatureRequirementEnforcement } } } -impl std::str::FromStr for BranchProtectionRuleSignatureRequirementEnforcementLevel { +impl ::std::str::FromStr for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5601,13 +5695,13 @@ impl std::str::FromStr for BranchProtectionRuleSignatureRequirementEnforcementLe } } } -impl std::convert::TryFrom<&str> for BranchProtectionRuleSignatureRequirementEnforcementLevel { +impl ::std::convert::TryFrom<&str> for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; @@ -5617,7 +5711,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; @@ -5925,7 +6019,7 @@ pub struct CheckRunCompleted { pub requested_action: ::std::option::Option, pub sender: User, } -impl From<&CheckRunCompleted> for CheckRunCompleted { +impl ::std::convert::From<&CheckRunCompleted> for CheckRunCompleted { fn from(value: &CheckRunCompleted) -> Self { value.clone() } @@ -5959,7 +6053,7 @@ pub enum CheckRunCompletedAction { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunCompletedAction> for CheckRunCompletedAction { +impl ::std::convert::From<&CheckRunCompletedAction> for CheckRunCompletedAction { fn from(value: &CheckRunCompletedAction) -> Self { value.clone() } @@ -5971,7 +6065,7 @@ impl ::std::fmt::Display for CheckRunCompletedAction { } } } -impl std::str::FromStr for CheckRunCompletedAction { +impl ::std::str::FromStr for CheckRunCompletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5980,13 +6074,13 @@ impl std::str::FromStr for CheckRunCompletedAction { } } } -impl std::convert::TryFrom<&str> for CheckRunCompletedAction { +impl ::std::convert::TryFrom<&str> for CheckRunCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCompletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5994,7 +6088,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCompletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6268,7 +6362,7 @@ pub struct CheckRunCompletedCheckRun { pub status: CheckRunCompletedCheckRunStatus, pub url: ::std::string::String, } -impl From<&CheckRunCompletedCheckRun> for CheckRunCompletedCheckRun { +impl ::std::convert::From<&CheckRunCompletedCheckRun> for CheckRunCompletedCheckRun { fn from(value: &CheckRunCompletedCheckRun) -> Self { value.clone() } @@ -6401,7 +6495,9 @@ pub struct CheckRunCompletedCheckRunCheckSuite { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&CheckRunCompletedCheckRunCheckSuite> for CheckRunCompletedCheckRunCheckSuite { +impl ::std::convert::From<&CheckRunCompletedCheckRunCheckSuite> + for CheckRunCompletedCheckRunCheckSuite +{ fn from(value: &CheckRunCompletedCheckRunCheckSuite) -> Self { value.clone() } @@ -6453,7 +6549,7 @@ pub enum CheckRunCompletedCheckRunCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckRunCompletedCheckRunCheckSuiteConclusion> +impl ::std::convert::From<&CheckRunCompletedCheckRunCheckSuiteConclusion> for CheckRunCompletedCheckRunCheckSuiteConclusion { fn from(value: &CheckRunCompletedCheckRunCheckSuiteConclusion) -> Self { @@ -6473,7 +6569,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunCheckSuiteConclusion { } } } -impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteConclusion { +impl ::std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6488,13 +6584,13 @@ impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; @@ -6504,7 +6600,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; @@ -6549,7 +6645,7 @@ pub enum CheckRunCompletedCheckRunCheckSuiteStatus { #[serde(rename = "queued")] Queued, } -impl From<&CheckRunCompletedCheckRunCheckSuiteStatus> +impl ::std::convert::From<&CheckRunCompletedCheckRunCheckSuiteStatus> for CheckRunCompletedCheckRunCheckSuiteStatus { fn from(value: &CheckRunCompletedCheckRunCheckSuiteStatus) -> Self { @@ -6565,7 +6661,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunCheckSuiteStatus { } } } -impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteStatus { +impl ::std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6576,13 +6672,13 @@ impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6590,7 +6686,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRun value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6649,7 +6745,9 @@ pub enum CheckRunCompletedCheckRunConclusion { #[serde(rename = "skipped")] Skipped, } -impl From<&CheckRunCompletedCheckRunConclusion> for CheckRunCompletedCheckRunConclusion { +impl ::std::convert::From<&CheckRunCompletedCheckRunConclusion> + for CheckRunCompletedCheckRunConclusion +{ fn from(value: &CheckRunCompletedCheckRunConclusion) -> Self { value.clone() } @@ -6668,7 +6766,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunConclusion { } } } -impl std::str::FromStr for CheckRunCompletedCheckRunConclusion { +impl ::std::str::FromStr for CheckRunCompletedCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6684,13 +6782,13 @@ impl std::str::FromStr for CheckRunCompletedCheckRunConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6698,7 +6796,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRun value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6760,7 +6858,7 @@ pub struct CheckRunCompletedCheckRunOutput { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunCompletedCheckRunOutput> for CheckRunCompletedCheckRunOutput { +impl ::std::convert::From<&CheckRunCompletedCheckRunOutput> for CheckRunCompletedCheckRunOutput { fn from(value: &CheckRunCompletedCheckRunOutput) -> Self { value.clone() } @@ -6795,7 +6893,7 @@ pub enum CheckRunCompletedCheckRunStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunCompletedCheckRunStatus> for CheckRunCompletedCheckRunStatus { +impl ::std::convert::From<&CheckRunCompletedCheckRunStatus> for CheckRunCompletedCheckRunStatus { fn from(value: &CheckRunCompletedCheckRunStatus) -> Self { value.clone() } @@ -6807,7 +6905,7 @@ impl ::std::fmt::Display for CheckRunCompletedCheckRunStatus { } } } -impl std::str::FromStr for CheckRunCompletedCheckRunStatus { +impl ::std::str::FromStr for CheckRunCompletedCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6816,13 +6914,13 @@ impl std::str::FromStr for CheckRunCompletedCheckRunStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunStatus { +impl ::std::convert::TryFrom<&str> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6830,7 +6928,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCompletedCheckRun value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6863,11 +6961,18 @@ pub struct CheckRunCompletedRequestedAction { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedAction { +impl ::std::convert::From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedAction { fn from(value: &CheckRunCompletedRequestedAction) -> Self { value.clone() } } +impl ::std::default::Default for CheckRunCompletedRequestedAction { + fn default() -> Self { + Self { + identifier: Default::default(), + } + } +} #[doc = "CheckRunCreated"] #[doc = r""] #[doc = r"
JSON schema"] @@ -7171,7 +7276,7 @@ pub struct CheckRunCreated { pub requested_action: ::std::option::Option, pub sender: User, } -impl From<&CheckRunCreated> for CheckRunCreated { +impl ::std::convert::From<&CheckRunCreated> for CheckRunCreated { fn from(value: &CheckRunCreated) -> Self { value.clone() } @@ -7205,7 +7310,7 @@ pub enum CheckRunCreatedAction { #[serde(rename = "created")] Created, } -impl From<&CheckRunCreatedAction> for CheckRunCreatedAction { +impl ::std::convert::From<&CheckRunCreatedAction> for CheckRunCreatedAction { fn from(value: &CheckRunCreatedAction) -> Self { value.clone() } @@ -7217,7 +7322,7 @@ impl ::std::fmt::Display for CheckRunCreatedAction { } } } -impl std::str::FromStr for CheckRunCreatedAction { +impl ::std::str::FromStr for CheckRunCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7226,13 +7331,13 @@ impl std::str::FromStr for CheckRunCreatedAction { } } } -impl std::convert::TryFrom<&str> for CheckRunCreatedAction { +impl ::std::convert::TryFrom<&str> for CheckRunCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7240,7 +7345,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7519,7 +7624,7 @@ pub struct CheckRunCreatedCheckRun { pub status: CheckRunCreatedCheckRunStatus, pub url: ::std::string::String, } -impl From<&CheckRunCreatedCheckRun> for CheckRunCreatedCheckRun { +impl ::std::convert::From<&CheckRunCreatedCheckRun> for CheckRunCreatedCheckRun { fn from(value: &CheckRunCreatedCheckRun) -> Self { value.clone() } @@ -7652,7 +7757,9 @@ pub struct CheckRunCreatedCheckRunCheckSuite { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&CheckRunCreatedCheckRunCheckSuite> for CheckRunCreatedCheckRunCheckSuite { +impl ::std::convert::From<&CheckRunCreatedCheckRunCheckSuite> + for CheckRunCreatedCheckRunCheckSuite +{ fn from(value: &CheckRunCreatedCheckRunCheckSuite) -> Self { value.clone() } @@ -7704,7 +7811,7 @@ pub enum CheckRunCreatedCheckRunCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckRunCreatedCheckRunCheckSuiteConclusion> +impl ::std::convert::From<&CheckRunCreatedCheckRunCheckSuiteConclusion> for CheckRunCreatedCheckRunCheckSuiteConclusion { fn from(value: &CheckRunCreatedCheckRunCheckSuiteConclusion) -> Self { @@ -7724,7 +7831,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunCheckSuiteConclusion { } } } -impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteConclusion { +impl ::std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7739,13 +7846,15 @@ impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCheckSuiteConclusion { +impl ::std::convert::TryFrom<&::std::string::String> + for CheckRunCreatedCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7753,7 +7862,9 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCh value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunCheckSuiteConclusion { +impl ::std::convert::TryFrom<::std::string::String> + for CheckRunCreatedCheckRunCheckSuiteConclusion +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7796,7 +7907,9 @@ pub enum CheckRunCreatedCheckRunCheckSuiteStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunCreatedCheckRunCheckSuiteStatus> for CheckRunCreatedCheckRunCheckSuiteStatus { +impl ::std::convert::From<&CheckRunCreatedCheckRunCheckSuiteStatus> + for CheckRunCreatedCheckRunCheckSuiteStatus +{ fn from(value: &CheckRunCreatedCheckRunCheckSuiteStatus) -> Self { value.clone() } @@ -7810,7 +7923,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunCheckSuiteStatus { } } } -impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteStatus { +impl ::std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7821,13 +7934,13 @@ impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7835,7 +7948,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCh value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7894,7 +8007,9 @@ pub enum CheckRunCreatedCheckRunConclusion { #[serde(rename = "skipped")] Skipped, } -impl From<&CheckRunCreatedCheckRunConclusion> for CheckRunCreatedCheckRunConclusion { +impl ::std::convert::From<&CheckRunCreatedCheckRunConclusion> + for CheckRunCreatedCheckRunConclusion +{ fn from(value: &CheckRunCreatedCheckRunConclusion) -> Self { value.clone() } @@ -7913,7 +8028,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunConclusion { } } } -impl std::str::FromStr for CheckRunCreatedCheckRunConclusion { +impl ::std::str::FromStr for CheckRunCreatedCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7929,13 +8044,13 @@ impl std::str::FromStr for CheckRunCreatedCheckRunConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7943,7 +8058,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunCo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8005,7 +8120,7 @@ pub struct CheckRunCreatedCheckRunOutput { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunCreatedCheckRunOutput> for CheckRunCreatedCheckRunOutput { +impl ::std::convert::From<&CheckRunCreatedCheckRunOutput> for CheckRunCreatedCheckRunOutput { fn from(value: &CheckRunCreatedCheckRunOutput) -> Self { value.clone() } @@ -8046,7 +8161,7 @@ pub enum CheckRunCreatedCheckRunStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunCreatedCheckRunStatus> for CheckRunCreatedCheckRunStatus { +impl ::std::convert::From<&CheckRunCreatedCheckRunStatus> for CheckRunCreatedCheckRunStatus { fn from(value: &CheckRunCreatedCheckRunStatus) -> Self { value.clone() } @@ -8060,7 +8175,7 @@ impl ::std::fmt::Display for CheckRunCreatedCheckRunStatus { } } } -impl std::str::FromStr for CheckRunCreatedCheckRunStatus { +impl ::std::str::FromStr for CheckRunCreatedCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8071,13 +8186,13 @@ impl std::str::FromStr for CheckRunCreatedCheckRunStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunStatus { +impl ::std::convert::TryFrom<&str> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8085,7 +8200,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunCreatedCheckRunSt value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8118,11 +8233,18 @@ pub struct CheckRunCreatedRequestedAction { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunCreatedRequestedAction> for CheckRunCreatedRequestedAction { +impl ::std::convert::From<&CheckRunCreatedRequestedAction> for CheckRunCreatedRequestedAction { fn from(value: &CheckRunCreatedRequestedAction) -> Self { value.clone() } } +impl ::std::default::Default for CheckRunCreatedRequestedAction { + fn default() -> Self { + Self { + identifier: Default::default(), + } + } +} #[doc = "A deployment to a repository environment. This will only be populated if the check run was created by a GitHub Actions workflow job that references an environment."] #[doc = r""] #[doc = r"
JSON schema"] @@ -8208,7 +8330,7 @@ pub struct CheckRunDeployment { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&CheckRunDeployment> for CheckRunDeployment { +impl ::std::convert::From<&CheckRunDeployment> for CheckRunDeployment { fn from(value: &CheckRunDeployment) -> Self { value.clone() } @@ -8244,27 +8366,27 @@ pub enum CheckRunEvent { RequestedAction(CheckRunRequestedAction), Rerequested(CheckRunRerequested), } -impl From<&CheckRunEvent> for CheckRunEvent { +impl ::std::convert::From<&CheckRunEvent> for CheckRunEvent { fn from(value: &CheckRunEvent) -> Self { value.clone() } } -impl From for CheckRunEvent { +impl ::std::convert::From for CheckRunEvent { fn from(value: CheckRunCompleted) -> Self { Self::Completed(value) } } -impl From for CheckRunEvent { +impl ::std::convert::From for CheckRunEvent { fn from(value: CheckRunCreated) -> Self { Self::Created(value) } } -impl From for CheckRunEvent { +impl ::std::convert::From for CheckRunEvent { fn from(value: CheckRunRequestedAction) -> Self { Self::RequestedAction(value) } } -impl From for CheckRunEvent { +impl ::std::convert::From for CheckRunEvent { fn from(value: CheckRunRerequested) -> Self { Self::Rerequested(value) } @@ -8350,7 +8472,7 @@ pub struct CheckRunPullRequest { pub number: i64, pub url: ::std::string::String, } -impl From<&CheckRunPullRequest> for CheckRunPullRequest { +impl ::std::convert::From<&CheckRunPullRequest> for CheckRunPullRequest { fn from(value: &CheckRunPullRequest) -> Self { value.clone() } @@ -8390,7 +8512,7 @@ pub struct CheckRunPullRequestBase { pub repo: RepoRef, pub sha: ::std::string::String, } -impl From<&CheckRunPullRequestBase> for CheckRunPullRequestBase { +impl ::std::convert::From<&CheckRunPullRequestBase> for CheckRunPullRequestBase { fn from(value: &CheckRunPullRequestBase) -> Self { value.clone() } @@ -8430,7 +8552,7 @@ pub struct CheckRunPullRequestHead { pub repo: RepoRef, pub sha: ::std::string::String, } -impl From<&CheckRunPullRequestHead> for CheckRunPullRequestHead { +impl ::std::convert::From<&CheckRunPullRequestHead> for CheckRunPullRequestHead { fn from(value: &CheckRunPullRequestHead) -> Self { value.clone() } @@ -8734,7 +8856,7 @@ pub struct CheckRunRequestedAction { pub requested_action: CheckRunRequestedActionRequestedAction, pub sender: User, } -impl From<&CheckRunRequestedAction> for CheckRunRequestedAction { +impl ::std::convert::From<&CheckRunRequestedAction> for CheckRunRequestedAction { fn from(value: &CheckRunRequestedAction) -> Self { value.clone() } @@ -8768,7 +8890,7 @@ pub enum CheckRunRequestedActionAction { #[serde(rename = "requested_action")] RequestedAction, } -impl From<&CheckRunRequestedActionAction> for CheckRunRequestedActionAction { +impl ::std::convert::From<&CheckRunRequestedActionAction> for CheckRunRequestedActionAction { fn from(value: &CheckRunRequestedActionAction) -> Self { value.clone() } @@ -8780,7 +8902,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionAction { } } } -impl std::str::FromStr for CheckRunRequestedActionAction { +impl ::std::str::FromStr for CheckRunRequestedActionAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8789,13 +8911,13 @@ impl std::str::FromStr for CheckRunRequestedActionAction { } } } -impl std::convert::TryFrom<&str> for CheckRunRequestedActionAction { +impl ::std::convert::TryFrom<&str> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8803,7 +8925,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9082,7 +9204,7 @@ pub struct CheckRunRequestedActionCheckRun { pub status: CheckRunRequestedActionCheckRunStatus, pub url: ::std::string::String, } -impl From<&CheckRunRequestedActionCheckRun> for CheckRunRequestedActionCheckRun { +impl ::std::convert::From<&CheckRunRequestedActionCheckRun> for CheckRunRequestedActionCheckRun { fn from(value: &CheckRunRequestedActionCheckRun) -> Self { value.clone() } @@ -9215,7 +9337,7 @@ pub struct CheckRunRequestedActionCheckRunCheckSuite { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&CheckRunRequestedActionCheckRunCheckSuite> +impl ::std::convert::From<&CheckRunRequestedActionCheckRunCheckSuite> for CheckRunRequestedActionCheckRunCheckSuite { fn from(value: &CheckRunRequestedActionCheckRunCheckSuite) -> Self { @@ -9269,7 +9391,7 @@ pub enum CheckRunRequestedActionCheckRunCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckRunRequestedActionCheckRunCheckSuiteConclusion> +impl ::std::convert::From<&CheckRunRequestedActionCheckRunCheckSuiteConclusion> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { fn from(value: &CheckRunRequestedActionCheckRunCheckSuiteConclusion) -> Self { @@ -9289,7 +9411,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunCheckSuiteConclusion } } } -impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteConclusion { +impl ::std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9304,13 +9426,13 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; @@ -9320,7 +9442,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; @@ -9365,7 +9487,7 @@ pub enum CheckRunRequestedActionCheckRunCheckSuiteStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunRequestedActionCheckRunCheckSuiteStatus> +impl ::std::convert::From<&CheckRunRequestedActionCheckRunCheckSuiteStatus> for CheckRunRequestedActionCheckRunCheckSuiteStatus { fn from(value: &CheckRunRequestedActionCheckRunCheckSuiteStatus) -> Self { @@ -9381,7 +9503,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunCheckSuiteStatus { } } } -impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteStatus { +impl ::std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9392,13 +9514,13 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; @@ -9408,7 +9530,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; @@ -9469,7 +9591,7 @@ pub enum CheckRunRequestedActionCheckRunConclusion { #[serde(rename = "skipped")] Skipped, } -impl From<&CheckRunRequestedActionCheckRunConclusion> +impl ::std::convert::From<&CheckRunRequestedActionCheckRunConclusion> for CheckRunRequestedActionCheckRunConclusion { fn from(value: &CheckRunRequestedActionCheckRunConclusion) -> Self { @@ -9490,7 +9612,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunConclusion { } } } -impl std::str::FromStr for CheckRunRequestedActionCheckRunConclusion { +impl ::std::str::FromStr for CheckRunRequestedActionCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9506,13 +9628,13 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9520,7 +9642,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCh value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9582,7 +9704,9 @@ pub struct CheckRunRequestedActionCheckRunOutput { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunRequestedActionCheckRunOutput> for CheckRunRequestedActionCheckRunOutput { +impl ::std::convert::From<&CheckRunRequestedActionCheckRunOutput> + for CheckRunRequestedActionCheckRunOutput +{ fn from(value: &CheckRunRequestedActionCheckRunOutput) -> Self { value.clone() } @@ -9623,7 +9747,9 @@ pub enum CheckRunRequestedActionCheckRunStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunRequestedActionCheckRunStatus> for CheckRunRequestedActionCheckRunStatus { +impl ::std::convert::From<&CheckRunRequestedActionCheckRunStatus> + for CheckRunRequestedActionCheckRunStatus +{ fn from(value: &CheckRunRequestedActionCheckRunStatus) -> Self { value.clone() } @@ -9637,7 +9763,7 @@ impl ::std::fmt::Display for CheckRunRequestedActionCheckRunStatus { } } } -impl std::str::FromStr for CheckRunRequestedActionCheckRunStatus { +impl ::std::str::FromStr for CheckRunRequestedActionCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9648,13 +9774,13 @@ impl std::str::FromStr for CheckRunRequestedActionCheckRunStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunStatus { +impl ::std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9662,7 +9788,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRequestedActionCh value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9695,11 +9821,20 @@ pub struct CheckRunRequestedActionRequestedAction { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunRequestedActionRequestedAction> for CheckRunRequestedActionRequestedAction { +impl ::std::convert::From<&CheckRunRequestedActionRequestedAction> + for CheckRunRequestedActionRequestedAction +{ fn from(value: &CheckRunRequestedActionRequestedAction) -> Self { value.clone() } } +impl ::std::default::Default for CheckRunRequestedActionRequestedAction { + fn default() -> Self { + Self { + identifier: Default::default(), + } + } +} #[doc = "CheckRunRerequested"] #[doc = r""] #[doc = r"
JSON schema"] @@ -9992,7 +10127,7 @@ pub struct CheckRunRerequested { pub requested_action: ::std::option::Option, pub sender: User, } -impl From<&CheckRunRerequested> for CheckRunRerequested { +impl ::std::convert::From<&CheckRunRerequested> for CheckRunRerequested { fn from(value: &CheckRunRerequested) -> Self { value.clone() } @@ -10026,7 +10161,7 @@ pub enum CheckRunRerequestedAction { #[serde(rename = "rerequested")] Rerequested, } -impl From<&CheckRunRerequestedAction> for CheckRunRerequestedAction { +impl ::std::convert::From<&CheckRunRerequestedAction> for CheckRunRerequestedAction { fn from(value: &CheckRunRerequestedAction) -> Self { value.clone() } @@ -10038,7 +10173,7 @@ impl ::std::fmt::Display for CheckRunRerequestedAction { } } } -impl std::str::FromStr for CheckRunRerequestedAction { +impl ::std::str::FromStr for CheckRunRerequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10047,13 +10182,13 @@ impl std::str::FromStr for CheckRunRerequestedAction { } } } -impl std::convert::TryFrom<&str> for CheckRunRerequestedAction { +impl ::std::convert::TryFrom<&str> for CheckRunRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10061,7 +10196,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRerequestedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10329,7 +10464,7 @@ pub struct CheckRunRerequestedCheckRun { pub status: CheckRunRerequestedCheckRunStatus, pub url: ::std::string::String, } -impl From<&CheckRunRerequestedCheckRun> for CheckRunRerequestedCheckRun { +impl ::std::convert::From<&CheckRunRerequestedCheckRun> for CheckRunRerequestedCheckRun { fn from(value: &CheckRunRerequestedCheckRun) -> Self { value.clone() } @@ -10456,7 +10591,9 @@ pub struct CheckRunRerequestedCheckRunCheckSuite { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&CheckRunRerequestedCheckRunCheckSuite> for CheckRunRerequestedCheckRunCheckSuite { +impl ::std::convert::From<&CheckRunRerequestedCheckRunCheckSuite> + for CheckRunRerequestedCheckRunCheckSuite +{ fn from(value: &CheckRunRerequestedCheckRunCheckSuite) -> Self { value.clone() } @@ -10508,7 +10645,7 @@ pub enum CheckRunRerequestedCheckRunCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckRunRerequestedCheckRunCheckSuiteConclusion> +impl ::std::convert::From<&CheckRunRerequestedCheckRunCheckSuiteConclusion> for CheckRunRerequestedCheckRunCheckSuiteConclusion { fn from(value: &CheckRunRerequestedCheckRunCheckSuiteConclusion) -> Self { @@ -10528,7 +10665,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunCheckSuiteConclusion { } } } -impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteConclusion { +impl ::std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10543,13 +10680,13 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; @@ -10559,7 +10696,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; @@ -10598,7 +10735,7 @@ pub enum CheckRunRerequestedCheckRunCheckSuiteStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunRerequestedCheckRunCheckSuiteStatus> +impl ::std::convert::From<&CheckRunRerequestedCheckRunCheckSuiteStatus> for CheckRunRerequestedCheckRunCheckSuiteStatus { fn from(value: &CheckRunRerequestedCheckRunCheckSuiteStatus) -> Self { @@ -10612,7 +10749,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunCheckSuiteStatus { } } } -impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteStatus { +impl ::std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10621,13 +10758,15 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<&::std::string::String> + for CheckRunRerequestedCheckRunCheckSuiteStatus +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10635,7 +10774,9 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckR value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunCheckSuiteStatus { +impl ::std::convert::TryFrom<::std::string::String> + for CheckRunRerequestedCheckRunCheckSuiteStatus +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10694,7 +10835,9 @@ pub enum CheckRunRerequestedCheckRunConclusion { #[serde(rename = "skipped")] Skipped, } -impl From<&CheckRunRerequestedCheckRunConclusion> for CheckRunRerequestedCheckRunConclusion { +impl ::std::convert::From<&CheckRunRerequestedCheckRunConclusion> + for CheckRunRerequestedCheckRunConclusion +{ fn from(value: &CheckRunRerequestedCheckRunConclusion) -> Self { value.clone() } @@ -10713,7 +10856,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunConclusion { } } } -impl std::str::FromStr for CheckRunRerequestedCheckRunConclusion { +impl ::std::str::FromStr for CheckRunRerequestedCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10729,13 +10872,13 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunConclusion { } } } -impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunConclusion { +impl ::std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10743,7 +10886,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckR value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10805,7 +10948,9 @@ pub struct CheckRunRerequestedCheckRunOutput { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunRerequestedCheckRunOutput> for CheckRunRerequestedCheckRunOutput { +impl ::std::convert::From<&CheckRunRerequestedCheckRunOutput> + for CheckRunRerequestedCheckRunOutput +{ fn from(value: &CheckRunRerequestedCheckRunOutput) -> Self { value.clone() } @@ -10840,7 +10985,9 @@ pub enum CheckRunRerequestedCheckRunStatus { #[serde(rename = "completed")] Completed, } -impl From<&CheckRunRerequestedCheckRunStatus> for CheckRunRerequestedCheckRunStatus { +impl ::std::convert::From<&CheckRunRerequestedCheckRunStatus> + for CheckRunRerequestedCheckRunStatus +{ fn from(value: &CheckRunRerequestedCheckRunStatus) -> Self { value.clone() } @@ -10852,7 +10999,7 @@ impl ::std::fmt::Display for CheckRunRerequestedCheckRunStatus { } } } -impl std::str::FromStr for CheckRunRerequestedCheckRunStatus { +impl ::std::str::FromStr for CheckRunRerequestedCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10861,13 +11008,13 @@ impl std::str::FromStr for CheckRunRerequestedCheckRunStatus { } } } -impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunStatus { +impl ::std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10875,7 +11022,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckRunRerequestedCheckR value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10908,11 +11055,20 @@ pub struct CheckRunRerequestedRequestedAction { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } -impl From<&CheckRunRerequestedRequestedAction> for CheckRunRerequestedRequestedAction { +impl ::std::convert::From<&CheckRunRerequestedRequestedAction> + for CheckRunRerequestedRequestedAction +{ fn from(value: &CheckRunRerequestedRequestedAction) -> Self { value.clone() } } +impl ::std::default::Default for CheckRunRerequestedRequestedAction { + fn default() -> Self { + Self { + identifier: Default::default(), + } + } +} #[doc = "CheckSuiteCompleted"] #[doc = r""] #[doc = r"
JSON schema"] @@ -11079,7 +11235,7 @@ pub struct CheckSuiteCompleted { pub repository: Repository, pub sender: User, } -impl From<&CheckSuiteCompleted> for CheckSuiteCompleted { +impl ::std::convert::From<&CheckSuiteCompleted> for CheckSuiteCompleted { fn from(value: &CheckSuiteCompleted) -> Self { value.clone() } @@ -11113,7 +11269,7 @@ pub enum CheckSuiteCompletedAction { #[serde(rename = "completed")] Completed, } -impl From<&CheckSuiteCompletedAction> for CheckSuiteCompletedAction { +impl ::std::convert::From<&CheckSuiteCompletedAction> for CheckSuiteCompletedAction { fn from(value: &CheckSuiteCompletedAction) -> Self { value.clone() } @@ -11125,7 +11281,7 @@ impl ::std::fmt::Display for CheckSuiteCompletedAction { } } } -impl std::str::FromStr for CheckSuiteCompletedAction { +impl ::std::str::FromStr for CheckSuiteCompletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11134,13 +11290,13 @@ impl std::str::FromStr for CheckSuiteCompletedAction { } } } -impl std::convert::TryFrom<&str> for CheckSuiteCompletedAction { +impl ::std::convert::TryFrom<&str> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11148,7 +11304,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11304,7 +11460,7 @@ pub struct CheckSuiteCompletedCheckSuite { #[doc = "URL that points to the check suite API resource."] pub url: ::std::string::String, } -impl From<&CheckSuiteCompletedCheckSuite> for CheckSuiteCompletedCheckSuite { +impl ::std::convert::From<&CheckSuiteCompletedCheckSuite> for CheckSuiteCompletedCheckSuite { fn from(value: &CheckSuiteCompletedCheckSuite) -> Self { value.clone() } @@ -11357,7 +11513,9 @@ pub enum CheckSuiteCompletedCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckSuiteCompletedCheckSuiteConclusion> for CheckSuiteCompletedCheckSuiteConclusion { +impl ::std::convert::From<&CheckSuiteCompletedCheckSuiteConclusion> + for CheckSuiteCompletedCheckSuiteConclusion +{ fn from(value: &CheckSuiteCompletedCheckSuiteConclusion) -> Self { value.clone() } @@ -11375,7 +11533,7 @@ impl ::std::fmt::Display for CheckSuiteCompletedCheckSuiteConclusion { } } } -impl std::str::FromStr for CheckSuiteCompletedCheckSuiteConclusion { +impl ::std::str::FromStr for CheckSuiteCompletedCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11390,13 +11548,13 @@ impl std::str::FromStr for CheckSuiteCompletedCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckSuiteConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11404,7 +11562,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedCheckSuiteConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11451,7 +11609,9 @@ pub enum CheckSuiteCompletedCheckSuiteStatus { #[serde(rename = "queued")] Queued, } -impl From<&CheckSuiteCompletedCheckSuiteStatus> for CheckSuiteCompletedCheckSuiteStatus { +impl ::std::convert::From<&CheckSuiteCompletedCheckSuiteStatus> + for CheckSuiteCompletedCheckSuiteStatus +{ fn from(value: &CheckSuiteCompletedCheckSuiteStatus) -> Self { value.clone() } @@ -11466,7 +11626,7 @@ impl ::std::fmt::Display for CheckSuiteCompletedCheckSuiteStatus { } } } -impl std::str::FromStr for CheckSuiteCompletedCheckSuiteStatus { +impl ::std::str::FromStr for CheckSuiteCompletedCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11478,13 +11638,13 @@ impl std::str::FromStr for CheckSuiteCompletedCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckSuiteStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11492,7 +11652,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteCompletedCheckS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedCheckSuiteStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11527,22 +11687,22 @@ pub enum CheckSuiteEvent { Requested(CheckSuiteRequested), Rerequested(CheckSuiteRerequested), } -impl From<&CheckSuiteEvent> for CheckSuiteEvent { +impl ::std::convert::From<&CheckSuiteEvent> for CheckSuiteEvent { fn from(value: &CheckSuiteEvent) -> Self { value.clone() } } -impl From for CheckSuiteEvent { +impl ::std::convert::From for CheckSuiteEvent { fn from(value: CheckSuiteCompleted) -> Self { Self::Completed(value) } } -impl From for CheckSuiteEvent { +impl ::std::convert::From for CheckSuiteEvent { fn from(value: CheckSuiteRequested) -> Self { Self::Requested(value) } } -impl From for CheckSuiteEvent { +impl ::std::convert::From for CheckSuiteEvent { fn from(value: CheckSuiteRerequested) -> Self { Self::Rerequested(value) } @@ -11713,7 +11873,7 @@ pub struct CheckSuiteRequested { pub repository: Repository, pub sender: User, } -impl From<&CheckSuiteRequested> for CheckSuiteRequested { +impl ::std::convert::From<&CheckSuiteRequested> for CheckSuiteRequested { fn from(value: &CheckSuiteRequested) -> Self { value.clone() } @@ -11747,7 +11907,7 @@ pub enum CheckSuiteRequestedAction { #[serde(rename = "requested")] Requested, } -impl From<&CheckSuiteRequestedAction> for CheckSuiteRequestedAction { +impl ::std::convert::From<&CheckSuiteRequestedAction> for CheckSuiteRequestedAction { fn from(value: &CheckSuiteRequestedAction) -> Self { value.clone() } @@ -11759,7 +11919,7 @@ impl ::std::fmt::Display for CheckSuiteRequestedAction { } } } -impl std::str::FromStr for CheckSuiteRequestedAction { +impl ::std::str::FromStr for CheckSuiteRequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11768,13 +11928,13 @@ impl std::str::FromStr for CheckSuiteRequestedAction { } } } -impl std::convert::TryFrom<&str> for CheckSuiteRequestedAction { +impl ::std::convert::TryFrom<&str> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11782,7 +11942,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11938,7 +12098,7 @@ pub struct CheckSuiteRequestedCheckSuite { #[doc = "URL that points to the check suite API resource."] pub url: ::std::string::String, } -impl From<&CheckSuiteRequestedCheckSuite> for CheckSuiteRequestedCheckSuite { +impl ::std::convert::From<&CheckSuiteRequestedCheckSuite> for CheckSuiteRequestedCheckSuite { fn from(value: &CheckSuiteRequestedCheckSuite) -> Self { value.clone() } @@ -11991,7 +12151,9 @@ pub enum CheckSuiteRequestedCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckSuiteRequestedCheckSuiteConclusion> for CheckSuiteRequestedCheckSuiteConclusion { +impl ::std::convert::From<&CheckSuiteRequestedCheckSuiteConclusion> + for CheckSuiteRequestedCheckSuiteConclusion +{ fn from(value: &CheckSuiteRequestedCheckSuiteConclusion) -> Self { value.clone() } @@ -12009,7 +12171,7 @@ impl ::std::fmt::Display for CheckSuiteRequestedCheckSuiteConclusion { } } } -impl std::str::FromStr for CheckSuiteRequestedCheckSuiteConclusion { +impl ::std::str::FromStr for CheckSuiteRequestedCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12024,13 +12186,13 @@ impl std::str::FromStr for CheckSuiteRequestedCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckSuiteConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12038,7 +12200,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSuiteConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12085,7 +12247,9 @@ pub enum CheckSuiteRequestedCheckSuiteStatus { #[serde(rename = "queued")] Queued, } -impl From<&CheckSuiteRequestedCheckSuiteStatus> for CheckSuiteRequestedCheckSuiteStatus { +impl ::std::convert::From<&CheckSuiteRequestedCheckSuiteStatus> + for CheckSuiteRequestedCheckSuiteStatus +{ fn from(value: &CheckSuiteRequestedCheckSuiteStatus) -> Self { value.clone() } @@ -12100,7 +12264,7 @@ impl ::std::fmt::Display for CheckSuiteRequestedCheckSuiteStatus { } } } -impl std::str::FromStr for CheckSuiteRequestedCheckSuiteStatus { +impl ::std::str::FromStr for CheckSuiteRequestedCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12112,13 +12276,13 @@ impl std::str::FromStr for CheckSuiteRequestedCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckSuiteStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12126,7 +12290,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRequestedCheckS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSuiteStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12300,7 +12464,7 @@ pub struct CheckSuiteRerequested { pub repository: Repository, pub sender: User, } -impl From<&CheckSuiteRerequested> for CheckSuiteRerequested { +impl ::std::convert::From<&CheckSuiteRerequested> for CheckSuiteRerequested { fn from(value: &CheckSuiteRerequested) -> Self { value.clone() } @@ -12334,7 +12498,7 @@ pub enum CheckSuiteRerequestedAction { #[serde(rename = "rerequested")] Rerequested, } -impl From<&CheckSuiteRerequestedAction> for CheckSuiteRerequestedAction { +impl ::std::convert::From<&CheckSuiteRerequestedAction> for CheckSuiteRerequestedAction { fn from(value: &CheckSuiteRerequestedAction) -> Self { value.clone() } @@ -12346,7 +12510,7 @@ impl ::std::fmt::Display for CheckSuiteRerequestedAction { } } } -impl std::str::FromStr for CheckSuiteRerequestedAction { +impl ::std::str::FromStr for CheckSuiteRerequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12355,13 +12519,13 @@ impl std::str::FromStr for CheckSuiteRerequestedAction { } } } -impl std::convert::TryFrom<&str> for CheckSuiteRerequestedAction { +impl ::std::convert::TryFrom<&str> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12369,7 +12533,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedAction { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12525,7 +12689,7 @@ pub struct CheckSuiteRerequestedCheckSuite { #[doc = "URL that points to the check suite API resource."] pub url: ::std::string::String, } -impl From<&CheckSuiteRerequestedCheckSuite> for CheckSuiteRerequestedCheckSuite { +impl ::std::convert::From<&CheckSuiteRerequestedCheckSuite> for CheckSuiteRerequestedCheckSuite { fn from(value: &CheckSuiteRerequestedCheckSuite) -> Self { value.clone() } @@ -12578,7 +12742,7 @@ pub enum CheckSuiteRerequestedCheckSuiteConclusion { #[serde(rename = "stale")] Stale, } -impl From<&CheckSuiteRerequestedCheckSuiteConclusion> +impl ::std::convert::From<&CheckSuiteRerequestedCheckSuiteConclusion> for CheckSuiteRerequestedCheckSuiteConclusion { fn from(value: &CheckSuiteRerequestedCheckSuiteConclusion) -> Self { @@ -12598,7 +12762,7 @@ impl ::std::fmt::Display for CheckSuiteRerequestedCheckSuiteConclusion { } } } -impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteConclusion { +impl ::std::str::FromStr for CheckSuiteRerequestedCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12613,13 +12777,13 @@ impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteConclusion { } } } -impl std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteConclusion { +impl ::std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedCheckSuiteConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12627,7 +12791,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedChec value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedCheckSuiteConclusion { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12674,7 +12838,9 @@ pub enum CheckSuiteRerequestedCheckSuiteStatus { #[serde(rename = "queued")] Queued, } -impl From<&CheckSuiteRerequestedCheckSuiteStatus> for CheckSuiteRerequestedCheckSuiteStatus { +impl ::std::convert::From<&CheckSuiteRerequestedCheckSuiteStatus> + for CheckSuiteRerequestedCheckSuiteStatus +{ fn from(value: &CheckSuiteRerequestedCheckSuiteStatus) -> Self { value.clone() } @@ -12689,7 +12855,7 @@ impl ::std::fmt::Display for CheckSuiteRerequestedCheckSuiteStatus { } } } -impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteStatus { +impl ::std::str::FromStr for CheckSuiteRerequestedCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12701,13 +12867,13 @@ impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteStatus { } } } -impl std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteStatus { +impl ::std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedCheckSuiteStatus { +impl ::std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12715,7 +12881,7 @@ impl std::convert::TryFrom<&::std::string::String> for CheckSuiteRerequestedChec value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedCheckSuiteStatus { +impl ::std::convert::TryFrom<::std::string::String> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12930,7 +13096,9 @@ pub struct CodeScanningAlertAppearedInBranch { pub repository: Repository, pub sender: GithubOrg, } -impl From<&CodeScanningAlertAppearedInBranch> for CodeScanningAlertAppearedInBranch { +impl ::std::convert::From<&CodeScanningAlertAppearedInBranch> + for CodeScanningAlertAppearedInBranch +{ fn from(value: &CodeScanningAlertAppearedInBranch) -> Self { value.clone() } @@ -12964,7 +13132,9 @@ pub enum CodeScanningAlertAppearedInBranchAction { #[serde(rename = "appeared_in_branch")] AppearedInBranch, } -impl From<&CodeScanningAlertAppearedInBranchAction> for CodeScanningAlertAppearedInBranchAction { +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAction> + for CodeScanningAlertAppearedInBranchAction +{ fn from(value: &CodeScanningAlertAppearedInBranchAction) -> Self { value.clone() } @@ -12976,7 +13146,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAction { } } } -impl std::str::FromStr for CodeScanningAlertAppearedInBranchAction { +impl ::std::str::FromStr for CodeScanningAlertAppearedInBranchAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12985,13 +13155,13 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAction { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAction { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAction { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12999,7 +13169,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppeared value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAction { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13179,7 +13349,9 @@ pub struct CodeScanningAlertAppearedInBranchAlert { pub tool: CodeScanningAlertAppearedInBranchAlertTool, pub url: ::std::string::String, } -impl From<&CodeScanningAlertAppearedInBranchAlert> for CodeScanningAlertAppearedInBranchAlert { +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAlert> + for CodeScanningAlertAppearedInBranchAlert +{ fn from(value: &CodeScanningAlertAppearedInBranchAlert) -> Self { value.clone() } @@ -13220,7 +13392,7 @@ pub enum CodeScanningAlertAppearedInBranchAlertDismissedReason { #[serde(rename = "used in tests")] UsedInTests, } -impl From<&CodeScanningAlertAppearedInBranchAlertDismissedReason> +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAlertDismissedReason> for CodeScanningAlertAppearedInBranchAlertDismissedReason { fn from(value: &CodeScanningAlertAppearedInBranchAlertDismissedReason) -> Self { @@ -13236,7 +13408,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertDismissedReas } } } -impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertDismissedReason { +impl ::std::str::FromStr for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13247,13 +13419,13 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertDismissedReason } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertDismissedReason { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; @@ -13263,7 +13435,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; @@ -13323,7 +13495,7 @@ pub struct CodeScanningAlertAppearedInBranchAlertRule { #[doc = "The severity of the alert."] pub severity: ::std::option::Option, } -impl From<&CodeScanningAlertAppearedInBranchAlertRule> +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule { fn from(value: &CodeScanningAlertAppearedInBranchAlertRule) -> Self { @@ -13369,7 +13541,7 @@ pub enum CodeScanningAlertAppearedInBranchAlertRuleSeverity { #[serde(rename = "error")] Error, } -impl From<&CodeScanningAlertAppearedInBranchAlertRuleSeverity> +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAlertRuleSeverity> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { fn from(value: &CodeScanningAlertAppearedInBranchAlertRuleSeverity) -> Self { @@ -13386,7 +13558,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertRuleSeverity } } } -impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertRuleSeverity { +impl ::std::str::FromStr for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13398,13 +13570,13 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertRuleSeverity { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; @@ -13414,7 +13586,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; @@ -13460,7 +13632,7 @@ pub enum CodeScanningAlertAppearedInBranchAlertState { #[serde(rename = "fixed")] Fixed, } -impl From<&CodeScanningAlertAppearedInBranchAlertState> +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAlertState> for CodeScanningAlertAppearedInBranchAlertState { fn from(value: &CodeScanningAlertAppearedInBranchAlertState) -> Self { @@ -13476,7 +13648,7 @@ impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertState { } } } -impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertState { +impl ::std::str::FromStr for CodeScanningAlertAppearedInBranchAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13487,13 +13659,15 @@ impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppearedInBranchAlertState { +impl ::std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertAppearedInBranchAlertState +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13501,7 +13675,9 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertAppeared value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertAppearedInBranchAlertState { +impl ::std::convert::TryFrom<::std::string::String> + for CodeScanningAlertAppearedInBranchAlertState +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13545,7 +13721,7 @@ pub struct CodeScanningAlertAppearedInBranchAlertTool { #[doc = "The version of the tool used to detect the alert."] pub version: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertAppearedInBranchAlertTool> +impl ::std::convert::From<&CodeScanningAlertAppearedInBranchAlertTool> for CodeScanningAlertAppearedInBranchAlertTool { fn from(value: &CodeScanningAlertAppearedInBranchAlertTool) -> Self { @@ -13781,7 +13957,7 @@ pub struct CodeScanningAlertClosedByUser { pub repository: Repository, pub sender: User, } -impl From<&CodeScanningAlertClosedByUser> for CodeScanningAlertClosedByUser { +impl ::std::convert::From<&CodeScanningAlertClosedByUser> for CodeScanningAlertClosedByUser { fn from(value: &CodeScanningAlertClosedByUser) -> Self { value.clone() } @@ -13815,7 +13991,9 @@ pub enum CodeScanningAlertClosedByUserAction { #[serde(rename = "closed_by_user")] ClosedByUser, } -impl From<&CodeScanningAlertClosedByUserAction> for CodeScanningAlertClosedByUserAction { +impl ::std::convert::From<&CodeScanningAlertClosedByUserAction> + for CodeScanningAlertClosedByUserAction +{ fn from(value: &CodeScanningAlertClosedByUserAction) -> Self { value.clone() } @@ -13827,7 +14005,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAction { } } } -impl std::str::FromStr for CodeScanningAlertClosedByUserAction { +impl ::std::str::FromStr for CodeScanningAlertClosedByUserAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13836,13 +14014,13 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAction { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAction { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAction { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13850,7 +14028,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedBy value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAction { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14051,7 +14229,9 @@ pub struct CodeScanningAlertClosedByUserAlert { pub tool: CodeScanningAlertClosedByUserAlertTool, pub url: ::std::string::String, } -impl From<&CodeScanningAlertClosedByUserAlert> for CodeScanningAlertClosedByUserAlert { +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlert> + for CodeScanningAlertClosedByUserAlert +{ fn from(value: &CodeScanningAlertClosedByUserAlert) -> Self { value.clone() } @@ -14093,7 +14273,7 @@ pub enum CodeScanningAlertClosedByUserAlertDismissedReason { #[serde(rename = "used in tests")] UsedInTests, } -impl From<&CodeScanningAlertClosedByUserAlertDismissedReason> +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertDismissedReason> for CodeScanningAlertClosedByUserAlertDismissedReason { fn from(value: &CodeScanningAlertClosedByUserAlertDismissedReason) -> Self { @@ -14109,7 +14289,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertDismissedReason { } } } -impl std::str::FromStr for CodeScanningAlertClosedByUserAlertDismissedReason { +impl ::std::str::FromStr for CodeScanningAlertClosedByUserAlertDismissedReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14120,13 +14300,13 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertDismissedReason { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertDismissedReason { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; @@ -14136,7 +14316,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; @@ -14195,7 +14375,7 @@ pub struct CodeScanningAlertClosedByUserAlertInstancesItem { pub ref_: ::std::string::String, pub state: CodeScanningAlertClosedByUserAlertInstancesItemState, } -impl From<&CodeScanningAlertClosedByUserAlertInstancesItem> +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertInstancesItem> for CodeScanningAlertClosedByUserAlertInstancesItem { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItem) -> Self { @@ -14244,13 +14424,24 @@ pub struct CodeScanningAlertClosedByUserAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } -impl From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> for CodeScanningAlertClosedByUserAlertInstancesItemLocation { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItemLocation) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertClosedByUserAlertInstancesItemLocation { + fn default() -> Self { + Self { + end_column: Default::default(), + end_line: Default::default(), + path: Default::default(), + start_column: Default::default(), + start_line: Default::default(), + } + } +} #[doc = "CodeScanningAlertClosedByUserAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] @@ -14273,13 +14464,20 @@ pub struct CodeScanningAlertClosedByUserAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertClosedByUserAlertInstancesItemMessage> +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertInstancesItemMessage> for CodeScanningAlertClosedByUserAlertInstancesItemMessage { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItemMessage) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertClosedByUserAlertInstancesItemMessage { + fn default() -> Self { + Self { + text: Default::default(), + } + } +} #[doc = "CodeScanningAlertClosedByUserAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -14309,7 +14507,7 @@ pub enum CodeScanningAlertClosedByUserAlertInstancesItemState { #[serde(rename = "dismissed")] Dismissed, } -impl From<&CodeScanningAlertClosedByUserAlertInstancesItemState> +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertInstancesItemState> for CodeScanningAlertClosedByUserAlertInstancesItemState { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItemState) -> Self { @@ -14323,7 +14521,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertInstancesItemStat } } } -impl std::str::FromStr for CodeScanningAlertClosedByUserAlertInstancesItemState { +impl ::std::str::FromStr for CodeScanningAlertClosedByUserAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14332,13 +14530,13 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertInstancesItemState } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertInstancesItemState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; @@ -14348,7 +14546,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; @@ -14428,7 +14626,9 @@ pub struct CodeScanningAlertClosedByUserAlertRule { #[serde(default)] pub tags: (), } -impl From<&CodeScanningAlertClosedByUserAlertRule> for CodeScanningAlertClosedByUserAlertRule { +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertRule> + for CodeScanningAlertClosedByUserAlertRule +{ fn from(value: &CodeScanningAlertClosedByUserAlertRule) -> Self { value.clone() } @@ -14472,7 +14672,7 @@ pub enum CodeScanningAlertClosedByUserAlertRuleSeverity { #[serde(rename = "error")] Error, } -impl From<&CodeScanningAlertClosedByUserAlertRuleSeverity> +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertRuleSeverity> for CodeScanningAlertClosedByUserAlertRuleSeverity { fn from(value: &CodeScanningAlertClosedByUserAlertRuleSeverity) -> Self { @@ -14489,7 +14689,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertRuleSeverity { } } } -impl std::str::FromStr for CodeScanningAlertClosedByUserAlertRuleSeverity { +impl ::std::str::FromStr for CodeScanningAlertClosedByUserAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14501,13 +14701,13 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertRuleSeverity { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertRuleSeverity { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; @@ -14517,7 +14717,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; @@ -14557,7 +14757,9 @@ pub enum CodeScanningAlertClosedByUserAlertState { #[serde(rename = "dismissed")] Dismissed, } -impl From<&CodeScanningAlertClosedByUserAlertState> for CodeScanningAlertClosedByUserAlertState { +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertState> + for CodeScanningAlertClosedByUserAlertState +{ fn from(value: &CodeScanningAlertClosedByUserAlertState) -> Self { value.clone() } @@ -14569,7 +14771,7 @@ impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertState { } } } -impl std::str::FromStr for CodeScanningAlertClosedByUserAlertState { +impl ::std::str::FromStr for CodeScanningAlertClosedByUserAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14578,13 +14780,13 @@ impl std::str::FromStr for CodeScanningAlertClosedByUserAlertState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAlertState { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14592,7 +14794,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertClosedBy value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAlertState { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14644,7 +14846,9 @@ pub struct CodeScanningAlertClosedByUserAlertTool { #[doc = "The version of the tool used to detect the alert."] pub version: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertClosedByUserAlertTool> for CodeScanningAlertClosedByUserAlertTool { +impl ::std::convert::From<&CodeScanningAlertClosedByUserAlertTool> + for CodeScanningAlertClosedByUserAlertTool +{ fn from(value: &CodeScanningAlertClosedByUserAlertTool) -> Self { value.clone() } @@ -14873,7 +15077,7 @@ pub struct CodeScanningAlertCreated { pub repository: Repository, pub sender: GithubOrg, } -impl From<&CodeScanningAlertCreated> for CodeScanningAlertCreated { +impl ::std::convert::From<&CodeScanningAlertCreated> for CodeScanningAlertCreated { fn from(value: &CodeScanningAlertCreated) -> Self { value.clone() } @@ -14907,7 +15111,7 @@ pub enum CodeScanningAlertCreatedAction { #[serde(rename = "created")] Created, } -impl From<&CodeScanningAlertCreatedAction> for CodeScanningAlertCreatedAction { +impl ::std::convert::From<&CodeScanningAlertCreatedAction> for CodeScanningAlertCreatedAction { fn from(value: &CodeScanningAlertCreatedAction) -> Self { value.clone() } @@ -14919,7 +15123,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAction { } } } -impl std::str::FromStr for CodeScanningAlertCreatedAction { +impl ::std::str::FromStr for CodeScanningAlertCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14928,13 +15132,13 @@ impl std::str::FromStr for CodeScanningAlertCreatedAction { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAction { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14942,7 +15146,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15138,7 +15342,7 @@ pub struct CodeScanningAlertCreatedAlert { pub tool: CodeScanningAlertCreatedAlertTool, pub url: ::std::string::String, } -impl From<&CodeScanningAlertCreatedAlert> for CodeScanningAlertCreatedAlert { +impl ::std::convert::From<&CodeScanningAlertCreatedAlert> for CodeScanningAlertCreatedAlert { fn from(value: &CodeScanningAlertCreatedAlert) -> Self { value.clone() } @@ -15193,7 +15397,7 @@ pub struct CodeScanningAlertCreatedAlertInstancesItem { pub ref_: ::std::string::String, pub state: CodeScanningAlertCreatedAlertInstancesItemState, } -impl From<&CodeScanningAlertCreatedAlertInstancesItem> +impl ::std::convert::From<&CodeScanningAlertCreatedAlertInstancesItem> for CodeScanningAlertCreatedAlertInstancesItem { fn from(value: &CodeScanningAlertCreatedAlertInstancesItem) -> Self { @@ -15242,13 +15446,24 @@ pub struct CodeScanningAlertCreatedAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } -impl From<&CodeScanningAlertCreatedAlertInstancesItemLocation> +impl ::std::convert::From<&CodeScanningAlertCreatedAlertInstancesItemLocation> for CodeScanningAlertCreatedAlertInstancesItemLocation { fn from(value: &CodeScanningAlertCreatedAlertInstancesItemLocation) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertCreatedAlertInstancesItemLocation { + fn default() -> Self { + Self { + end_column: Default::default(), + end_line: Default::default(), + path: Default::default(), + start_column: Default::default(), + start_line: Default::default(), + } + } +} #[doc = "CodeScanningAlertCreatedAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] @@ -15271,13 +15486,20 @@ pub struct CodeScanningAlertCreatedAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertCreatedAlertInstancesItemMessage> +impl ::std::convert::From<&CodeScanningAlertCreatedAlertInstancesItemMessage> for CodeScanningAlertCreatedAlertInstancesItemMessage { fn from(value: &CodeScanningAlertCreatedAlertInstancesItemMessage) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertCreatedAlertInstancesItemMessage { + fn default() -> Self { + Self { + text: Default::default(), + } + } +} #[doc = "CodeScanningAlertCreatedAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -15310,7 +15532,7 @@ pub enum CodeScanningAlertCreatedAlertInstancesItemState { #[serde(rename = "dismissed")] Dismissed, } -impl From<&CodeScanningAlertCreatedAlertInstancesItemState> +impl ::std::convert::From<&CodeScanningAlertCreatedAlertInstancesItemState> for CodeScanningAlertCreatedAlertInstancesItemState { fn from(value: &CodeScanningAlertCreatedAlertInstancesItemState) -> Self { @@ -15325,7 +15547,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAlertInstancesItemState { } } } -impl std::str::FromStr for CodeScanningAlertCreatedAlertInstancesItemState { +impl ::std::str::FromStr for CodeScanningAlertCreatedAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15335,13 +15557,13 @@ impl std::str::FromStr for CodeScanningAlertCreatedAlertInstancesItemState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertInstancesItemState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; @@ -15351,7 +15573,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; @@ -15431,7 +15653,9 @@ pub struct CodeScanningAlertCreatedAlertRule { #[serde(default)] pub tags: (), } -impl From<&CodeScanningAlertCreatedAlertRule> for CodeScanningAlertCreatedAlertRule { +impl ::std::convert::From<&CodeScanningAlertCreatedAlertRule> + for CodeScanningAlertCreatedAlertRule +{ fn from(value: &CodeScanningAlertCreatedAlertRule) -> Self { value.clone() } @@ -15475,7 +15699,7 @@ pub enum CodeScanningAlertCreatedAlertRuleSeverity { #[serde(rename = "error")] Error, } -impl From<&CodeScanningAlertCreatedAlertRuleSeverity> +impl ::std::convert::From<&CodeScanningAlertCreatedAlertRuleSeverity> for CodeScanningAlertCreatedAlertRuleSeverity { fn from(value: &CodeScanningAlertCreatedAlertRuleSeverity) -> Self { @@ -15492,7 +15716,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAlertRuleSeverity { } } } -impl std::str::FromStr for CodeScanningAlertCreatedAlertRuleSeverity { +impl ::std::str::FromStr for CodeScanningAlertCreatedAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15504,13 +15728,13 @@ impl std::str::FromStr for CodeScanningAlertCreatedAlertRuleSeverity { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertRuleSeverity { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertRuleSeverity { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15518,7 +15742,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertRuleSeverity { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15559,7 +15783,9 @@ pub enum CodeScanningAlertCreatedAlertState { #[serde(rename = "dismissed")] Dismissed, } -impl From<&CodeScanningAlertCreatedAlertState> for CodeScanningAlertCreatedAlertState { +impl ::std::convert::From<&CodeScanningAlertCreatedAlertState> + for CodeScanningAlertCreatedAlertState +{ fn from(value: &CodeScanningAlertCreatedAlertState) -> Self { value.clone() } @@ -15572,7 +15798,7 @@ impl ::std::fmt::Display for CodeScanningAlertCreatedAlertState { } } } -impl std::str::FromStr for CodeScanningAlertCreatedAlertState { +impl ::std::str::FromStr for CodeScanningAlertCreatedAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15582,13 +15808,13 @@ impl std::str::FromStr for CodeScanningAlertCreatedAlertState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertState { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15596,7 +15822,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertCreatedA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertState { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15648,7 +15874,9 @@ pub struct CodeScanningAlertCreatedAlertTool { #[doc = "The version of the tool used to detect the alert."] pub version: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertCreatedAlertTool> for CodeScanningAlertCreatedAlertTool { +impl ::std::convert::From<&CodeScanningAlertCreatedAlertTool> + for CodeScanningAlertCreatedAlertTool +{ fn from(value: &CodeScanningAlertCreatedAlertTool) -> Self { value.clone() } @@ -15692,37 +15920,37 @@ pub enum CodeScanningAlertEvent { Reopened(CodeScanningAlertReopened), ReopenedByUser(CodeScanningAlertReopenedByUser), } -impl From<&CodeScanningAlertEvent> for CodeScanningAlertEvent { +impl ::std::convert::From<&CodeScanningAlertEvent> for CodeScanningAlertEvent { fn from(value: &CodeScanningAlertEvent) -> Self { value.clone() } } -impl From for CodeScanningAlertEvent { +impl ::std::convert::From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertAppearedInBranch) -> Self { Self::AppearedInBranch(value) } } -impl From for CodeScanningAlertEvent { +impl ::std::convert::From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertClosedByUser) -> Self { Self::ClosedByUser(value) } } -impl From for CodeScanningAlertEvent { +impl ::std::convert::From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertCreated) -> Self { Self::Created(value) } } -impl From for CodeScanningAlertEvent { +impl ::std::convert::From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertFixed) -> Self { Self::Fixed(value) } } -impl From for CodeScanningAlertEvent { +impl ::std::convert::From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertReopened) -> Self { Self::Reopened(value) } } -impl From for CodeScanningAlertEvent { +impl ::std::convert::From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertReopenedByUser) -> Self { Self::ReopenedByUser(value) } @@ -15973,7 +16201,7 @@ pub struct CodeScanningAlertFixed { pub repository: Repository, pub sender: GithubOrg, } -impl From<&CodeScanningAlertFixed> for CodeScanningAlertFixed { +impl ::std::convert::From<&CodeScanningAlertFixed> for CodeScanningAlertFixed { fn from(value: &CodeScanningAlertFixed) -> Self { value.clone() } @@ -16007,7 +16235,7 @@ pub enum CodeScanningAlertFixedAction { #[serde(rename = "fixed")] Fixed, } -impl From<&CodeScanningAlertFixedAction> for CodeScanningAlertFixedAction { +impl ::std::convert::From<&CodeScanningAlertFixedAction> for CodeScanningAlertFixedAction { fn from(value: &CodeScanningAlertFixedAction) -> Self { value.clone() } @@ -16019,7 +16247,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAction { } } } -impl std::str::FromStr for CodeScanningAlertFixedAction { +impl ::std::str::FromStr for CodeScanningAlertFixedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -16028,13 +16256,13 @@ impl std::str::FromStr for CodeScanningAlertFixedAction { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAction { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16042,7 +16270,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAct value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAction { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16262,7 +16490,7 @@ pub struct CodeScanningAlertFixedAlert { pub tool: CodeScanningAlertFixedAlertTool, pub url: ::std::string::String, } -impl From<&CodeScanningAlertFixedAlert> for CodeScanningAlertFixedAlert { +impl ::std::convert::From<&CodeScanningAlertFixedAlert> for CodeScanningAlertFixedAlert { fn from(value: &CodeScanningAlertFixedAlert) -> Self { value.clone() } @@ -16303,7 +16531,7 @@ pub enum CodeScanningAlertFixedAlertDismissedReason { #[serde(rename = "used in tests")] UsedInTests, } -impl From<&CodeScanningAlertFixedAlertDismissedReason> +impl ::std::convert::From<&CodeScanningAlertFixedAlertDismissedReason> for CodeScanningAlertFixedAlertDismissedReason { fn from(value: &CodeScanningAlertFixedAlertDismissedReason) -> Self { @@ -16319,7 +16547,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertDismissedReason { } } } -impl std::str::FromStr for CodeScanningAlertFixedAlertDismissedReason { +impl ::std::str::FromStr for CodeScanningAlertFixedAlertDismissedReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -16330,13 +16558,15 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertDismissedReason { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertDismissedReason { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertDismissedReason { +impl ::std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertFixedAlertDismissedReason +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16344,7 +16574,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAle value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertDismissedReason { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16401,7 +16631,9 @@ pub struct CodeScanningAlertFixedAlertInstancesItem { pub ref_: ::std::string::String, pub state: CodeScanningAlertFixedAlertInstancesItemState, } -impl From<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem { +impl ::std::convert::From<&CodeScanningAlertFixedAlertInstancesItem> + for CodeScanningAlertFixedAlertInstancesItem +{ fn from(value: &CodeScanningAlertFixedAlertInstancesItem) -> Self { value.clone() } @@ -16448,13 +16680,24 @@ pub struct CodeScanningAlertFixedAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } -impl From<&CodeScanningAlertFixedAlertInstancesItemLocation> +impl ::std::convert::From<&CodeScanningAlertFixedAlertInstancesItemLocation> for CodeScanningAlertFixedAlertInstancesItemLocation { fn from(value: &CodeScanningAlertFixedAlertInstancesItemLocation) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertFixedAlertInstancesItemLocation { + fn default() -> Self { + Self { + end_column: Default::default(), + end_line: Default::default(), + path: Default::default(), + start_column: Default::default(), + start_line: Default::default(), + } + } +} #[doc = "CodeScanningAlertFixedAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] @@ -16477,13 +16720,20 @@ pub struct CodeScanningAlertFixedAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertFixedAlertInstancesItemMessage> +impl ::std::convert::From<&CodeScanningAlertFixedAlertInstancesItemMessage> for CodeScanningAlertFixedAlertInstancesItemMessage { fn from(value: &CodeScanningAlertFixedAlertInstancesItemMessage) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertFixedAlertInstancesItemMessage { + fn default() -> Self { + Self { + text: Default::default(), + } + } +} #[doc = "CodeScanningAlertFixedAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -16513,7 +16763,7 @@ pub enum CodeScanningAlertFixedAlertInstancesItemState { #[serde(rename = "fixed")] Fixed, } -impl From<&CodeScanningAlertFixedAlertInstancesItemState> +impl ::std::convert::From<&CodeScanningAlertFixedAlertInstancesItemState> for CodeScanningAlertFixedAlertInstancesItemState { fn from(value: &CodeScanningAlertFixedAlertInstancesItemState) -> Self { @@ -16527,7 +16777,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertInstancesItemState { } } } -impl std::str::FromStr for CodeScanningAlertFixedAlertInstancesItemState { +impl ::std::str::FromStr for CodeScanningAlertFixedAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -16536,13 +16786,13 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertInstancesItemState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertInstancesItemState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; @@ -16552,7 +16802,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; @@ -16632,7 +16882,7 @@ pub struct CodeScanningAlertFixedAlertRule { #[serde(default)] pub tags: (), } -impl From<&CodeScanningAlertFixedAlertRule> for CodeScanningAlertFixedAlertRule { +impl ::std::convert::From<&CodeScanningAlertFixedAlertRule> for CodeScanningAlertFixedAlertRule { fn from(value: &CodeScanningAlertFixedAlertRule) -> Self { value.clone() } @@ -16676,7 +16926,9 @@ pub enum CodeScanningAlertFixedAlertRuleSeverity { #[serde(rename = "error")] Error, } -impl From<&CodeScanningAlertFixedAlertRuleSeverity> for CodeScanningAlertFixedAlertRuleSeverity { +impl ::std::convert::From<&CodeScanningAlertFixedAlertRuleSeverity> + for CodeScanningAlertFixedAlertRuleSeverity +{ fn from(value: &CodeScanningAlertFixedAlertRuleSeverity) -> Self { value.clone() } @@ -16691,7 +16943,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertRuleSeverity { } } } -impl std::str::FromStr for CodeScanningAlertFixedAlertRuleSeverity { +impl ::std::str::FromStr for CodeScanningAlertFixedAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -16703,13 +16955,13 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertRuleSeverity { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertRuleSeverity { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertRuleSeverity { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16717,7 +16969,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAle value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertRuleSeverity { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16755,7 +17007,7 @@ pub enum CodeScanningAlertFixedAlertState { #[serde(rename = "fixed")] Fixed, } -impl From<&CodeScanningAlertFixedAlertState> for CodeScanningAlertFixedAlertState { +impl ::std::convert::From<&CodeScanningAlertFixedAlertState> for CodeScanningAlertFixedAlertState { fn from(value: &CodeScanningAlertFixedAlertState) -> Self { value.clone() } @@ -16767,7 +17019,7 @@ impl ::std::fmt::Display for CodeScanningAlertFixedAlertState { } } } -impl std::str::FromStr for CodeScanningAlertFixedAlertState { +impl ::std::str::FromStr for CodeScanningAlertFixedAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -16776,13 +17028,13 @@ impl std::str::FromStr for CodeScanningAlertFixedAlertState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertState { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16790,7 +17042,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertFixedAle value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertState { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16842,7 +17094,7 @@ pub struct CodeScanningAlertFixedAlertTool { #[doc = "The version of the tool used to detect the alert."] pub version: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertFixedAlertTool> for CodeScanningAlertFixedAlertTool { +impl ::std::convert::From<&CodeScanningAlertFixedAlertTool> for CodeScanningAlertFixedAlertTool { fn from(value: &CodeScanningAlertFixedAlertTool) -> Self { value.clone() } @@ -17071,7 +17323,7 @@ pub struct CodeScanningAlertReopened { pub repository: Repository, pub sender: GithubOrg, } -impl From<&CodeScanningAlertReopened> for CodeScanningAlertReopened { +impl ::std::convert::From<&CodeScanningAlertReopened> for CodeScanningAlertReopened { fn from(value: &CodeScanningAlertReopened) -> Self { value.clone() } @@ -17105,7 +17357,7 @@ pub enum CodeScanningAlertReopenedAction { #[serde(rename = "reopened")] Reopened, } -impl From<&CodeScanningAlertReopenedAction> for CodeScanningAlertReopenedAction { +impl ::std::convert::From<&CodeScanningAlertReopenedAction> for CodeScanningAlertReopenedAction { fn from(value: &CodeScanningAlertReopenedAction) -> Self { value.clone() } @@ -17117,7 +17369,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAction { } } } -impl std::str::FromStr for CodeScanningAlertReopenedAction { +impl ::std::str::FromStr for CodeScanningAlertReopenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -17126,13 +17378,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedAction { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAction { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17140,7 +17392,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopened value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAction { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17336,7 +17588,7 @@ pub struct CodeScanningAlertReopenedAlert { pub tool: CodeScanningAlertReopenedAlertTool, pub url: ::std::string::String, } -impl From<&CodeScanningAlertReopenedAlert> for CodeScanningAlertReopenedAlert { +impl ::std::convert::From<&CodeScanningAlertReopenedAlert> for CodeScanningAlertReopenedAlert { fn from(value: &CodeScanningAlertReopenedAlert) -> Self { value.clone() } @@ -17390,7 +17642,7 @@ pub struct CodeScanningAlertReopenedAlertInstancesItem { pub ref_: ::std::string::String, pub state: CodeScanningAlertReopenedAlertInstancesItemState, } -impl From<&CodeScanningAlertReopenedAlertInstancesItem> +impl ::std::convert::From<&CodeScanningAlertReopenedAlertInstancesItem> for CodeScanningAlertReopenedAlertInstancesItem { fn from(value: &CodeScanningAlertReopenedAlertInstancesItem) -> Self { @@ -17439,13 +17691,24 @@ pub struct CodeScanningAlertReopenedAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } -impl From<&CodeScanningAlertReopenedAlertInstancesItemLocation> +impl ::std::convert::From<&CodeScanningAlertReopenedAlertInstancesItemLocation> for CodeScanningAlertReopenedAlertInstancesItemLocation { fn from(value: &CodeScanningAlertReopenedAlertInstancesItemLocation) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertReopenedAlertInstancesItemLocation { + fn default() -> Self { + Self { + end_column: Default::default(), + end_line: Default::default(), + path: Default::default(), + start_column: Default::default(), + start_line: Default::default(), + } + } +} #[doc = "CodeScanningAlertReopenedAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] @@ -17468,13 +17731,20 @@ pub struct CodeScanningAlertReopenedAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertReopenedAlertInstancesItemMessage> +impl ::std::convert::From<&CodeScanningAlertReopenedAlertInstancesItemMessage> for CodeScanningAlertReopenedAlertInstancesItemMessage { fn from(value: &CodeScanningAlertReopenedAlertInstancesItemMessage) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertReopenedAlertInstancesItemMessage { + fn default() -> Self { + Self { + text: Default::default(), + } + } +} #[doc = "CodeScanningAlertReopenedAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -17504,7 +17774,7 @@ pub enum CodeScanningAlertReopenedAlertInstancesItemState { #[serde(rename = "open")] Open, } -impl From<&CodeScanningAlertReopenedAlertInstancesItemState> +impl ::std::convert::From<&CodeScanningAlertReopenedAlertInstancesItemState> for CodeScanningAlertReopenedAlertInstancesItemState { fn from(value: &CodeScanningAlertReopenedAlertInstancesItemState) -> Self { @@ -17518,7 +17788,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAlertInstancesItemState { } } } -impl std::str::FromStr for CodeScanningAlertReopenedAlertInstancesItemState { +impl ::std::str::FromStr for CodeScanningAlertReopenedAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -17527,13 +17797,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedAlertInstancesItemState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertInstancesItemState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; @@ -17543,7 +17813,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; @@ -17623,7 +17893,9 @@ pub struct CodeScanningAlertReopenedAlertRule { #[serde(default)] pub tags: (), } -impl From<&CodeScanningAlertReopenedAlertRule> for CodeScanningAlertReopenedAlertRule { +impl ::std::convert::From<&CodeScanningAlertReopenedAlertRule> + for CodeScanningAlertReopenedAlertRule +{ fn from(value: &CodeScanningAlertReopenedAlertRule) -> Self { value.clone() } @@ -17667,7 +17939,7 @@ pub enum CodeScanningAlertReopenedAlertRuleSeverity { #[serde(rename = "error")] Error, } -impl From<&CodeScanningAlertReopenedAlertRuleSeverity> +impl ::std::convert::From<&CodeScanningAlertReopenedAlertRuleSeverity> for CodeScanningAlertReopenedAlertRuleSeverity { fn from(value: &CodeScanningAlertReopenedAlertRuleSeverity) -> Self { @@ -17684,7 +17956,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAlertRuleSeverity { } } } -impl std::str::FromStr for CodeScanningAlertReopenedAlertRuleSeverity { +impl ::std::str::FromStr for CodeScanningAlertReopenedAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -17696,13 +17968,15 @@ impl std::str::FromStr for CodeScanningAlertReopenedAlertRuleSeverity { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertRuleSeverity { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAlertRuleSeverity { +impl ::std::convert::TryFrom<&::std::string::String> + for CodeScanningAlertReopenedAlertRuleSeverity +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17710,7 +17984,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopened value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertRuleSeverity { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17754,7 +18028,9 @@ pub enum CodeScanningAlertReopenedAlertState { #[serde(rename = "fixed")] Fixed, } -impl From<&CodeScanningAlertReopenedAlertState> for CodeScanningAlertReopenedAlertState { +impl ::std::convert::From<&CodeScanningAlertReopenedAlertState> + for CodeScanningAlertReopenedAlertState +{ fn from(value: &CodeScanningAlertReopenedAlertState) -> Self { value.clone() } @@ -17768,7 +18044,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedAlertState { } } } -impl std::str::FromStr for CodeScanningAlertReopenedAlertState { +impl ::std::str::FromStr for CodeScanningAlertReopenedAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -17779,13 +18055,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedAlertState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAlertState { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -17793,7 +18069,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopened value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertState { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -17845,7 +18121,9 @@ pub struct CodeScanningAlertReopenedAlertTool { #[doc = "The version of the tool used to detect the alert."] pub version: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertReopenedAlertTool> for CodeScanningAlertReopenedAlertTool { +impl ::std::convert::From<&CodeScanningAlertReopenedAlertTool> + for CodeScanningAlertReopenedAlertTool +{ fn from(value: &CodeScanningAlertReopenedAlertTool) -> Self { value.clone() } @@ -18054,7 +18332,7 @@ pub struct CodeScanningAlertReopenedByUser { pub repository: Repository, pub sender: User, } -impl From<&CodeScanningAlertReopenedByUser> for CodeScanningAlertReopenedByUser { +impl ::std::convert::From<&CodeScanningAlertReopenedByUser> for CodeScanningAlertReopenedByUser { fn from(value: &CodeScanningAlertReopenedByUser) -> Self { value.clone() } @@ -18088,7 +18366,9 @@ pub enum CodeScanningAlertReopenedByUserAction { #[serde(rename = "reopened_by_user")] ReopenedByUser, } -impl From<&CodeScanningAlertReopenedByUserAction> for CodeScanningAlertReopenedByUserAction { +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAction> + for CodeScanningAlertReopenedByUserAction +{ fn from(value: &CodeScanningAlertReopenedByUserAction) -> Self { value.clone() } @@ -18100,7 +18380,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAction { } } } -impl std::str::FromStr for CodeScanningAlertReopenedByUserAction { +impl ::std::str::FromStr for CodeScanningAlertReopenedByUserAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -18109,13 +18389,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAction { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAction { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAction { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18123,7 +18403,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopened value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAction { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18299,7 +18579,9 @@ pub struct CodeScanningAlertReopenedByUserAlert { pub tool: CodeScanningAlertReopenedByUserAlertTool, pub url: ::std::string::String, } -impl From<&CodeScanningAlertReopenedByUserAlert> for CodeScanningAlertReopenedByUserAlert { +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlert> + for CodeScanningAlertReopenedByUserAlert +{ fn from(value: &CodeScanningAlertReopenedByUserAlert) -> Self { value.clone() } @@ -18353,7 +18635,7 @@ pub struct CodeScanningAlertReopenedByUserAlertInstancesItem { pub ref_: ::std::string::String, pub state: CodeScanningAlertReopenedByUserAlertInstancesItemState, } -impl From<&CodeScanningAlertReopenedByUserAlertInstancesItem> +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertInstancesItem> for CodeScanningAlertReopenedByUserAlertInstancesItem { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItem) -> Self { @@ -18402,13 +18684,24 @@ pub struct CodeScanningAlertReopenedByUserAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } -impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> for CodeScanningAlertReopenedByUserAlertInstancesItemLocation { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItemLocation) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertReopenedByUserAlertInstancesItemLocation { + fn default() -> Self { + Self { + end_column: Default::default(), + end_line: Default::default(), + path: Default::default(), + start_column: Default::default(), + start_line: Default::default(), + } + } +} #[doc = "CodeScanningAlertReopenedByUserAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] @@ -18431,13 +18724,20 @@ pub struct CodeScanningAlertReopenedByUserAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemMessage> +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertInstancesItemMessage> for CodeScanningAlertReopenedByUserAlertInstancesItemMessage { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItemMessage) -> Self { value.clone() } } +impl ::std::default::Default for CodeScanningAlertReopenedByUserAlertInstancesItemMessage { + fn default() -> Self { + Self { + text: Default::default(), + } + } +} #[doc = "CodeScanningAlertReopenedByUserAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -18467,7 +18767,7 @@ pub enum CodeScanningAlertReopenedByUserAlertInstancesItemState { #[serde(rename = "open")] Open, } -impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemState> +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertInstancesItemState> for CodeScanningAlertReopenedByUserAlertInstancesItemState { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItemState) -> Self { @@ -18481,7 +18781,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertInstancesItemSt } } } -impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertInstancesItemState { +impl ::std::str::FromStr for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -18490,13 +18790,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertInstancesItemStat } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertInstancesItemState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; @@ -18506,7 +18806,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; @@ -18566,7 +18866,9 @@ pub struct CodeScanningAlertReopenedByUserAlertRule { #[doc = "The severity of the alert."] pub severity: ::std::option::Option, } -impl From<&CodeScanningAlertReopenedByUserAlertRule> for CodeScanningAlertReopenedByUserAlertRule { +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertRule> + for CodeScanningAlertReopenedByUserAlertRule +{ fn from(value: &CodeScanningAlertReopenedByUserAlertRule) -> Self { value.clone() } @@ -18610,7 +18912,7 @@ pub enum CodeScanningAlertReopenedByUserAlertRuleSeverity { #[serde(rename = "error")] Error, } -impl From<&CodeScanningAlertReopenedByUserAlertRuleSeverity> +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertRuleSeverity> for CodeScanningAlertReopenedByUserAlertRuleSeverity { fn from(value: &CodeScanningAlertReopenedByUserAlertRuleSeverity) -> Self { @@ -18627,7 +18929,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertRuleSeverity { } } } -impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertRuleSeverity { +impl ::std::str::FromStr for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -18639,13 +18941,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertRuleSeverity { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertRuleSeverity { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; @@ -18655,7 +18957,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; @@ -18695,7 +18997,7 @@ pub enum CodeScanningAlertReopenedByUserAlertState { #[serde(rename = "open")] Open, } -impl From<&CodeScanningAlertReopenedByUserAlertState> +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertState> for CodeScanningAlertReopenedByUserAlertState { fn from(value: &CodeScanningAlertReopenedByUserAlertState) -> Self { @@ -18709,7 +19011,7 @@ impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertState { } } } -impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertState { +impl ::std::str::FromStr for CodeScanningAlertReopenedByUserAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -18718,13 +19020,13 @@ impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertState { } } } -impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertState { +impl ::std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAlertState { +impl ::std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18732,7 +19034,7 @@ impl std::convert::TryFrom<&::std::string::String> for CodeScanningAlertReopened value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAlertState { +impl ::std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18776,7 +19078,9 @@ pub struct CodeScanningAlertReopenedByUserAlertTool { #[doc = "The version of the tool used to detect the alert."] pub version: ::std::option::Option<::std::string::String>, } -impl From<&CodeScanningAlertReopenedByUserAlertTool> for CodeScanningAlertReopenedByUserAlertTool { +impl ::std::convert::From<&CodeScanningAlertReopenedByUserAlertTool> + for CodeScanningAlertReopenedByUserAlertTool +{ fn from(value: &CodeScanningAlertReopenedByUserAlertTool) -> Self { value.clone() } @@ -18881,7 +19185,7 @@ pub struct Commit { #[doc = "URL that points to the commit API resource."] pub url: ::std::string::String, } -impl From<&Commit> for Commit { +impl ::std::convert::From<&Commit> for Commit { fn from(value: &Commit) -> Self { value.clone() } @@ -19019,7 +19323,7 @@ pub struct CommitCommentCreated { pub repository: Repository, pub sender: User, } -impl From<&CommitCommentCreated> for CommitCommentCreated { +impl ::std::convert::From<&CommitCommentCreated> for CommitCommentCreated { fn from(value: &CommitCommentCreated) -> Self { value.clone() } @@ -19054,7 +19358,7 @@ pub enum CommitCommentCreatedAction { #[serde(rename = "created")] Created, } -impl From<&CommitCommentCreatedAction> for CommitCommentCreatedAction { +impl ::std::convert::From<&CommitCommentCreatedAction> for CommitCommentCreatedAction { fn from(value: &CommitCommentCreatedAction) -> Self { value.clone() } @@ -19066,7 +19370,7 @@ impl ::std::fmt::Display for CommitCommentCreatedAction { } } } -impl std::str::FromStr for CommitCommentCreatedAction { +impl ::std::str::FromStr for CommitCommentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -19075,13 +19379,13 @@ impl std::str::FromStr for CommitCommentCreatedAction { } } } -impl std::convert::TryFrom<&str> for CommitCommentCreatedAction { +impl ::std::convert::TryFrom<&str> for CommitCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CommitCommentCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for CommitCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19089,7 +19393,7 @@ impl std::convert::TryFrom<&::std::string::String> for CommitCommentCreatedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CommitCommentCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for CommitCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19207,7 +19511,7 @@ pub struct CommitCommentCreatedComment { pub url: ::std::string::String, pub user: User, } -impl From<&CommitCommentCreatedComment> for CommitCommentCreatedComment { +impl ::std::convert::From<&CommitCommentCreatedComment> for CommitCommentCreatedComment { fn from(value: &CommitCommentCreatedComment) -> Self { value.clone() } @@ -19234,17 +19538,17 @@ impl ::std::ops::Deref for CommitCommentEvent { &self.0 } } -impl From for CommitCommentCreated { +impl ::std::convert::From for CommitCommentCreated { fn from(value: CommitCommentEvent) -> Self { value.0 } } -impl From<&CommitCommentEvent> for CommitCommentEvent { +impl ::std::convert::From<&CommitCommentEvent> for CommitCommentEvent { fn from(value: &CommitCommentEvent) -> Self { value.clone() } } -impl From for CommitCommentEvent { +impl ::std::convert::From for CommitCommentEvent { fn from(value: CommitCommentCreated) -> Self { Self(value) } @@ -19300,7 +19604,7 @@ pub struct CommitSimple { pub timestamp: ::std::string::String, pub tree_id: ::std::string::String, } -impl From<&CommitSimple> for CommitSimple { +impl ::std::convert::From<&CommitSimple> for CommitSimple { fn from(value: &CommitSimple) -> Self { value.clone() } @@ -19360,7 +19664,7 @@ pub struct Committer { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub username: ::std::option::Option<::std::string::String>, } -impl From<&Committer> for Committer { +impl ::std::convert::From<&Committer> for Committer { fn from(value: &Committer) -> Self { value.clone() } @@ -19437,7 +19741,7 @@ pub struct ContentReferenceCreated { pub repository: Repository, pub sender: User, } -impl From<&ContentReferenceCreated> for ContentReferenceCreated { +impl ::std::convert::From<&ContentReferenceCreated> for ContentReferenceCreated { fn from(value: &ContentReferenceCreated) -> Self { value.clone() } @@ -19471,7 +19775,7 @@ pub enum ContentReferenceCreatedAction { #[serde(rename = "created")] Created, } -impl From<&ContentReferenceCreatedAction> for ContentReferenceCreatedAction { +impl ::std::convert::From<&ContentReferenceCreatedAction> for ContentReferenceCreatedAction { fn from(value: &ContentReferenceCreatedAction) -> Self { value.clone() } @@ -19483,7 +19787,7 @@ impl ::std::fmt::Display for ContentReferenceCreatedAction { } } } -impl std::str::FromStr for ContentReferenceCreatedAction { +impl ::std::str::FromStr for ContentReferenceCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -19492,13 +19796,13 @@ impl std::str::FromStr for ContentReferenceCreatedAction { } } } -impl std::convert::TryFrom<&str> for ContentReferenceCreatedAction { +impl ::std::convert::TryFrom<&str> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ContentReferenceCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19506,7 +19810,7 @@ impl std::convert::TryFrom<&::std::string::String> for ContentReferenceCreatedAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ContentReferenceCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19549,7 +19853,9 @@ pub struct ContentReferenceCreatedContentReference { pub node_id: ::std::string::String, pub reference: ::std::string::String, } -impl From<&ContentReferenceCreatedContentReference> for ContentReferenceCreatedContentReference { +impl ::std::convert::From<&ContentReferenceCreatedContentReference> + for ContentReferenceCreatedContentReference +{ fn from(value: &ContentReferenceCreatedContentReference) -> Self { value.clone() } @@ -19576,17 +19882,17 @@ impl ::std::ops::Deref for ContentReferenceEvent { &self.0 } } -impl From for ContentReferenceCreated { +impl ::std::convert::From for ContentReferenceCreated { fn from(value: ContentReferenceEvent) -> Self { value.0 } } -impl From<&ContentReferenceEvent> for ContentReferenceEvent { +impl ::std::convert::From<&ContentReferenceEvent> for ContentReferenceEvent { fn from(value: &ContentReferenceEvent) -> Self { value.clone() } } -impl From for ContentReferenceEvent { +impl ::std::convert::From for ContentReferenceEvent { fn from(value: ContentReferenceCreated) -> Self { Self(value) } @@ -19676,7 +19982,7 @@ pub struct CreateEvent { pub repository: Repository, pub sender: User, } -impl From<&CreateEvent> for CreateEvent { +impl ::std::convert::From<&CreateEvent> for CreateEvent { fn from(value: &CreateEvent) -> Self { value.clone() } @@ -19714,7 +20020,7 @@ pub enum CreateEventRefType { #[serde(rename = "branch")] Branch, } -impl From<&CreateEventRefType> for CreateEventRefType { +impl ::std::convert::From<&CreateEventRefType> for CreateEventRefType { fn from(value: &CreateEventRefType) -> Self { value.clone() } @@ -19727,7 +20033,7 @@ impl ::std::fmt::Display for CreateEventRefType { } } } -impl std::str::FromStr for CreateEventRefType { +impl ::std::str::FromStr for CreateEventRefType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -19737,13 +20043,13 @@ impl std::str::FromStr for CreateEventRefType { } } } -impl std::convert::TryFrom<&str> for CreateEventRefType { +impl ::std::convert::TryFrom<&str> for CreateEventRefType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CreateEventRefType { +impl ::std::convert::TryFrom<&::std::string::String> for CreateEventRefType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19751,7 +20057,7 @@ impl std::convert::TryFrom<&::std::string::String> for CreateEventRefType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CreateEventRefType { +impl ::std::convert::TryFrom<::std::string::String> for CreateEventRefType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19827,7 +20133,7 @@ pub struct DeleteEvent { pub repository: Repository, pub sender: User, } -impl From<&DeleteEvent> for DeleteEvent { +impl ::std::convert::From<&DeleteEvent> for DeleteEvent { fn from(value: &DeleteEvent) -> Self { value.clone() } @@ -19865,7 +20171,7 @@ pub enum DeleteEventRefType { #[serde(rename = "branch")] Branch, } -impl From<&DeleteEventRefType> for DeleteEventRefType { +impl ::std::convert::From<&DeleteEventRefType> for DeleteEventRefType { fn from(value: &DeleteEventRefType) -> Self { value.clone() } @@ -19878,7 +20184,7 @@ impl ::std::fmt::Display for DeleteEventRefType { } } } -impl std::str::FromStr for DeleteEventRefType { +impl ::std::str::FromStr for DeleteEventRefType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -19888,13 +20194,13 @@ impl std::str::FromStr for DeleteEventRefType { } } } -impl std::convert::TryFrom<&str> for DeleteEventRefType { +impl ::std::convert::TryFrom<&str> for DeleteEventRefType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DeleteEventRefType { +impl ::std::convert::TryFrom<&::std::string::String> for DeleteEventRefType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19902,7 +20208,7 @@ impl std::convert::TryFrom<&::std::string::String> for DeleteEventRefType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DeleteEventRefType { +impl ::std::convert::TryFrom<::std::string::String> for DeleteEventRefType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19999,7 +20305,7 @@ pub struct DeployKeyCreated { pub repository: Repository, pub sender: User, } -impl From<&DeployKeyCreated> for DeployKeyCreated { +impl ::std::convert::From<&DeployKeyCreated> for DeployKeyCreated { fn from(value: &DeployKeyCreated) -> Self { value.clone() } @@ -20033,7 +20339,7 @@ pub enum DeployKeyCreatedAction { #[serde(rename = "created")] Created, } -impl From<&DeployKeyCreatedAction> for DeployKeyCreatedAction { +impl ::std::convert::From<&DeployKeyCreatedAction> for DeployKeyCreatedAction { fn from(value: &DeployKeyCreatedAction) -> Self { value.clone() } @@ -20045,7 +20351,7 @@ impl ::std::fmt::Display for DeployKeyCreatedAction { } } } -impl std::str::FromStr for DeployKeyCreatedAction { +impl ::std::str::FromStr for DeployKeyCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20054,13 +20360,13 @@ impl std::str::FromStr for DeployKeyCreatedAction { } } } -impl std::convert::TryFrom<&str> for DeployKeyCreatedAction { +impl ::std::convert::TryFrom<&str> for DeployKeyCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DeployKeyCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DeployKeyCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20068,7 +20374,7 @@ impl std::convert::TryFrom<&::std::string::String> for DeployKeyCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DeployKeyCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for DeployKeyCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20132,7 +20438,7 @@ pub struct DeployKeyCreatedKey { pub url: ::std::string::String, pub verified: bool, } -impl From<&DeployKeyCreatedKey> for DeployKeyCreatedKey { +impl ::std::convert::From<&DeployKeyCreatedKey> for DeployKeyCreatedKey { fn from(value: &DeployKeyCreatedKey) -> Self { value.clone() } @@ -20226,7 +20532,7 @@ pub struct DeployKeyDeleted { pub repository: Repository, pub sender: User, } -impl From<&DeployKeyDeleted> for DeployKeyDeleted { +impl ::std::convert::From<&DeployKeyDeleted> for DeployKeyDeleted { fn from(value: &DeployKeyDeleted) -> Self { value.clone() } @@ -20260,7 +20566,7 @@ pub enum DeployKeyDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&DeployKeyDeletedAction> for DeployKeyDeletedAction { +impl ::std::convert::From<&DeployKeyDeletedAction> for DeployKeyDeletedAction { fn from(value: &DeployKeyDeletedAction) -> Self { value.clone() } @@ -20272,7 +20578,7 @@ impl ::std::fmt::Display for DeployKeyDeletedAction { } } } -impl std::str::FromStr for DeployKeyDeletedAction { +impl ::std::str::FromStr for DeployKeyDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20281,13 +20587,13 @@ impl std::str::FromStr for DeployKeyDeletedAction { } } } -impl std::convert::TryFrom<&str> for DeployKeyDeletedAction { +impl ::std::convert::TryFrom<&str> for DeployKeyDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DeployKeyDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DeployKeyDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20295,7 +20601,7 @@ impl std::convert::TryFrom<&::std::string::String> for DeployKeyDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DeployKeyDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for DeployKeyDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20359,7 +20665,7 @@ pub struct DeployKeyDeletedKey { pub url: ::std::string::String, pub verified: bool, } -impl From<&DeployKeyDeletedKey> for DeployKeyDeletedKey { +impl ::std::convert::From<&DeployKeyDeletedKey> for DeployKeyDeletedKey { fn from(value: &DeployKeyDeletedKey) -> Self { value.clone() } @@ -20387,17 +20693,17 @@ pub enum DeployKeyEvent { Created(DeployKeyCreated), Deleted(DeployKeyDeleted), } -impl From<&DeployKeyEvent> for DeployKeyEvent { +impl ::std::convert::From<&DeployKeyEvent> for DeployKeyEvent { fn from(value: &DeployKeyEvent) -> Self { value.clone() } } -impl From for DeployKeyEvent { +impl ::std::convert::From for DeployKeyEvent { fn from(value: DeployKeyCreated) -> Self { Self::Created(value) } } -impl From for DeployKeyEvent { +impl ::std::convert::From for DeployKeyEvent { fn from(value: DeployKeyDeleted) -> Self { Self::Deleted(value) } @@ -20546,7 +20852,7 @@ pub struct DeploymentCreated { pub workflow: (), pub workflow_run: (), } -impl From<&DeploymentCreated> for DeploymentCreated { +impl ::std::convert::From<&DeploymentCreated> for DeploymentCreated { fn from(value: &DeploymentCreated) -> Self { value.clone() } @@ -20580,7 +20886,7 @@ pub enum DeploymentCreatedAction { #[serde(rename = "created")] Created, } -impl From<&DeploymentCreatedAction> for DeploymentCreatedAction { +impl ::std::convert::From<&DeploymentCreatedAction> for DeploymentCreatedAction { fn from(value: &DeploymentCreatedAction) -> Self { value.clone() } @@ -20592,7 +20898,7 @@ impl ::std::fmt::Display for DeploymentCreatedAction { } } } -impl std::str::FromStr for DeploymentCreatedAction { +impl ::std::str::FromStr for DeploymentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20601,13 +20907,13 @@ impl std::str::FromStr for DeploymentCreatedAction { } } } -impl std::convert::TryFrom<&str> for DeploymentCreatedAction { +impl ::std::convert::TryFrom<&str> for DeploymentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DeploymentCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DeploymentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20615,7 +20921,7 @@ impl std::convert::TryFrom<&::std::string::String> for DeploymentCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DeploymentCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for DeploymentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20735,7 +21041,7 @@ pub struct DeploymentCreatedDeployment { pub updated_at: ::std::string::String, pub url: ::std::string::String, } -impl From<&DeploymentCreatedDeployment> for DeploymentCreatedDeployment { +impl ::std::convert::From<&DeploymentCreatedDeployment> for DeploymentCreatedDeployment { fn from(value: &DeploymentCreatedDeployment) -> Self { value.clone() } @@ -20754,11 +21060,18 @@ impl From<&DeploymentCreatedDeployment> for DeploymentCreatedDeployment { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentCreatedDeploymentPayload {} -impl From<&DeploymentCreatedDeploymentPayload> for DeploymentCreatedDeploymentPayload { +impl ::std::convert::From<&DeploymentCreatedDeploymentPayload> + for DeploymentCreatedDeploymentPayload +{ fn from(value: &DeploymentCreatedDeploymentPayload) -> Self { value.clone() } } +impl ::std::default::Default for DeploymentCreatedDeploymentPayload { + fn default() -> Self { + Self {} + } +} #[doc = "DeploymentEvent"] #[doc = r""] #[doc = r"
JSON schema"] @@ -20781,17 +21094,17 @@ impl ::std::ops::Deref for DeploymentEvent { &self.0 } } -impl From for DeploymentCreated { +impl ::std::convert::From for DeploymentCreated { fn from(value: DeploymentEvent) -> Self { value.0 } } -impl From<&DeploymentEvent> for DeploymentEvent { +impl ::std::convert::From<&DeploymentEvent> for DeploymentEvent { fn from(value: &DeploymentEvent) -> Self { value.clone() } } -impl From for DeploymentEvent { +impl ::std::convert::From for DeploymentEvent { fn from(value: DeploymentCreated) -> Self { Self(value) } @@ -21006,7 +21319,7 @@ pub struct DeploymentStatusCreated { pub repository: Repository, pub sender: User, } -impl From<&DeploymentStatusCreated> for DeploymentStatusCreated { +impl ::std::convert::From<&DeploymentStatusCreated> for DeploymentStatusCreated { fn from(value: &DeploymentStatusCreated) -> Self { value.clone() } @@ -21040,7 +21353,7 @@ pub enum DeploymentStatusCreatedAction { #[serde(rename = "created")] Created, } -impl From<&DeploymentStatusCreatedAction> for DeploymentStatusCreatedAction { +impl ::std::convert::From<&DeploymentStatusCreatedAction> for DeploymentStatusCreatedAction { fn from(value: &DeploymentStatusCreatedAction) -> Self { value.clone() } @@ -21052,7 +21365,7 @@ impl ::std::fmt::Display for DeploymentStatusCreatedAction { } } } -impl std::str::FromStr for DeploymentStatusCreatedAction { +impl ::std::str::FromStr for DeploymentStatusCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -21061,13 +21374,13 @@ impl std::str::FromStr for DeploymentStatusCreatedAction { } } } -impl std::convert::TryFrom<&str> for DeploymentStatusCreatedAction { +impl ::std::convert::TryFrom<&str> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DeploymentStatusCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21075,7 +21388,7 @@ impl std::convert::TryFrom<&::std::string::String> for DeploymentStatusCreatedAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DeploymentStatusCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21195,7 +21508,9 @@ pub struct DeploymentStatusCreatedDeployment { pub updated_at: ::std::string::String, pub url: ::std::string::String, } -impl From<&DeploymentStatusCreatedDeployment> for DeploymentStatusCreatedDeployment { +impl ::std::convert::From<&DeploymentStatusCreatedDeployment> + for DeploymentStatusCreatedDeployment +{ fn from(value: &DeploymentStatusCreatedDeployment) -> Self { value.clone() } @@ -21214,11 +21529,18 @@ impl From<&DeploymentStatusCreatedDeployment> for DeploymentStatusCreatedDeploym #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreatedDeploymentPayload {} -impl From<&DeploymentStatusCreatedDeploymentPayload> for DeploymentStatusCreatedDeploymentPayload { +impl ::std::convert::From<&DeploymentStatusCreatedDeploymentPayload> + for DeploymentStatusCreatedDeploymentPayload +{ fn from(value: &DeploymentStatusCreatedDeploymentPayload) -> Self { value.clone() } } +impl ::std::default::Default for DeploymentStatusCreatedDeploymentPayload { + fn default() -> Self { + Self {} + } +} #[doc = "The [deployment status](https://docs.github.com/en/rest/reference/repos#list-deployment-statuses)."] #[doc = r""] #[doc = r"
JSON schema"] @@ -21320,7 +21642,9 @@ pub struct DeploymentStatusCreatedDeploymentStatus { pub updated_at: ::std::string::String, pub url: ::std::string::String, } -impl From<&DeploymentStatusCreatedDeploymentStatus> for DeploymentStatusCreatedDeploymentStatus { +impl ::std::convert::From<&DeploymentStatusCreatedDeploymentStatus> + for DeploymentStatusCreatedDeploymentStatus +{ fn from(value: &DeploymentStatusCreatedDeploymentStatus) -> Self { value.clone() } @@ -21347,17 +21671,17 @@ impl ::std::ops::Deref for DeploymentStatusEvent { &self.0 } } -impl From for DeploymentStatusCreated { +impl ::std::convert::From for DeploymentStatusCreated { fn from(value: DeploymentStatusEvent) -> Self { value.0 } } -impl From<&DeploymentStatusEvent> for DeploymentStatusEvent { +impl ::std::convert::From<&DeploymentStatusEvent> for DeploymentStatusEvent { fn from(value: &DeploymentStatusEvent) -> Self { value.clone() } } -impl From for DeploymentStatusEvent { +impl ::std::convert::From for DeploymentStatusEvent { fn from(value: DeploymentStatusCreated) -> Self { Self(value) } @@ -21543,7 +21867,7 @@ pub struct Discussion { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&Discussion> for Discussion { +impl ::std::convert::From<&Discussion> for Discussion { fn from(value: &Discussion) -> Self { value.clone() } @@ -21704,7 +22028,7 @@ pub struct DiscussionAnswered { pub repository: Repository, pub sender: User, } -impl From<&DiscussionAnswered> for DiscussionAnswered { +impl ::std::convert::From<&DiscussionAnswered> for DiscussionAnswered { fn from(value: &DiscussionAnswered) -> Self { value.clone() } @@ -21738,7 +22062,7 @@ pub enum DiscussionAnsweredAction { #[serde(rename = "answered")] Answered, } -impl From<&DiscussionAnsweredAction> for DiscussionAnsweredAction { +impl ::std::convert::From<&DiscussionAnsweredAction> for DiscussionAnsweredAction { fn from(value: &DiscussionAnsweredAction) -> Self { value.clone() } @@ -21750,7 +22074,7 @@ impl ::std::fmt::Display for DiscussionAnsweredAction { } } } -impl std::str::FromStr for DiscussionAnsweredAction { +impl ::std::str::FromStr for DiscussionAnsweredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -21759,13 +22083,13 @@ impl std::str::FromStr for DiscussionAnsweredAction { } } } -impl std::convert::TryFrom<&str> for DiscussionAnsweredAction { +impl ::std::convert::TryFrom<&str> for DiscussionAnsweredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -21773,7 +22097,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionAnsweredAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionAnsweredAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21862,7 +22186,7 @@ pub struct DiscussionAnsweredAnswer { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionAnsweredAnswer> for DiscussionAnsweredAnswer { +impl ::std::convert::From<&DiscussionAnsweredAnswer> for DiscussionAnsweredAnswer { fn from(value: &DiscussionAnsweredAnswer) -> Self { value.clone() } @@ -21942,7 +22266,7 @@ pub struct DiscussionAnsweredDiscussion { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionAnsweredDiscussion> for DiscussionAnsweredDiscussion { +impl ::std::convert::From<&DiscussionAnsweredDiscussion> for DiscussionAnsweredDiscussion { fn from(value: &DiscussionAnsweredDiscussion) -> Self { value.clone() } @@ -22099,7 +22423,7 @@ pub struct DiscussionAnsweredDiscussionAnswerChosenBy { pub type_: DiscussionAnsweredDiscussionAnswerChosenByType, pub url: ::std::string::String, } -impl From<&DiscussionAnsweredDiscussionAnswerChosenBy> +impl ::std::convert::From<&DiscussionAnsweredDiscussionAnswerChosenBy> for DiscussionAnsweredDiscussionAnswerChosenBy { fn from(value: &DiscussionAnsweredDiscussionAnswerChosenBy) -> Self { @@ -22138,7 +22462,7 @@ pub enum DiscussionAnsweredDiscussionAnswerChosenByType { User, Organization, } -impl From<&DiscussionAnsweredDiscussionAnswerChosenByType> +impl ::std::convert::From<&DiscussionAnsweredDiscussionAnswerChosenByType> for DiscussionAnsweredDiscussionAnswerChosenByType { fn from(value: &DiscussionAnsweredDiscussionAnswerChosenByType) -> Self { @@ -22154,7 +22478,7 @@ impl ::std::fmt::Display for DiscussionAnsweredDiscussionAnswerChosenByType { } } } -impl std::str::FromStr for DiscussionAnsweredDiscussionAnswerChosenByType { +impl ::std::str::FromStr for DiscussionAnsweredDiscussionAnswerChosenByType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22165,13 +22489,13 @@ impl std::str::FromStr for DiscussionAnsweredDiscussionAnswerChosenByType { } } } -impl std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionAnswerChosenByType { +impl ::std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; @@ -22181,7 +22505,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; @@ -22259,7 +22583,9 @@ pub struct DiscussionAnsweredDiscussionCategory { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionAnsweredDiscussionCategory> for DiscussionAnsweredDiscussionCategory { +impl ::std::convert::From<&DiscussionAnsweredDiscussionCategory> + for DiscussionAnsweredDiscussionCategory +{ fn from(value: &DiscussionAnsweredDiscussionCategory) -> Self { value.clone() } @@ -22299,7 +22625,9 @@ pub enum DiscussionAnsweredDiscussionState { #[serde(rename = "converting")] Converting, } -impl From<&DiscussionAnsweredDiscussionState> for DiscussionAnsweredDiscussionState { +impl ::std::convert::From<&DiscussionAnsweredDiscussionState> + for DiscussionAnsweredDiscussionState +{ fn from(value: &DiscussionAnsweredDiscussionState) -> Self { value.clone() } @@ -22313,7 +22641,7 @@ impl ::std::fmt::Display for DiscussionAnsweredDiscussionState { } } } -impl std::str::FromStr for DiscussionAnsweredDiscussionState { +impl ::std::str::FromStr for DiscussionAnsweredDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22324,13 +22652,13 @@ impl std::str::FromStr for DiscussionAnsweredDiscussionState { } } } -impl std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionState { +impl ::std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredDiscussionState { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22338,7 +22666,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionAnsweredDiscuss value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionAnsweredDiscussionState { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22411,7 +22739,7 @@ pub struct DiscussionCategory { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionCategory> for DiscussionCategory { +impl ::std::convert::From<&DiscussionCategory> for DiscussionCategory { fn from(value: &DiscussionCategory) -> Self { value.clone() } @@ -22535,7 +22863,7 @@ pub struct DiscussionCategoryChanged { pub repository: Repository, pub sender: User, } -impl From<&DiscussionCategoryChanged> for DiscussionCategoryChanged { +impl ::std::convert::From<&DiscussionCategoryChanged> for DiscussionCategoryChanged { fn from(value: &DiscussionCategoryChanged) -> Self { value.clone() } @@ -22569,7 +22897,7 @@ pub enum DiscussionCategoryChangedAction { #[serde(rename = "category_changed")] CategoryChanged, } -impl From<&DiscussionCategoryChangedAction> for DiscussionCategoryChangedAction { +impl ::std::convert::From<&DiscussionCategoryChangedAction> for DiscussionCategoryChangedAction { fn from(value: &DiscussionCategoryChangedAction) -> Self { value.clone() } @@ -22581,7 +22909,7 @@ impl ::std::fmt::Display for DiscussionCategoryChangedAction { } } } -impl std::str::FromStr for DiscussionCategoryChangedAction { +impl ::std::str::FromStr for DiscussionCategoryChangedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22590,13 +22918,13 @@ impl std::str::FromStr for DiscussionCategoryChangedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionCategoryChangedAction { +impl ::std::convert::TryFrom<&str> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionCategoryChangedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22604,7 +22932,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionCategoryChanged value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionCategoryChangedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22687,7 +23015,7 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionCategoryChangedA pub struct DiscussionCategoryChangedChanges { pub category: DiscussionCategoryChangedChangesCategory, } -impl From<&DiscussionCategoryChangedChanges> for DiscussionCategoryChangedChanges { +impl ::std::convert::From<&DiscussionCategoryChangedChanges> for DiscussionCategoryChangedChanges { fn from(value: &DiscussionCategoryChangedChanges) -> Self { value.clone() } @@ -22758,7 +23086,9 @@ impl From<&DiscussionCategoryChangedChanges> for DiscussionCategoryChangedChange pub struct DiscussionCategoryChangedChangesCategory { pub from: DiscussionCategoryChangedChangesCategoryFrom, } -impl From<&DiscussionCategoryChangedChangesCategory> for DiscussionCategoryChangedChangesCategory { +impl ::std::convert::From<&DiscussionCategoryChangedChangesCategory> + for DiscussionCategoryChangedChangesCategory +{ fn from(value: &DiscussionCategoryChangedChangesCategory) -> Self { value.clone() } @@ -22828,7 +23158,7 @@ pub struct DiscussionCategoryChangedChangesCategoryFrom { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionCategoryChangedChangesCategoryFrom> +impl ::std::convert::From<&DiscussionCategoryChangedChangesCategoryFrom> for DiscussionCategoryChangedChangesCategoryFrom { fn from(value: &DiscussionCategoryChangedChangesCategoryFrom) -> Self { @@ -22950,7 +23280,7 @@ pub struct DiscussionCommentCreated { pub repository: Repository, pub sender: User, } -impl From<&DiscussionCommentCreated> for DiscussionCommentCreated { +impl ::std::convert::From<&DiscussionCommentCreated> for DiscussionCommentCreated { fn from(value: &DiscussionCommentCreated) -> Self { value.clone() } @@ -22984,7 +23314,7 @@ pub enum DiscussionCommentCreatedAction { #[serde(rename = "created")] Created, } -impl From<&DiscussionCommentCreatedAction> for DiscussionCommentCreatedAction { +impl ::std::convert::From<&DiscussionCommentCreatedAction> for DiscussionCommentCreatedAction { fn from(value: &DiscussionCommentCreatedAction) -> Self { value.clone() } @@ -22996,7 +23326,7 @@ impl ::std::fmt::Display for DiscussionCommentCreatedAction { } } } -impl std::str::FromStr for DiscussionCommentCreatedAction { +impl ::std::str::FromStr for DiscussionCommentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23005,13 +23335,13 @@ impl std::str::FromStr for DiscussionCommentCreatedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionCommentCreatedAction { +impl ::std::convert::TryFrom<&str> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23019,7 +23349,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentCreatedA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionCommentCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23109,7 +23439,7 @@ pub struct DiscussionCommentCreatedComment { pub updated_at: ::std::string::String, pub user: User, } -impl From<&DiscussionCommentCreatedComment> for DiscussionCommentCreatedComment { +impl ::std::convert::From<&DiscussionCommentCreatedComment> for DiscussionCommentCreatedComment { fn from(value: &DiscussionCommentCreatedComment) -> Self { value.clone() } @@ -23229,7 +23559,7 @@ pub struct DiscussionCommentDeleted { pub repository: Repository, pub sender: User, } -impl From<&DiscussionCommentDeleted> for DiscussionCommentDeleted { +impl ::std::convert::From<&DiscussionCommentDeleted> for DiscussionCommentDeleted { fn from(value: &DiscussionCommentDeleted) -> Self { value.clone() } @@ -23263,7 +23593,7 @@ pub enum DiscussionCommentDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&DiscussionCommentDeletedAction> for DiscussionCommentDeletedAction { +impl ::std::convert::From<&DiscussionCommentDeletedAction> for DiscussionCommentDeletedAction { fn from(value: &DiscussionCommentDeletedAction) -> Self { value.clone() } @@ -23275,7 +23605,7 @@ impl ::std::fmt::Display for DiscussionCommentDeletedAction { } } } -impl std::str::FromStr for DiscussionCommentDeletedAction { +impl ::std::str::FromStr for DiscussionCommentDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23284,13 +23614,13 @@ impl std::str::FromStr for DiscussionCommentDeletedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionCommentDeletedAction { +impl ::std::convert::TryFrom<&str> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23298,7 +23628,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentDeletedA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionCommentDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23388,7 +23718,7 @@ pub struct DiscussionCommentDeletedComment { pub updated_at: ::std::string::String, pub user: User, } -impl From<&DiscussionCommentDeletedComment> for DiscussionCommentDeletedComment { +impl ::std::convert::From<&DiscussionCommentDeletedComment> for DiscussionCommentDeletedComment { fn from(value: &DiscussionCommentDeletedComment) -> Self { value.clone() } @@ -23531,7 +23861,7 @@ pub struct DiscussionCommentEdited { pub repository: Repository, pub sender: User, } -impl From<&DiscussionCommentEdited> for DiscussionCommentEdited { +impl ::std::convert::From<&DiscussionCommentEdited> for DiscussionCommentEdited { fn from(value: &DiscussionCommentEdited) -> Self { value.clone() } @@ -23565,7 +23895,7 @@ pub enum DiscussionCommentEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&DiscussionCommentEditedAction> for DiscussionCommentEditedAction { +impl ::std::convert::From<&DiscussionCommentEditedAction> for DiscussionCommentEditedAction { fn from(value: &DiscussionCommentEditedAction) -> Self { value.clone() } @@ -23577,7 +23907,7 @@ impl ::std::fmt::Display for DiscussionCommentEditedAction { } } } -impl std::str::FromStr for DiscussionCommentEditedAction { +impl ::std::str::FromStr for DiscussionCommentEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23586,13 +23916,13 @@ impl std::str::FromStr for DiscussionCommentEditedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionCommentEditedAction { +impl ::std::convert::TryFrom<&str> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23600,7 +23930,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionCommentEditedAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionCommentEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23641,7 +23971,7 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionCommentEditedAct pub struct DiscussionCommentEditedChanges { pub body: DiscussionCommentEditedChangesBody, } -impl From<&DiscussionCommentEditedChanges> for DiscussionCommentEditedChanges { +impl ::std::convert::From<&DiscussionCommentEditedChanges> for DiscussionCommentEditedChanges { fn from(value: &DiscussionCommentEditedChanges) -> Self { value.clone() } @@ -23670,7 +24000,9 @@ impl From<&DiscussionCommentEditedChanges> for DiscussionCommentEditedChanges { pub struct DiscussionCommentEditedChangesBody { pub from: ::std::string::String, } -impl From<&DiscussionCommentEditedChangesBody> for DiscussionCommentEditedChangesBody { +impl ::std::convert::From<&DiscussionCommentEditedChangesBody> + for DiscussionCommentEditedChangesBody +{ fn from(value: &DiscussionCommentEditedChangesBody) -> Self { value.clone() } @@ -23757,7 +24089,7 @@ pub struct DiscussionCommentEditedComment { pub updated_at: ::std::string::String, pub user: User, } -impl From<&DiscussionCommentEditedComment> for DiscussionCommentEditedComment { +impl ::std::convert::From<&DiscussionCommentEditedComment> for DiscussionCommentEditedComment { fn from(value: &DiscussionCommentEditedComment) -> Self { value.clone() } @@ -23789,22 +24121,22 @@ pub enum DiscussionCommentEvent { Deleted(DiscussionCommentDeleted), Edited(DiscussionCommentEdited), } -impl From<&DiscussionCommentEvent> for DiscussionCommentEvent { +impl ::std::convert::From<&DiscussionCommentEvent> for DiscussionCommentEvent { fn from(value: &DiscussionCommentEvent) -> Self { value.clone() } } -impl From for DiscussionCommentEvent { +impl ::std::convert::From for DiscussionCommentEvent { fn from(value: DiscussionCommentCreated) -> Self { Self::Created(value) } } -impl From for DiscussionCommentEvent { +impl ::std::convert::From for DiscussionCommentEvent { fn from(value: DiscussionCommentDeleted) -> Self { Self::Deleted(value) } } -impl From for DiscussionCommentEvent { +impl ::std::convert::From for DiscussionCommentEvent { fn from(value: DiscussionCommentEdited) -> Self { Self::Edited(value) } @@ -23902,7 +24234,7 @@ pub struct DiscussionCreated { pub repository: Repository, pub sender: User, } -impl From<&DiscussionCreated> for DiscussionCreated { +impl ::std::convert::From<&DiscussionCreated> for DiscussionCreated { fn from(value: &DiscussionCreated) -> Self { value.clone() } @@ -23936,7 +24268,7 @@ pub enum DiscussionCreatedAction { #[serde(rename = "created")] Created, } -impl From<&DiscussionCreatedAction> for DiscussionCreatedAction { +impl ::std::convert::From<&DiscussionCreatedAction> for DiscussionCreatedAction { fn from(value: &DiscussionCreatedAction) -> Self { value.clone() } @@ -23948,7 +24280,7 @@ impl ::std::fmt::Display for DiscussionCreatedAction { } } } -impl std::str::FromStr for DiscussionCreatedAction { +impl ::std::str::FromStr for DiscussionCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23957,13 +24289,13 @@ impl std::str::FromStr for DiscussionCreatedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionCreatedAction { +impl ::std::convert::TryFrom<&str> for DiscussionCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23971,7 +24303,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24051,7 +24383,7 @@ pub struct DiscussionCreatedDiscussion { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionCreatedDiscussion> for DiscussionCreatedDiscussion { +impl ::std::convert::From<&DiscussionCreatedDiscussion> for DiscussionCreatedDiscussion { fn from(value: &DiscussionCreatedDiscussion) -> Self { value.clone() } @@ -24121,7 +24453,9 @@ pub struct DiscussionCreatedDiscussionCategory { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionCreatedDiscussionCategory> for DiscussionCreatedDiscussionCategory { +impl ::std::convert::From<&DiscussionCreatedDiscussionCategory> + for DiscussionCreatedDiscussionCategory +{ fn from(value: &DiscussionCreatedDiscussionCategory) -> Self { value.clone() } @@ -24158,7 +24492,7 @@ pub enum DiscussionCreatedDiscussionState { #[serde(rename = "converting")] Converting, } -impl From<&DiscussionCreatedDiscussionState> for DiscussionCreatedDiscussionState { +impl ::std::convert::From<&DiscussionCreatedDiscussionState> for DiscussionCreatedDiscussionState { fn from(value: &DiscussionCreatedDiscussionState) -> Self { value.clone() } @@ -24171,7 +24505,7 @@ impl ::std::fmt::Display for DiscussionCreatedDiscussionState { } } } -impl std::str::FromStr for DiscussionCreatedDiscussionState { +impl ::std::str::FromStr for DiscussionCreatedDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24181,13 +24515,13 @@ impl std::str::FromStr for DiscussionCreatedDiscussionState { } } } -impl std::convert::TryFrom<&str> for DiscussionCreatedDiscussionState { +impl ::std::convert::TryFrom<&str> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionCreatedDiscussionState { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24195,7 +24529,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionCreatedDiscussi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionCreatedDiscussionState { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24257,7 +24591,7 @@ pub struct DiscussionDeleted { pub repository: Repository, pub sender: User, } -impl From<&DiscussionDeleted> for DiscussionDeleted { +impl ::std::convert::From<&DiscussionDeleted> for DiscussionDeleted { fn from(value: &DiscussionDeleted) -> Self { value.clone() } @@ -24291,7 +24625,7 @@ pub enum DiscussionDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&DiscussionDeletedAction> for DiscussionDeletedAction { +impl ::std::convert::From<&DiscussionDeletedAction> for DiscussionDeletedAction { fn from(value: &DiscussionDeletedAction) -> Self { value.clone() } @@ -24303,7 +24637,7 @@ impl ::std::fmt::Display for DiscussionDeletedAction { } } } -impl std::str::FromStr for DiscussionDeletedAction { +impl ::std::str::FromStr for DiscussionDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24312,13 +24646,13 @@ impl std::str::FromStr for DiscussionDeletedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionDeletedAction { +impl ::std::convert::TryFrom<&str> for DiscussionDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24326,7 +24660,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24420,7 +24754,7 @@ pub struct DiscussionEdited { pub repository: Repository, pub sender: User, } -impl From<&DiscussionEdited> for DiscussionEdited { +impl ::std::convert::From<&DiscussionEdited> for DiscussionEdited { fn from(value: &DiscussionEdited) -> Self { value.clone() } @@ -24454,7 +24788,7 @@ pub enum DiscussionEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&DiscussionEditedAction> for DiscussionEditedAction { +impl ::std::convert::From<&DiscussionEditedAction> for DiscussionEditedAction { fn from(value: &DiscussionEditedAction) -> Self { value.clone() } @@ -24466,7 +24800,7 @@ impl ::std::fmt::Display for DiscussionEditedAction { } } } -impl std::str::FromStr for DiscussionEditedAction { +impl ::std::str::FromStr for DiscussionEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24475,13 +24809,13 @@ impl std::str::FromStr for DiscussionEditedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionEditedAction { +impl ::std::convert::TryFrom<&str> for DiscussionEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24489,7 +24823,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24542,11 +24876,19 @@ pub struct DiscussionEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option, } -impl From<&DiscussionEditedChanges> for DiscussionEditedChanges { +impl ::std::convert::From<&DiscussionEditedChanges> for DiscussionEditedChanges { fn from(value: &DiscussionEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for DiscussionEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + title: Default::default(), + } + } +} #[doc = "DiscussionEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -24571,7 +24913,7 @@ impl From<&DiscussionEditedChanges> for DiscussionEditedChanges { pub struct DiscussionEditedChangesBody { pub from: ::std::string::String, } -impl From<&DiscussionEditedChangesBody> for DiscussionEditedChangesBody { +impl ::std::convert::From<&DiscussionEditedChangesBody> for DiscussionEditedChangesBody { fn from(value: &DiscussionEditedChangesBody) -> Self { value.clone() } @@ -24600,7 +24942,7 @@ impl From<&DiscussionEditedChangesBody> for DiscussionEditedChangesBody { pub struct DiscussionEditedChangesTitle { pub from: ::std::string::String, } -impl From<&DiscussionEditedChangesTitle> for DiscussionEditedChangesTitle { +impl ::std::convert::From<&DiscussionEditedChangesTitle> for DiscussionEditedChangesTitle { fn from(value: &DiscussionEditedChangesTitle) -> Self { value.clone() } @@ -24672,72 +25014,72 @@ pub enum DiscussionEvent { Unlocked(DiscussionUnlocked), Unpinned(DiscussionUnpinned), } -impl From<&DiscussionEvent> for DiscussionEvent { +impl ::std::convert::From<&DiscussionEvent> for DiscussionEvent { fn from(value: &DiscussionEvent) -> Self { value.clone() } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionAnswered) -> Self { Self::Answered(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionCategoryChanged) -> Self { Self::CategoryChanged(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionCreated) -> Self { Self::Created(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionDeleted) -> Self { Self::Deleted(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionEdited) -> Self { Self::Edited(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionLabeled) -> Self { Self::Labeled(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionLocked) -> Self { Self::Locked(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionPinned) -> Self { Self::Pinned(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionTransferred) -> Self { Self::Transferred(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionUnanswered) -> Self { Self::Unanswered(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionUnlabeled) -> Self { Self::Unlabeled(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionUnlocked) -> Self { Self::Unlocked(value) } } -impl From for DiscussionEvent { +impl ::std::convert::From for DiscussionEvent { fn from(value: DiscussionUnpinned) -> Self { Self::Unpinned(value) } @@ -24801,7 +25143,7 @@ pub struct DiscussionLabeled { pub repository: Repository, pub sender: User, } -impl From<&DiscussionLabeled> for DiscussionLabeled { +impl ::std::convert::From<&DiscussionLabeled> for DiscussionLabeled { fn from(value: &DiscussionLabeled) -> Self { value.clone() } @@ -24835,7 +25177,7 @@ pub enum DiscussionLabeledAction { #[serde(rename = "labeled")] Labeled, } -impl From<&DiscussionLabeledAction> for DiscussionLabeledAction { +impl ::std::convert::From<&DiscussionLabeledAction> for DiscussionLabeledAction { fn from(value: &DiscussionLabeledAction) -> Self { value.clone() } @@ -24847,7 +25189,7 @@ impl ::std::fmt::Display for DiscussionLabeledAction { } } } -impl std::str::FromStr for DiscussionLabeledAction { +impl ::std::str::FromStr for DiscussionLabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24856,13 +25198,13 @@ impl std::str::FromStr for DiscussionLabeledAction { } } } -impl std::convert::TryFrom<&str> for DiscussionLabeledAction { +impl ::std::convert::TryFrom<&str> for DiscussionLabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionLabeledAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionLabeledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24870,7 +25212,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionLabeledAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionLabeledAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionLabeledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24958,7 +25300,7 @@ pub struct DiscussionLocked { pub repository: Repository, pub sender: User, } -impl From<&DiscussionLocked> for DiscussionLocked { +impl ::std::convert::From<&DiscussionLocked> for DiscussionLocked { fn from(value: &DiscussionLocked) -> Self { value.clone() } @@ -24992,7 +25334,7 @@ pub enum DiscussionLockedAction { #[serde(rename = "locked")] Locked, } -impl From<&DiscussionLockedAction> for DiscussionLockedAction { +impl ::std::convert::From<&DiscussionLockedAction> for DiscussionLockedAction { fn from(value: &DiscussionLockedAction) -> Self { value.clone() } @@ -25004,7 +25346,7 @@ impl ::std::fmt::Display for DiscussionLockedAction { } } } -impl std::str::FromStr for DiscussionLockedAction { +impl ::std::str::FromStr for DiscussionLockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25013,13 +25355,13 @@ impl std::str::FromStr for DiscussionLockedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionLockedAction { +impl ::std::convert::TryFrom<&str> for DiscussionLockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionLockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionLockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25027,7 +25369,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionLockedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionLockedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionLockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25094,7 +25436,7 @@ pub struct DiscussionLockedDiscussion { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionLockedDiscussion> for DiscussionLockedDiscussion { +impl ::std::convert::From<&DiscussionLockedDiscussion> for DiscussionLockedDiscussion { fn from(value: &DiscussionLockedDiscussion) -> Self { value.clone() } @@ -25164,7 +25506,9 @@ pub struct DiscussionLockedDiscussionCategory { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionLockedDiscussionCategory> for DiscussionLockedDiscussionCategory { +impl ::std::convert::From<&DiscussionLockedDiscussionCategory> + for DiscussionLockedDiscussionCategory +{ fn from(value: &DiscussionLockedDiscussionCategory) -> Self { value.clone() } @@ -25198,7 +25542,7 @@ pub enum DiscussionLockedDiscussionState { #[serde(rename = "locked")] Locked, } -impl From<&DiscussionLockedDiscussionState> for DiscussionLockedDiscussionState { +impl ::std::convert::From<&DiscussionLockedDiscussionState> for DiscussionLockedDiscussionState { fn from(value: &DiscussionLockedDiscussionState) -> Self { value.clone() } @@ -25210,7 +25554,7 @@ impl ::std::fmt::Display for DiscussionLockedDiscussionState { } } } -impl std::str::FromStr for DiscussionLockedDiscussionState { +impl ::std::str::FromStr for DiscussionLockedDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25219,13 +25563,13 @@ impl std::str::FromStr for DiscussionLockedDiscussionState { } } } -impl std::convert::TryFrom<&str> for DiscussionLockedDiscussionState { +impl ::std::convert::TryFrom<&str> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionLockedDiscussionState { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25233,7 +25577,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionLockedDiscussio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionLockedDiscussionState { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25295,7 +25639,7 @@ pub struct DiscussionPinned { pub repository: Repository, pub sender: User, } -impl From<&DiscussionPinned> for DiscussionPinned { +impl ::std::convert::From<&DiscussionPinned> for DiscussionPinned { fn from(value: &DiscussionPinned) -> Self { value.clone() } @@ -25329,7 +25673,7 @@ pub enum DiscussionPinnedAction { #[serde(rename = "pinned")] Pinned, } -impl From<&DiscussionPinnedAction> for DiscussionPinnedAction { +impl ::std::convert::From<&DiscussionPinnedAction> for DiscussionPinnedAction { fn from(value: &DiscussionPinnedAction) -> Self { value.clone() } @@ -25341,7 +25685,7 @@ impl ::std::fmt::Display for DiscussionPinnedAction { } } } -impl std::str::FromStr for DiscussionPinnedAction { +impl ::std::str::FromStr for DiscussionPinnedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25350,13 +25694,13 @@ impl std::str::FromStr for DiscussionPinnedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionPinnedAction { +impl ::std::convert::TryFrom<&str> for DiscussionPinnedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionPinnedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionPinnedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25364,7 +25708,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionPinnedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionPinnedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionPinnedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25407,7 +25751,7 @@ pub enum DiscussionState { #[serde(rename = "converting")] Converting, } -impl From<&DiscussionState> for DiscussionState { +impl ::std::convert::From<&DiscussionState> for DiscussionState { fn from(value: &DiscussionState) -> Self { value.clone() } @@ -25421,7 +25765,7 @@ impl ::std::fmt::Display for DiscussionState { } } } -impl std::str::FromStr for DiscussionState { +impl ::std::str::FromStr for DiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25432,13 +25776,13 @@ impl std::str::FromStr for DiscussionState { } } } -impl std::convert::TryFrom<&str> for DiscussionState { +impl ::std::convert::TryFrom<&str> for DiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionState { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25446,7 +25790,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionState { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25526,7 +25870,7 @@ pub struct DiscussionTransferred { pub repository: Repository, pub sender: User, } -impl From<&DiscussionTransferred> for DiscussionTransferred { +impl ::std::convert::From<&DiscussionTransferred> for DiscussionTransferred { fn from(value: &DiscussionTransferred) -> Self { value.clone() } @@ -25560,7 +25904,7 @@ pub enum DiscussionTransferredAction { #[serde(rename = "transferred")] Transferred, } -impl From<&DiscussionTransferredAction> for DiscussionTransferredAction { +impl ::std::convert::From<&DiscussionTransferredAction> for DiscussionTransferredAction { fn from(value: &DiscussionTransferredAction) -> Self { value.clone() } @@ -25572,7 +25916,7 @@ impl ::std::fmt::Display for DiscussionTransferredAction { } } } -impl std::str::FromStr for DiscussionTransferredAction { +impl ::std::str::FromStr for DiscussionTransferredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25581,13 +25925,13 @@ impl std::str::FromStr for DiscussionTransferredAction { } } } -impl std::convert::TryFrom<&str> for DiscussionTransferredAction { +impl ::std::convert::TryFrom<&str> for DiscussionTransferredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionTransferredAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionTransferredAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25595,7 +25939,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionTransferredActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionTransferredAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionTransferredAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25632,7 +25976,7 @@ pub struct DiscussionTransferredChanges { pub new_discussion: Discussion, pub new_repository: Repository, } -impl From<&DiscussionTransferredChanges> for DiscussionTransferredChanges { +impl ::std::convert::From<&DiscussionTransferredChanges> for DiscussionTransferredChanges { fn from(value: &DiscussionTransferredChanges) -> Self { value.clone() } @@ -25791,7 +26135,7 @@ pub struct DiscussionUnanswered { pub repository: Repository, pub sender: User, } -impl From<&DiscussionUnanswered> for DiscussionUnanswered { +impl ::std::convert::From<&DiscussionUnanswered> for DiscussionUnanswered { fn from(value: &DiscussionUnanswered) -> Self { value.clone() } @@ -25825,7 +26169,7 @@ pub enum DiscussionUnansweredAction { #[serde(rename = "unanswered")] Unanswered, } -impl From<&DiscussionUnansweredAction> for DiscussionUnansweredAction { +impl ::std::convert::From<&DiscussionUnansweredAction> for DiscussionUnansweredAction { fn from(value: &DiscussionUnansweredAction) -> Self { value.clone() } @@ -25837,7 +26181,7 @@ impl ::std::fmt::Display for DiscussionUnansweredAction { } } } -impl std::str::FromStr for DiscussionUnansweredAction { +impl ::std::str::FromStr for DiscussionUnansweredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25846,13 +26190,13 @@ impl std::str::FromStr for DiscussionUnansweredAction { } } } -impl std::convert::TryFrom<&str> for DiscussionUnansweredAction { +impl ::std::convert::TryFrom<&str> for DiscussionUnansweredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25860,7 +26204,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionUnansweredAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionUnansweredAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25941,7 +26285,7 @@ pub struct DiscussionUnansweredDiscussion { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionUnansweredDiscussion> for DiscussionUnansweredDiscussion { +impl ::std::convert::From<&DiscussionUnansweredDiscussion> for DiscussionUnansweredDiscussion { fn from(value: &DiscussionUnansweredDiscussion) -> Self { value.clone() } @@ -26014,7 +26358,9 @@ pub struct DiscussionUnansweredDiscussionCategory { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionUnansweredDiscussionCategory> for DiscussionUnansweredDiscussionCategory { +impl ::std::convert::From<&DiscussionUnansweredDiscussionCategory> + for DiscussionUnansweredDiscussionCategory +{ fn from(value: &DiscussionUnansweredDiscussionCategory) -> Self { value.clone() } @@ -26054,7 +26400,9 @@ pub enum DiscussionUnansweredDiscussionState { #[serde(rename = "converting")] Converting, } -impl From<&DiscussionUnansweredDiscussionState> for DiscussionUnansweredDiscussionState { +impl ::std::convert::From<&DiscussionUnansweredDiscussionState> + for DiscussionUnansweredDiscussionState +{ fn from(value: &DiscussionUnansweredDiscussionState) -> Self { value.clone() } @@ -26068,7 +26416,7 @@ impl ::std::fmt::Display for DiscussionUnansweredDiscussionState { } } } -impl std::str::FromStr for DiscussionUnansweredDiscussionState { +impl ::std::str::FromStr for DiscussionUnansweredDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26079,13 +26427,13 @@ impl std::str::FromStr for DiscussionUnansweredDiscussionState { } } } -impl std::convert::TryFrom<&str> for DiscussionUnansweredDiscussionState { +impl ::std::convert::TryFrom<&str> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredDiscussionState { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26093,7 +26441,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionUnansweredDiscu value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionUnansweredDiscussionState { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26182,7 +26530,7 @@ pub struct DiscussionUnansweredOldAnswer { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionUnansweredOldAnswer> for DiscussionUnansweredOldAnswer { +impl ::std::convert::From<&DiscussionUnansweredOldAnswer> for DiscussionUnansweredOldAnswer { fn from(value: &DiscussionUnansweredOldAnswer) -> Self { value.clone() } @@ -26246,7 +26594,7 @@ pub struct DiscussionUnlabeled { pub repository: Repository, pub sender: User, } -impl From<&DiscussionUnlabeled> for DiscussionUnlabeled { +impl ::std::convert::From<&DiscussionUnlabeled> for DiscussionUnlabeled { fn from(value: &DiscussionUnlabeled) -> Self { value.clone() } @@ -26280,7 +26628,7 @@ pub enum DiscussionUnlabeledAction { #[serde(rename = "unlabeled")] Unlabeled, } -impl From<&DiscussionUnlabeledAction> for DiscussionUnlabeledAction { +impl ::std::convert::From<&DiscussionUnlabeledAction> for DiscussionUnlabeledAction { fn from(value: &DiscussionUnlabeledAction) -> Self { value.clone() } @@ -26292,7 +26640,7 @@ impl ::std::fmt::Display for DiscussionUnlabeledAction { } } } -impl std::str::FromStr for DiscussionUnlabeledAction { +impl ::std::str::FromStr for DiscussionUnlabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26301,13 +26649,13 @@ impl std::str::FromStr for DiscussionUnlabeledAction { } } } -impl std::convert::TryFrom<&str> for DiscussionUnlabeledAction { +impl ::std::convert::TryFrom<&str> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlabeledAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26315,7 +26663,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlabeledAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionUnlabeledAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26403,7 +26751,7 @@ pub struct DiscussionUnlocked { pub repository: Repository, pub sender: User, } -impl From<&DiscussionUnlocked> for DiscussionUnlocked { +impl ::std::convert::From<&DiscussionUnlocked> for DiscussionUnlocked { fn from(value: &DiscussionUnlocked) -> Self { value.clone() } @@ -26437,7 +26785,7 @@ pub enum DiscussionUnlockedAction { #[serde(rename = "unlocked")] Unlocked, } -impl From<&DiscussionUnlockedAction> for DiscussionUnlockedAction { +impl ::std::convert::From<&DiscussionUnlockedAction> for DiscussionUnlockedAction { fn from(value: &DiscussionUnlockedAction) -> Self { value.clone() } @@ -26449,7 +26797,7 @@ impl ::std::fmt::Display for DiscussionUnlockedAction { } } } -impl std::str::FromStr for DiscussionUnlockedAction { +impl ::std::str::FromStr for DiscussionUnlockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26458,13 +26806,13 @@ impl std::str::FromStr for DiscussionUnlockedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionUnlockedAction { +impl ::std::convert::TryFrom<&str> for DiscussionUnlockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26472,7 +26820,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionUnlockedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionUnlockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26539,7 +26887,7 @@ pub struct DiscussionUnlockedDiscussion { pub updated_at: chrono::DateTime, pub user: User, } -impl From<&DiscussionUnlockedDiscussion> for DiscussionUnlockedDiscussion { +impl ::std::convert::From<&DiscussionUnlockedDiscussion> for DiscussionUnlockedDiscussion { fn from(value: &DiscussionUnlockedDiscussion) -> Self { value.clone() } @@ -26609,7 +26957,9 @@ pub struct DiscussionUnlockedDiscussionCategory { pub slug: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&DiscussionUnlockedDiscussionCategory> for DiscussionUnlockedDiscussionCategory { +impl ::std::convert::From<&DiscussionUnlockedDiscussionCategory> + for DiscussionUnlockedDiscussionCategory +{ fn from(value: &DiscussionUnlockedDiscussionCategory) -> Self { value.clone() } @@ -26643,7 +26993,9 @@ pub enum DiscussionUnlockedDiscussionState { #[serde(rename = "open")] Open, } -impl From<&DiscussionUnlockedDiscussionState> for DiscussionUnlockedDiscussionState { +impl ::std::convert::From<&DiscussionUnlockedDiscussionState> + for DiscussionUnlockedDiscussionState +{ fn from(value: &DiscussionUnlockedDiscussionState) -> Self { value.clone() } @@ -26655,7 +27007,7 @@ impl ::std::fmt::Display for DiscussionUnlockedDiscussionState { } } } -impl std::str::FromStr for DiscussionUnlockedDiscussionState { +impl ::std::str::FromStr for DiscussionUnlockedDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26664,13 +27016,13 @@ impl std::str::FromStr for DiscussionUnlockedDiscussionState { } } } -impl std::convert::TryFrom<&str> for DiscussionUnlockedDiscussionState { +impl ::std::convert::TryFrom<&str> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedDiscussionState { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26678,7 +27030,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionUnlockedDiscuss value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionUnlockedDiscussionState { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26740,7 +27092,7 @@ pub struct DiscussionUnpinned { pub repository: Repository, pub sender: User, } -impl From<&DiscussionUnpinned> for DiscussionUnpinned { +impl ::std::convert::From<&DiscussionUnpinned> for DiscussionUnpinned { fn from(value: &DiscussionUnpinned) -> Self { value.clone() } @@ -26774,7 +27126,7 @@ pub enum DiscussionUnpinnedAction { #[serde(rename = "unpinned")] Unpinned, } -impl From<&DiscussionUnpinnedAction> for DiscussionUnpinnedAction { +impl ::std::convert::From<&DiscussionUnpinnedAction> for DiscussionUnpinnedAction { fn from(value: &DiscussionUnpinnedAction) -> Self { value.clone() } @@ -26786,7 +27138,7 @@ impl ::std::fmt::Display for DiscussionUnpinnedAction { } } } -impl std::str::FromStr for DiscussionUnpinnedAction { +impl ::std::str::FromStr for DiscussionUnpinnedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26795,13 +27147,13 @@ impl std::str::FromStr for DiscussionUnpinnedAction { } } } -impl std::convert::TryFrom<&str> for DiscussionUnpinnedAction { +impl ::std::convert::TryFrom<&str> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DiscussionUnpinnedAction { +impl ::std::convert::TryFrom<&::std::string::String> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26809,7 +27161,7 @@ impl std::convert::TryFrom<&::std::string::String> for DiscussionUnpinnedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DiscussionUnpinnedAction { +impl ::std::convert::TryFrom<::std::string::String> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -27053,282 +27405,282 @@ pub enum Everything { WorkflowJobEvent(WorkflowJobEvent), WorkflowRunEvent(WorkflowRunEvent), } -impl From<&Everything> for Everything { +impl ::std::convert::From<&Everything> for Everything { fn from(value: &Everything) -> Self { value.clone() } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: BranchProtectionRuleEvent) -> Self { Self::BranchProtectionRuleEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: CheckRunEvent) -> Self { Self::CheckRunEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: CheckSuiteEvent) -> Self { Self::CheckSuiteEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: CodeScanningAlertEvent) -> Self { Self::CodeScanningAlertEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: CommitCommentEvent) -> Self { Self::CommitCommentEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: ContentReferenceEvent) -> Self { Self::ContentReferenceEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: CreateEvent) -> Self { Self::CreateEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: DeleteEvent) -> Self { Self::DeleteEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: DeployKeyEvent) -> Self { Self::DeployKeyEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: DeploymentEvent) -> Self { Self::DeploymentEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: DeploymentStatusEvent) -> Self { Self::DeploymentStatusEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: DiscussionEvent) -> Self { Self::DiscussionEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: DiscussionCommentEvent) -> Self { Self::DiscussionCommentEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: ForkEvent) -> Self { Self::ForkEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: GithubAppAuthorizationEvent) -> Self { Self::GithubAppAuthorizationEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: GollumEvent) -> Self { Self::GollumEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: InstallationEvent) -> Self { Self::InstallationEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: InstallationRepositoriesEvent) -> Self { Self::InstallationRepositoriesEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: IssueCommentEvent) -> Self { Self::IssueCommentEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: IssuesEvent) -> Self { Self::IssuesEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: LabelEvent) -> Self { Self::LabelEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: MarketplacePurchaseEvent) -> Self { Self::MarketplacePurchaseEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: MemberEvent) -> Self { Self::MemberEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: MembershipEvent) -> Self { Self::MembershipEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: MetaEvent) -> Self { Self::MetaEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: MilestoneEvent) -> Self { Self::MilestoneEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: OrgBlockEvent) -> Self { Self::OrgBlockEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: OrganizationEvent) -> Self { Self::OrganizationEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PackageEvent) -> Self { Self::PackageEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PageBuildEvent) -> Self { Self::PageBuildEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PingEvent) -> Self { Self::PingEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: ProjectEvent) -> Self { Self::ProjectEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: ProjectCardEvent) -> Self { Self::ProjectCardEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: ProjectColumnEvent) -> Self { Self::ProjectColumnEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PublicEvent) -> Self { Self::PublicEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PullRequestEvent) -> Self { Self::PullRequestEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PullRequestReviewEvent) -> Self { Self::PullRequestReviewEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PullRequestReviewCommentEvent) -> Self { Self::PullRequestReviewCommentEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: PushEvent) -> Self { Self::PushEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: ReleaseEvent) -> Self { Self::ReleaseEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: RepositoryEvent) -> Self { Self::RepositoryEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: RepositoryDispatchEvent) -> Self { Self::RepositoryDispatchEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: RepositoryImportEvent) -> Self { Self::RepositoryImportEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: RepositoryVulnerabilityAlertEvent) -> Self { Self::RepositoryVulnerabilityAlertEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: SecretScanningAlertEvent) -> Self { Self::SecretScanningAlertEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: SecurityAdvisoryEvent) -> Self { Self::SecurityAdvisoryEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: SponsorshipEvent) -> Self { Self::SponsorshipEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: StarEvent) -> Self { Self::StarEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: StatusEvent) -> Self { Self::StatusEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: TeamEvent) -> Self { Self::TeamEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: TeamAddEvent) -> Self { Self::TeamAddEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: WatchEvent) -> Self { Self::WatchEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: WorkflowDispatchEvent) -> Self { Self::WorkflowDispatchEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: WorkflowJobEvent) -> Self { Self::WorkflowJobEvent(value) } } -impl From for Everything { +impl ::std::convert::From for Everything { fn from(value: WorkflowRunEvent) -> Self { Self::WorkflowRunEvent(value) } @@ -27396,7 +27748,7 @@ pub struct ForkEvent { pub repository: Repository, pub sender: User, } -impl From<&ForkEvent> for ForkEvent { +impl ::std::convert::From<&ForkEvent> for ForkEvent { fn from(value: &ForkEvent) -> Self { value.clone() } @@ -27543,7 +27895,7 @@ pub struct ForkEventForkee { pub watchers: i64, pub watchers_count: i64, } -impl From<&ForkEventForkee> for ForkEventForkee { +impl ::std::convert::From<&ForkEventForkee> for ForkEventForkee { fn from(value: &ForkEventForkee) -> Self { value.clone() } @@ -27572,12 +27924,12 @@ pub enum ForkEventForkeeCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&ForkEventForkeeCreatedAt> for ForkEventForkeeCreatedAt { +impl ::std::convert::From<&ForkEventForkeeCreatedAt> for ForkEventForkeeCreatedAt { fn from(value: &ForkEventForkeeCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for ForkEventForkeeCreatedAt { +impl ::std::str::FromStr for ForkEventForkeeCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -27589,13 +27941,13 @@ impl std::str::FromStr for ForkEventForkeeCreatedAt { } } } -impl std::convert::TryFrom<&str> for ForkEventForkeeCreatedAt { +impl ::std::convert::TryFrom<&str> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ForkEventForkeeCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -27603,7 +27955,7 @@ impl std::convert::TryFrom<&::std::string::String> for ForkEventForkeeCreatedAt value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ForkEventForkeeCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -27619,12 +27971,12 @@ impl ::std::fmt::Display for ForkEventForkeeCreatedAt { } } } -impl From for ForkEventForkeeCreatedAt { +impl ::std::convert::From for ForkEventForkeeCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for ForkEventForkeeCreatedAt { +impl ::std::convert::From> for ForkEventForkeeCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -27673,7 +28025,7 @@ pub struct ForkEventForkeePermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&ForkEventForkeePermissions> for ForkEventForkeePermissions { +impl ::std::convert::From<&ForkEventForkeePermissions> for ForkEventForkeePermissions { fn from(value: &ForkEventForkeePermissions) -> Self { value.clone() } @@ -27706,17 +28058,17 @@ pub enum ForkEventForkeePushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&ForkEventForkeePushedAt> for ForkEventForkeePushedAt { +impl ::std::convert::From<&ForkEventForkeePushedAt> for ForkEventForkeePushedAt { fn from(value: &ForkEventForkeePushedAt) -> Self { value.clone() } } -impl From for ForkEventForkeePushedAt { +impl ::std::convert::From for ForkEventForkeePushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for ForkEventForkeePushedAt { +impl ::std::convert::From> for ForkEventForkeePushedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -27743,17 +28095,17 @@ impl ::std::ops::Deref for GithubAppAuthorizationEvent { &self.0 } } -impl From for GithubAppAuthorizationRevoked { +impl ::std::convert::From for GithubAppAuthorizationRevoked { fn from(value: GithubAppAuthorizationEvent) -> Self { value.0 } } -impl From<&GithubAppAuthorizationEvent> for GithubAppAuthorizationEvent { +impl ::std::convert::From<&GithubAppAuthorizationEvent> for GithubAppAuthorizationEvent { fn from(value: &GithubAppAuthorizationEvent) -> Self { value.clone() } } -impl From for GithubAppAuthorizationEvent { +impl ::std::convert::From for GithubAppAuthorizationEvent { fn from(value: GithubAppAuthorizationRevoked) -> Self { Self(value) } @@ -27792,7 +28144,7 @@ pub struct GithubAppAuthorizationRevoked { pub action: GithubAppAuthorizationRevokedAction, pub sender: User, } -impl From<&GithubAppAuthorizationRevoked> for GithubAppAuthorizationRevoked { +impl ::std::convert::From<&GithubAppAuthorizationRevoked> for GithubAppAuthorizationRevoked { fn from(value: &GithubAppAuthorizationRevoked) -> Self { value.clone() } @@ -27826,7 +28178,9 @@ pub enum GithubAppAuthorizationRevokedAction { #[serde(rename = "revoked")] Revoked, } -impl From<&GithubAppAuthorizationRevokedAction> for GithubAppAuthorizationRevokedAction { +impl ::std::convert::From<&GithubAppAuthorizationRevokedAction> + for GithubAppAuthorizationRevokedAction +{ fn from(value: &GithubAppAuthorizationRevokedAction) -> Self { value.clone() } @@ -27838,7 +28192,7 @@ impl ::std::fmt::Display for GithubAppAuthorizationRevokedAction { } } } -impl std::str::FromStr for GithubAppAuthorizationRevokedAction { +impl ::std::str::FromStr for GithubAppAuthorizationRevokedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -27847,13 +28201,13 @@ impl std::str::FromStr for GithubAppAuthorizationRevokedAction { } } } -impl std::convert::TryFrom<&str> for GithubAppAuthorizationRevokedAction { +impl ::std::convert::TryFrom<&str> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GithubAppAuthorizationRevokedAction { +impl ::std::convert::TryFrom<&::std::string::String> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -27861,7 +28215,7 @@ impl std::convert::TryFrom<&::std::string::String> for GithubAppAuthorizationRev value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GithubAppAuthorizationRevokedAction { +impl ::std::convert::TryFrom<::std::string::String> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -28022,7 +28376,7 @@ pub struct GithubOrg { pub type_: ::std::string::String, pub url: ::std::string::String, } -impl From<&GithubOrg> for GithubOrg { +impl ::std::convert::From<&GithubOrg> for GithubOrg { fn from(value: &GithubOrg) -> Self { value.clone() } @@ -28118,7 +28472,7 @@ pub struct GollumEvent { pub repository: Repository, pub sender: User, } -impl From<&GollumEvent> for GollumEvent { +impl ::std::convert::From<&GollumEvent> for GollumEvent { fn from(value: &GollumEvent) -> Self { value.clone() } @@ -28187,7 +28541,7 @@ pub struct GollumEventPagesItem { #[doc = "The current page title."] pub title: ::std::string::String, } -impl From<&GollumEventPagesItem> for GollumEventPagesItem { +impl ::std::convert::From<&GollumEventPagesItem> for GollumEventPagesItem { fn from(value: &GollumEventPagesItem) -> Self { value.clone() } @@ -28225,7 +28579,7 @@ pub enum GollumEventPagesItemAction { #[serde(rename = "edited")] Edited, } -impl From<&GollumEventPagesItemAction> for GollumEventPagesItemAction { +impl ::std::convert::From<&GollumEventPagesItemAction> for GollumEventPagesItemAction { fn from(value: &GollumEventPagesItemAction) -> Self { value.clone() } @@ -28238,7 +28592,7 @@ impl ::std::fmt::Display for GollumEventPagesItemAction { } } } -impl std::str::FromStr for GollumEventPagesItemAction { +impl ::std::str::FromStr for GollumEventPagesItemAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -28248,13 +28602,13 @@ impl std::str::FromStr for GollumEventPagesItemAction { } } } -impl std::convert::TryFrom<&str> for GollumEventPagesItemAction { +impl ::std::convert::TryFrom<&str> for GollumEventPagesItemAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GollumEventPagesItemAction { +impl ::std::convert::TryFrom<&::std::string::String> for GollumEventPagesItemAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -28262,7 +28616,7 @@ impl std::convert::TryFrom<&::std::string::String> for GollumEventPagesItemActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GollumEventPagesItemAction { +impl ::std::convert::TryFrom<::std::string::String> for GollumEventPagesItemAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -28735,7 +29089,7 @@ pub struct Installation { pub target_type: InstallationTargetType, pub updated_at: InstallationUpdatedAt, } -impl From<&Installation> for Installation { +impl ::std::convert::From<&Installation> for Installation { fn from(value: &Installation) -> Self { value.clone() } @@ -28822,7 +29176,7 @@ pub struct InstallationCreated { pub requester: ::std::option::Option, pub sender: User, } -impl From<&InstallationCreated> for InstallationCreated { +impl ::std::convert::From<&InstallationCreated> for InstallationCreated { fn from(value: &InstallationCreated) -> Self { value.clone() } @@ -28856,7 +29210,7 @@ pub enum InstallationCreatedAction { #[serde(rename = "created")] Created, } -impl From<&InstallationCreatedAction> for InstallationCreatedAction { +impl ::std::convert::From<&InstallationCreatedAction> for InstallationCreatedAction { fn from(value: &InstallationCreatedAction) -> Self { value.clone() } @@ -28868,7 +29222,7 @@ impl ::std::fmt::Display for InstallationCreatedAction { } } } -impl std::str::FromStr for InstallationCreatedAction { +impl ::std::str::FromStr for InstallationCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -28877,13 +29231,13 @@ impl std::str::FromStr for InstallationCreatedAction { } } } -impl std::convert::TryFrom<&str> for InstallationCreatedAction { +impl ::std::convert::TryFrom<&str> for InstallationCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -28891,7 +29245,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationCreatedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -28923,12 +29277,12 @@ pub enum InstallationCreatedAt { Variant0(chrono::DateTime), Variant1(i64), } -impl From<&InstallationCreatedAt> for InstallationCreatedAt { +impl ::std::convert::From<&InstallationCreatedAt> for InstallationCreatedAt { fn from(value: &InstallationCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for InstallationCreatedAt { +impl ::std::str::FromStr for InstallationCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -28940,13 +29294,13 @@ impl std::str::FromStr for InstallationCreatedAt { } } } -impl std::convert::TryFrom<&str> for InstallationCreatedAt { +impl ::std::convert::TryFrom<&str> for InstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -28954,7 +29308,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationCreatedAt { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for InstallationCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -28970,12 +29324,12 @@ impl ::std::fmt::Display for InstallationCreatedAt { } } } -impl From> for InstallationCreatedAt { +impl ::std::convert::From> for InstallationCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } -impl From for InstallationCreatedAt { +impl ::std::convert::From for InstallationCreatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } @@ -29030,7 +29384,9 @@ pub struct InstallationCreatedRepositoriesItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationCreatedRepositoriesItem> for InstallationCreatedRepositoriesItem { +impl ::std::convert::From<&InstallationCreatedRepositoriesItem> + for InstallationCreatedRepositoriesItem +{ fn from(value: &InstallationCreatedRepositoriesItem) -> Self { value.clone() } @@ -29117,7 +29473,7 @@ pub struct InstallationDeleted { pub requester: (), pub sender: User, } -impl From<&InstallationDeleted> for InstallationDeleted { +impl ::std::convert::From<&InstallationDeleted> for InstallationDeleted { fn from(value: &InstallationDeleted) -> Self { value.clone() } @@ -29151,7 +29507,7 @@ pub enum InstallationDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&InstallationDeletedAction> for InstallationDeletedAction { +impl ::std::convert::From<&InstallationDeletedAction> for InstallationDeletedAction { fn from(value: &InstallationDeletedAction) -> Self { value.clone() } @@ -29163,7 +29519,7 @@ impl ::std::fmt::Display for InstallationDeletedAction { } } } -impl std::str::FromStr for InstallationDeletedAction { +impl ::std::str::FromStr for InstallationDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -29172,13 +29528,13 @@ impl std::str::FromStr for InstallationDeletedAction { } } } -impl std::convert::TryFrom<&str> for InstallationDeletedAction { +impl ::std::convert::TryFrom<&str> for InstallationDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -29186,7 +29542,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationDeletedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -29244,7 +29600,9 @@ pub struct InstallationDeletedRepositoriesItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationDeletedRepositoriesItem> for InstallationDeletedRepositoriesItem { +impl ::std::convert::From<&InstallationDeletedRepositoriesItem> + for InstallationDeletedRepositoriesItem +{ fn from(value: &InstallationDeletedRepositoriesItem) -> Self { value.clone() } @@ -29284,32 +29642,32 @@ pub enum InstallationEvent { Suspend(InstallationSuspend), Unsuspend(InstallationUnsuspend), } -impl From<&InstallationEvent> for InstallationEvent { +impl ::std::convert::From<&InstallationEvent> for InstallationEvent { fn from(value: &InstallationEvent) -> Self { value.clone() } } -impl From for InstallationEvent { +impl ::std::convert::From for InstallationEvent { fn from(value: InstallationCreated) -> Self { Self::Created(value) } } -impl From for InstallationEvent { +impl ::std::convert::From for InstallationEvent { fn from(value: InstallationDeleted) -> Self { Self::Deleted(value) } } -impl From for InstallationEvent { +impl ::std::convert::From for InstallationEvent { fn from(value: InstallationNewPermissionsAccepted) -> Self { Self::NewPermissionsAccepted(value) } } -impl From for InstallationEvent { +impl ::std::convert::From for InstallationEvent { fn from(value: InstallationSuspend) -> Self { Self::Suspend(value) } } -impl From for InstallationEvent { +impl ::std::convert::From for InstallationEvent { fn from(value: InstallationUnsuspend) -> Self { Self::Unsuspend(value) } @@ -29475,7 +29833,7 @@ pub enum InstallationEventsItem { #[serde(rename = "workflow_run")] WorkflowRun, } -impl From<&InstallationEventsItem> for InstallationEventsItem { +impl ::std::convert::From<&InstallationEventsItem> for InstallationEventsItem { fn from(value: &InstallationEventsItem) -> Self { value.clone() } @@ -29531,7 +29889,7 @@ impl ::std::fmt::Display for InstallationEventsItem { } } } -impl std::str::FromStr for InstallationEventsItem { +impl ::std::str::FromStr for InstallationEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -29584,13 +29942,13 @@ impl std::str::FromStr for InstallationEventsItem { } } } -impl std::convert::TryFrom<&str> for InstallationEventsItem { +impl ::std::convert::TryFrom<&str> for InstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationEventsItem { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationEventsItem { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -29598,7 +29956,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationEventsItem { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationEventsItem { +impl ::std::convert::TryFrom<::std::string::String> for InstallationEventsItem { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -29640,7 +29998,7 @@ pub struct InstallationLite { pub id: i64, pub node_id: ::std::string::String, } -impl From<&InstallationLite> for InstallationLite { +impl ::std::convert::From<&InstallationLite> for InstallationLite { fn from(value: &InstallationLite) -> Self { value.clone() } @@ -29727,7 +30085,9 @@ pub struct InstallationNewPermissionsAccepted { pub requester: (), pub sender: User, } -impl From<&InstallationNewPermissionsAccepted> for InstallationNewPermissionsAccepted { +impl ::std::convert::From<&InstallationNewPermissionsAccepted> + for InstallationNewPermissionsAccepted +{ fn from(value: &InstallationNewPermissionsAccepted) -> Self { value.clone() } @@ -29761,7 +30121,9 @@ pub enum InstallationNewPermissionsAcceptedAction { #[serde(rename = "new_permissions_accepted")] NewPermissionsAccepted, } -impl From<&InstallationNewPermissionsAcceptedAction> for InstallationNewPermissionsAcceptedAction { +impl ::std::convert::From<&InstallationNewPermissionsAcceptedAction> + for InstallationNewPermissionsAcceptedAction +{ fn from(value: &InstallationNewPermissionsAcceptedAction) -> Self { value.clone() } @@ -29773,7 +30135,7 @@ impl ::std::fmt::Display for InstallationNewPermissionsAcceptedAction { } } } -impl std::str::FromStr for InstallationNewPermissionsAcceptedAction { +impl ::std::str::FromStr for InstallationNewPermissionsAcceptedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -29782,13 +30144,13 @@ impl std::str::FromStr for InstallationNewPermissionsAcceptedAction { } } } -impl std::convert::TryFrom<&str> for InstallationNewPermissionsAcceptedAction { +impl ::std::convert::TryFrom<&str> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationNewPermissionsAcceptedAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -29796,7 +30158,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationNewPermission value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationNewPermissionsAcceptedAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -29854,7 +30216,7 @@ pub struct InstallationNewPermissionsAcceptedRepositoriesItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationNewPermissionsAcceptedRepositoriesItem> +impl ::std::convert::From<&InstallationNewPermissionsAcceptedRepositoriesItem> for InstallationNewPermissionsAcceptedRepositoriesItem { fn from(value: &InstallationNewPermissionsAcceptedRepositoriesItem) -> Self { @@ -30197,11 +30559,52 @@ pub struct InstallationPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } -impl From<&InstallationPermissions> for InstallationPermissions { +impl ::std::convert::From<&InstallationPermissions> for InstallationPermissions { fn from(value: &InstallationPermissions) -> Self { value.clone() } } +impl ::std::default::Default for InstallationPermissions { + fn default() -> Self { + Self { + actions: Default::default(), + administration: Default::default(), + checks: Default::default(), + content_references: Default::default(), + contents: Default::default(), + deployments: Default::default(), + discussions: Default::default(), + emails: Default::default(), + environments: Default::default(), + issues: Default::default(), + members: Default::default(), + metadata: Default::default(), + organization_administration: Default::default(), + organization_events: Default::default(), + organization_hooks: Default::default(), + organization_packages: Default::default(), + organization_plan: Default::default(), + organization_projects: Default::default(), + organization_secrets: Default::default(), + organization_self_hosted_runners: Default::default(), + organization_user_blocking: Default::default(), + packages: Default::default(), + pages: Default::default(), + pull_requests: Default::default(), + repository_hooks: Default::default(), + repository_projects: Default::default(), + secret_scanning_alerts: Default::default(), + secrets: Default::default(), + security_events: Default::default(), + security_scanning_alert: Default::default(), + single_file: Default::default(), + statuses: Default::default(), + team_discussions: Default::default(), + vulnerability_alerts: Default::default(), + workflows: Default::default(), + } + } +} #[doc = "InstallationPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] @@ -30234,7 +30637,7 @@ pub enum InstallationPermissionsActions { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsActions> for InstallationPermissionsActions { +impl ::std::convert::From<&InstallationPermissionsActions> for InstallationPermissionsActions { fn from(value: &InstallationPermissionsActions) -> Self { value.clone() } @@ -30247,7 +30650,7 @@ impl ::std::fmt::Display for InstallationPermissionsActions { } } } -impl std::str::FromStr for InstallationPermissionsActions { +impl ::std::str::FromStr for InstallationPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30257,13 +30660,13 @@ impl std::str::FromStr for InstallationPermissionsActions { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsActions { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsActions { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30271,7 +30674,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsActions { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30311,7 +30714,9 @@ pub enum InstallationPermissionsAdministration { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsAdministration> for InstallationPermissionsAdministration { +impl ::std::convert::From<&InstallationPermissionsAdministration> + for InstallationPermissionsAdministration +{ fn from(value: &InstallationPermissionsAdministration) -> Self { value.clone() } @@ -30324,7 +30729,7 @@ impl ::std::fmt::Display for InstallationPermissionsAdministration { } } } -impl std::str::FromStr for InstallationPermissionsAdministration { +impl ::std::str::FromStr for InstallationPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30334,13 +30739,13 @@ impl std::str::FromStr for InstallationPermissionsAdministration { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsAdministration { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsAdministration { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30348,7 +30753,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsAd value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsAdministration { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30388,7 +30793,7 @@ pub enum InstallationPermissionsChecks { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsChecks> for InstallationPermissionsChecks { +impl ::std::convert::From<&InstallationPermissionsChecks> for InstallationPermissionsChecks { fn from(value: &InstallationPermissionsChecks) -> Self { value.clone() } @@ -30401,7 +30806,7 @@ impl ::std::fmt::Display for InstallationPermissionsChecks { } } } -impl std::str::FromStr for InstallationPermissionsChecks { +impl ::std::str::FromStr for InstallationPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30411,13 +30816,13 @@ impl std::str::FromStr for InstallationPermissionsChecks { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsChecks { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsChecks { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30425,7 +30830,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsCh value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsChecks { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30465,7 +30870,9 @@ pub enum InstallationPermissionsContentReferences { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsContentReferences> for InstallationPermissionsContentReferences { +impl ::std::convert::From<&InstallationPermissionsContentReferences> + for InstallationPermissionsContentReferences +{ fn from(value: &InstallationPermissionsContentReferences) -> Self { value.clone() } @@ -30478,7 +30885,7 @@ impl ::std::fmt::Display for InstallationPermissionsContentReferences { } } } -impl std::str::FromStr for InstallationPermissionsContentReferences { +impl ::std::str::FromStr for InstallationPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30488,13 +30895,13 @@ impl std::str::FromStr for InstallationPermissionsContentReferences { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsContentReferences { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsContentReferences { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30502,7 +30909,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsCo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsContentReferences { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30542,7 +30949,7 @@ pub enum InstallationPermissionsContents { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsContents> for InstallationPermissionsContents { +impl ::std::convert::From<&InstallationPermissionsContents> for InstallationPermissionsContents { fn from(value: &InstallationPermissionsContents) -> Self { value.clone() } @@ -30555,7 +30962,7 @@ impl ::std::fmt::Display for InstallationPermissionsContents { } } } -impl std::str::FromStr for InstallationPermissionsContents { +impl ::std::str::FromStr for InstallationPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30565,13 +30972,13 @@ impl std::str::FromStr for InstallationPermissionsContents { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsContents { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsContents { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30579,7 +30986,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsCo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsContents { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30619,7 +31026,9 @@ pub enum InstallationPermissionsDeployments { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsDeployments> for InstallationPermissionsDeployments { +impl ::std::convert::From<&InstallationPermissionsDeployments> + for InstallationPermissionsDeployments +{ fn from(value: &InstallationPermissionsDeployments) -> Self { value.clone() } @@ -30632,7 +31041,7 @@ impl ::std::fmt::Display for InstallationPermissionsDeployments { } } } -impl std::str::FromStr for InstallationPermissionsDeployments { +impl ::std::str::FromStr for InstallationPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30642,13 +31051,13 @@ impl std::str::FromStr for InstallationPermissionsDeployments { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsDeployments { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDeployments { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30656,7 +31065,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsDeployments { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30696,7 +31105,9 @@ pub enum InstallationPermissionsDiscussions { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsDiscussions> for InstallationPermissionsDiscussions { +impl ::std::convert::From<&InstallationPermissionsDiscussions> + for InstallationPermissionsDiscussions +{ fn from(value: &InstallationPermissionsDiscussions) -> Self { value.clone() } @@ -30709,7 +31120,7 @@ impl ::std::fmt::Display for InstallationPermissionsDiscussions { } } } -impl std::str::FromStr for InstallationPermissionsDiscussions { +impl ::std::str::FromStr for InstallationPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30719,13 +31130,13 @@ impl std::str::FromStr for InstallationPermissionsDiscussions { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsDiscussions { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDiscussions { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30733,7 +31144,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsDi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsDiscussions { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30773,7 +31184,7 @@ pub enum InstallationPermissionsEmails { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsEmails> for InstallationPermissionsEmails { +impl ::std::convert::From<&InstallationPermissionsEmails> for InstallationPermissionsEmails { fn from(value: &InstallationPermissionsEmails) -> Self { value.clone() } @@ -30786,7 +31197,7 @@ impl ::std::fmt::Display for InstallationPermissionsEmails { } } } -impl std::str::FromStr for InstallationPermissionsEmails { +impl ::std::str::FromStr for InstallationPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30796,13 +31207,13 @@ impl std::str::FromStr for InstallationPermissionsEmails { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsEmails { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEmails { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30810,7 +31221,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEm value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsEmails { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30850,7 +31261,9 @@ pub enum InstallationPermissionsEnvironments { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsEnvironments> for InstallationPermissionsEnvironments { +impl ::std::convert::From<&InstallationPermissionsEnvironments> + for InstallationPermissionsEnvironments +{ fn from(value: &InstallationPermissionsEnvironments) -> Self { value.clone() } @@ -30863,7 +31276,7 @@ impl ::std::fmt::Display for InstallationPermissionsEnvironments { } } } -impl std::str::FromStr for InstallationPermissionsEnvironments { +impl ::std::str::FromStr for InstallationPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30873,13 +31286,13 @@ impl std::str::FromStr for InstallationPermissionsEnvironments { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsEnvironments { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEnvironments { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30887,7 +31300,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsEn value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsEnvironments { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30927,7 +31340,7 @@ pub enum InstallationPermissionsIssues { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsIssues> for InstallationPermissionsIssues { +impl ::std::convert::From<&InstallationPermissionsIssues> for InstallationPermissionsIssues { fn from(value: &InstallationPermissionsIssues) -> Self { value.clone() } @@ -30940,7 +31353,7 @@ impl ::std::fmt::Display for InstallationPermissionsIssues { } } } -impl std::str::FromStr for InstallationPermissionsIssues { +impl ::std::str::FromStr for InstallationPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30950,13 +31363,13 @@ impl std::str::FromStr for InstallationPermissionsIssues { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsIssues { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsIssues { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30964,7 +31377,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsIs value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsIssues { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31004,7 +31417,7 @@ pub enum InstallationPermissionsMembers { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsMembers> for InstallationPermissionsMembers { +impl ::std::convert::From<&InstallationPermissionsMembers> for InstallationPermissionsMembers { fn from(value: &InstallationPermissionsMembers) -> Self { value.clone() } @@ -31017,7 +31430,7 @@ impl ::std::fmt::Display for InstallationPermissionsMembers { } } } -impl std::str::FromStr for InstallationPermissionsMembers { +impl ::std::str::FromStr for InstallationPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31027,13 +31440,13 @@ impl std::str::FromStr for InstallationPermissionsMembers { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsMembers { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMembers { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31041,7 +31454,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsMembers { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31081,7 +31494,7 @@ pub enum InstallationPermissionsMetadata { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsMetadata> for InstallationPermissionsMetadata { +impl ::std::convert::From<&InstallationPermissionsMetadata> for InstallationPermissionsMetadata { fn from(value: &InstallationPermissionsMetadata) -> Self { value.clone() } @@ -31094,7 +31507,7 @@ impl ::std::fmt::Display for InstallationPermissionsMetadata { } } } -impl std::str::FromStr for InstallationPermissionsMetadata { +impl ::std::str::FromStr for InstallationPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31104,13 +31517,13 @@ impl std::str::FromStr for InstallationPermissionsMetadata { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsMetadata { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMetadata { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31118,7 +31531,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsMe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsMetadata { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31158,7 +31571,7 @@ pub enum InstallationPermissionsOrganizationAdministration { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationAdministration> +impl ::std::convert::From<&InstallationPermissionsOrganizationAdministration> for InstallationPermissionsOrganizationAdministration { fn from(value: &InstallationPermissionsOrganizationAdministration) -> Self { @@ -31173,7 +31586,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationAdministration { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationAdministration { +impl ::std::str::FromStr for InstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31183,13 +31596,13 @@ impl std::str::FromStr for InstallationPermissionsOrganizationAdministration { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationAdministration { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -31199,7 +31612,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -31241,7 +31654,7 @@ pub enum InstallationPermissionsOrganizationEvents { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationEvents> +impl ::std::convert::From<&InstallationPermissionsOrganizationEvents> for InstallationPermissionsOrganizationEvents { fn from(value: &InstallationPermissionsOrganizationEvents) -> Self { @@ -31256,7 +31669,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationEvents { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationEvents { +impl ::std::str::FromStr for InstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31266,13 +31679,13 @@ impl std::str::FromStr for InstallationPermissionsOrganizationEvents { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationEvents { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationEvents { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31280,7 +31693,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOr value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationEvents { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31320,7 +31733,9 @@ pub enum InstallationPermissionsOrganizationHooks { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationHooks> for InstallationPermissionsOrganizationHooks { +impl ::std::convert::From<&InstallationPermissionsOrganizationHooks> + for InstallationPermissionsOrganizationHooks +{ fn from(value: &InstallationPermissionsOrganizationHooks) -> Self { value.clone() } @@ -31333,7 +31748,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationHooks { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationHooks { +impl ::std::str::FromStr for InstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31343,13 +31758,13 @@ impl std::str::FromStr for InstallationPermissionsOrganizationHooks { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31357,7 +31772,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOr value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31397,7 +31812,7 @@ pub enum InstallationPermissionsOrganizationPackages { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationPackages> +impl ::std::convert::From<&InstallationPermissionsOrganizationPackages> for InstallationPermissionsOrganizationPackages { fn from(value: &InstallationPermissionsOrganizationPackages) -> Self { @@ -31412,7 +31827,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationPackages { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationPackages { +impl ::std::str::FromStr for InstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31422,13 +31837,15 @@ impl std::str::FromStr for InstallationPermissionsOrganizationPackages { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPackages { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationPackages { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsOrganizationPackages +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31436,7 +31853,9 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOr value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationPackages { +impl ::std::convert::TryFrom<::std::string::String> + for InstallationPermissionsOrganizationPackages +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31476,7 +31895,9 @@ pub enum InstallationPermissionsOrganizationPlan { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationPlan> for InstallationPermissionsOrganizationPlan { +impl ::std::convert::From<&InstallationPermissionsOrganizationPlan> + for InstallationPermissionsOrganizationPlan +{ fn from(value: &InstallationPermissionsOrganizationPlan) -> Self { value.clone() } @@ -31489,7 +31910,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationPlan { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationPlan { +impl ::std::str::FromStr for InstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31499,13 +31920,13 @@ impl std::str::FromStr for InstallationPermissionsOrganizationPlan { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31513,7 +31934,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOr value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31553,7 +31974,7 @@ pub enum InstallationPermissionsOrganizationProjects { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationProjects> +impl ::std::convert::From<&InstallationPermissionsOrganizationProjects> for InstallationPermissionsOrganizationProjects { fn from(value: &InstallationPermissionsOrganizationProjects) -> Self { @@ -31568,7 +31989,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationProjects { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationProjects { +impl ::std::str::FromStr for InstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31578,13 +31999,15 @@ impl std::str::FromStr for InstallationPermissionsOrganizationProjects { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationProjects { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationProjects { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsOrganizationProjects +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31592,7 +32015,9 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOr value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationProjects { +impl ::std::convert::TryFrom<::std::string::String> + for InstallationPermissionsOrganizationProjects +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31632,7 +32057,7 @@ pub enum InstallationPermissionsOrganizationSecrets { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationSecrets> +impl ::std::convert::From<&InstallationPermissionsOrganizationSecrets> for InstallationPermissionsOrganizationSecrets { fn from(value: &InstallationPermissionsOrganizationSecrets) -> Self { @@ -31647,7 +32072,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationSecrets { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationSecrets { +impl ::std::str::FromStr for InstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31657,13 +32082,15 @@ impl std::str::FromStr for InstallationPermissionsOrganizationSecrets { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsOrganizationSecrets +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31671,7 +32098,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOr value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31711,7 +32138,7 @@ pub enum InstallationPermissionsOrganizationSelfHostedRunners { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationSelfHostedRunners> +impl ::std::convert::From<&InstallationPermissionsOrganizationSelfHostedRunners> for InstallationPermissionsOrganizationSelfHostedRunners { fn from(value: &InstallationPermissionsOrganizationSelfHostedRunners) -> Self { @@ -31726,7 +32153,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationSelfHostedRunner } } } -impl std::str::FromStr for InstallationPermissionsOrganizationSelfHostedRunners { +impl ::std::str::FromStr for InstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31736,13 +32163,13 @@ impl std::str::FromStr for InstallationPermissionsOrganizationSelfHostedRunners } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSelfHostedRunners { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -31752,7 +32179,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -31794,7 +32221,7 @@ pub enum InstallationPermissionsOrganizationUserBlocking { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsOrganizationUserBlocking> +impl ::std::convert::From<&InstallationPermissionsOrganizationUserBlocking> for InstallationPermissionsOrganizationUserBlocking { fn from(value: &InstallationPermissionsOrganizationUserBlocking) -> Self { @@ -31809,7 +32236,7 @@ impl ::std::fmt::Display for InstallationPermissionsOrganizationUserBlocking { } } } -impl std::str::FromStr for InstallationPermissionsOrganizationUserBlocking { +impl ::std::str::FromStr for InstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31819,13 +32246,13 @@ impl std::str::FromStr for InstallationPermissionsOrganizationUserBlocking { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationUserBlocking { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -31835,7 +32262,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -31877,7 +32304,7 @@ pub enum InstallationPermissionsPackages { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsPackages> for InstallationPermissionsPackages { +impl ::std::convert::From<&InstallationPermissionsPackages> for InstallationPermissionsPackages { fn from(value: &InstallationPermissionsPackages) -> Self { value.clone() } @@ -31890,7 +32317,7 @@ impl ::std::fmt::Display for InstallationPermissionsPackages { } } } -impl std::str::FromStr for InstallationPermissionsPackages { +impl ::std::str::FromStr for InstallationPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31900,13 +32327,13 @@ impl std::str::FromStr for InstallationPermissionsPackages { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsPackages { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPackages { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31914,7 +32341,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPa value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsPackages { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31954,7 +32381,7 @@ pub enum InstallationPermissionsPages { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsPages> for InstallationPermissionsPages { +impl ::std::convert::From<&InstallationPermissionsPages> for InstallationPermissionsPages { fn from(value: &InstallationPermissionsPages) -> Self { value.clone() } @@ -31967,7 +32394,7 @@ impl ::std::fmt::Display for InstallationPermissionsPages { } } } -impl std::str::FromStr for InstallationPermissionsPages { +impl ::std::str::FromStr for InstallationPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31977,13 +32404,13 @@ impl std::str::FromStr for InstallationPermissionsPages { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsPages { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPages { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31991,7 +32418,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPa value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsPages { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32031,7 +32458,9 @@ pub enum InstallationPermissionsPullRequests { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsPullRequests> for InstallationPermissionsPullRequests { +impl ::std::convert::From<&InstallationPermissionsPullRequests> + for InstallationPermissionsPullRequests +{ fn from(value: &InstallationPermissionsPullRequests) -> Self { value.clone() } @@ -32044,7 +32473,7 @@ impl ::std::fmt::Display for InstallationPermissionsPullRequests { } } } -impl std::str::FromStr for InstallationPermissionsPullRequests { +impl ::std::str::FromStr for InstallationPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32054,13 +32483,13 @@ impl std::str::FromStr for InstallationPermissionsPullRequests { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsPullRequests { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPullRequests { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32068,7 +32497,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsPu value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsPullRequests { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32108,7 +32537,9 @@ pub enum InstallationPermissionsRepositoryHooks { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsRepositoryHooks> for InstallationPermissionsRepositoryHooks { +impl ::std::convert::From<&InstallationPermissionsRepositoryHooks> + for InstallationPermissionsRepositoryHooks +{ fn from(value: &InstallationPermissionsRepositoryHooks) -> Self { value.clone() } @@ -32121,7 +32552,7 @@ impl ::std::fmt::Display for InstallationPermissionsRepositoryHooks { } } } -impl std::str::FromStr for InstallationPermissionsRepositoryHooks { +impl ::std::str::FromStr for InstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32131,13 +32562,13 @@ impl std::str::FromStr for InstallationPermissionsRepositoryHooks { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32145,7 +32576,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32185,7 +32616,7 @@ pub enum InstallationPermissionsRepositoryProjects { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsRepositoryProjects> +impl ::std::convert::From<&InstallationPermissionsRepositoryProjects> for InstallationPermissionsRepositoryProjects { fn from(value: &InstallationPermissionsRepositoryProjects) -> Self { @@ -32200,7 +32631,7 @@ impl ::std::fmt::Display for InstallationPermissionsRepositoryProjects { } } } -impl std::str::FromStr for InstallationPermissionsRepositoryProjects { +impl ::std::str::FromStr for InstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32210,13 +32641,13 @@ impl std::str::FromStr for InstallationPermissionsRepositoryProjects { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32224,7 +32655,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsRe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32264,7 +32695,7 @@ pub enum InstallationPermissionsSecretScanningAlerts { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsSecretScanningAlerts> +impl ::std::convert::From<&InstallationPermissionsSecretScanningAlerts> for InstallationPermissionsSecretScanningAlerts { fn from(value: &InstallationPermissionsSecretScanningAlerts) -> Self { @@ -32279,7 +32710,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecretScanningAlerts { } } } -impl std::str::FromStr for InstallationPermissionsSecretScanningAlerts { +impl ::std::str::FromStr for InstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32289,13 +32720,15 @@ impl std::str::FromStr for InstallationPermissionsSecretScanningAlerts { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsSecretScanningAlerts { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecretScanningAlerts { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsSecretScanningAlerts +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32303,7 +32736,9 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecretScanningAlerts { +impl ::std::convert::TryFrom<::std::string::String> + for InstallationPermissionsSecretScanningAlerts +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32343,7 +32778,7 @@ pub enum InstallationPermissionsSecrets { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsSecrets> for InstallationPermissionsSecrets { +impl ::std::convert::From<&InstallationPermissionsSecrets> for InstallationPermissionsSecrets { fn from(value: &InstallationPermissionsSecrets) -> Self { value.clone() } @@ -32356,7 +32791,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecrets { } } } -impl std::str::FromStr for InstallationPermissionsSecrets { +impl ::std::str::FromStr for InstallationPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32366,13 +32801,13 @@ impl std::str::FromStr for InstallationPermissionsSecrets { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsSecrets { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecrets { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32380,7 +32815,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecrets { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32420,7 +32855,9 @@ pub enum InstallationPermissionsSecurityEvents { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsSecurityEvents> for InstallationPermissionsSecurityEvents { +impl ::std::convert::From<&InstallationPermissionsSecurityEvents> + for InstallationPermissionsSecurityEvents +{ fn from(value: &InstallationPermissionsSecurityEvents) -> Self { value.clone() } @@ -32433,7 +32870,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecurityEvents { } } } -impl std::str::FromStr for InstallationPermissionsSecurityEvents { +impl ::std::str::FromStr for InstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32443,13 +32880,13 @@ impl std::str::FromStr for InstallationPermissionsSecurityEvents { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsSecurityEvents { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecurityEvents { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32457,7 +32894,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecurityEvents { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32497,7 +32934,7 @@ pub enum InstallationPermissionsSecurityScanningAlert { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsSecurityScanningAlert> +impl ::std::convert::From<&InstallationPermissionsSecurityScanningAlert> for InstallationPermissionsSecurityScanningAlert { fn from(value: &InstallationPermissionsSecurityScanningAlert) -> Self { @@ -32512,7 +32949,7 @@ impl ::std::fmt::Display for InstallationPermissionsSecurityScanningAlert { } } } -impl std::str::FromStr for InstallationPermissionsSecurityScanningAlert { +impl ::std::str::FromStr for InstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32522,13 +32959,13 @@ impl std::str::FromStr for InstallationPermissionsSecurityScanningAlert { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsSecurityScanningAlert { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -32538,7 +32975,9 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSecurityScanningAlert { +impl ::std::convert::TryFrom<::std::string::String> + for InstallationPermissionsSecurityScanningAlert +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32578,7 +33017,9 @@ pub enum InstallationPermissionsSingleFile { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsSingleFile> for InstallationPermissionsSingleFile { +impl ::std::convert::From<&InstallationPermissionsSingleFile> + for InstallationPermissionsSingleFile +{ fn from(value: &InstallationPermissionsSingleFile) -> Self { value.clone() } @@ -32591,7 +33032,7 @@ impl ::std::fmt::Display for InstallationPermissionsSingleFile { } } } -impl std::str::FromStr for InstallationPermissionsSingleFile { +impl ::std::str::FromStr for InstallationPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32601,13 +33042,13 @@ impl std::str::FromStr for InstallationPermissionsSingleFile { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsSingleFile { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSingleFile { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32615,7 +33056,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsSingleFile { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32655,7 +33096,7 @@ pub enum InstallationPermissionsStatuses { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsStatuses> for InstallationPermissionsStatuses { +impl ::std::convert::From<&InstallationPermissionsStatuses> for InstallationPermissionsStatuses { fn from(value: &InstallationPermissionsStatuses) -> Self { value.clone() } @@ -32668,7 +33109,7 @@ impl ::std::fmt::Display for InstallationPermissionsStatuses { } } } -impl std::str::FromStr for InstallationPermissionsStatuses { +impl ::std::str::FromStr for InstallationPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32678,13 +33119,13 @@ impl std::str::FromStr for InstallationPermissionsStatuses { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsStatuses { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsStatuses { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32692,7 +33133,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsSt value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsStatuses { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32732,7 +33173,9 @@ pub enum InstallationPermissionsTeamDiscussions { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsTeamDiscussions> for InstallationPermissionsTeamDiscussions { +impl ::std::convert::From<&InstallationPermissionsTeamDiscussions> + for InstallationPermissionsTeamDiscussions +{ fn from(value: &InstallationPermissionsTeamDiscussions) -> Self { value.clone() } @@ -32745,7 +33188,7 @@ impl ::std::fmt::Display for InstallationPermissionsTeamDiscussions { } } } -impl std::str::FromStr for InstallationPermissionsTeamDiscussions { +impl ::std::str::FromStr for InstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32755,13 +33198,13 @@ impl std::str::FromStr for InstallationPermissionsTeamDiscussions { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32769,7 +33212,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsTe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32809,7 +33252,7 @@ pub enum InstallationPermissionsVulnerabilityAlerts { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsVulnerabilityAlerts> +impl ::std::convert::From<&InstallationPermissionsVulnerabilityAlerts> for InstallationPermissionsVulnerabilityAlerts { fn from(value: &InstallationPermissionsVulnerabilityAlerts) -> Self { @@ -32824,7 +33267,7 @@ impl ::std::fmt::Display for InstallationPermissionsVulnerabilityAlerts { } } } -impl std::str::FromStr for InstallationPermissionsVulnerabilityAlerts { +impl ::std::str::FromStr for InstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32834,13 +33277,15 @@ impl std::str::FromStr for InstallationPermissionsVulnerabilityAlerts { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationPermissionsVulnerabilityAlerts +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32848,7 +33293,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsVu value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32888,7 +33333,7 @@ pub enum InstallationPermissionsWorkflows { #[serde(rename = "write")] Write, } -impl From<&InstallationPermissionsWorkflows> for InstallationPermissionsWorkflows { +impl ::std::convert::From<&InstallationPermissionsWorkflows> for InstallationPermissionsWorkflows { fn from(value: &InstallationPermissionsWorkflows) -> Self { value.clone() } @@ -32901,7 +33346,7 @@ impl ::std::fmt::Display for InstallationPermissionsWorkflows { } } } -impl std::str::FromStr for InstallationPermissionsWorkflows { +impl ::std::str::FromStr for InstallationPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32911,13 +33356,13 @@ impl std::str::FromStr for InstallationPermissionsWorkflows { } } } -impl std::convert::TryFrom<&str> for InstallationPermissionsWorkflows { +impl ::std::convert::TryFrom<&str> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsWorkflows { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32925,7 +33370,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationPermissionsWo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationPermissionsWorkflows { +impl ::std::convert::TryFrom<::std::string::String> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -33065,7 +33510,7 @@ pub struct InstallationRepositoriesAdded { pub requester: ::std::option::Option, pub sender: User, } -impl From<&InstallationRepositoriesAdded> for InstallationRepositoriesAdded { +impl ::std::convert::From<&InstallationRepositoriesAdded> for InstallationRepositoriesAdded { fn from(value: &InstallationRepositoriesAdded) -> Self { value.clone() } @@ -33099,7 +33544,9 @@ pub enum InstallationRepositoriesAddedAction { #[serde(rename = "added")] Added, } -impl From<&InstallationRepositoriesAddedAction> for InstallationRepositoriesAddedAction { +impl ::std::convert::From<&InstallationRepositoriesAddedAction> + for InstallationRepositoriesAddedAction +{ fn from(value: &InstallationRepositoriesAddedAction) -> Self { value.clone() } @@ -33111,7 +33558,7 @@ impl ::std::fmt::Display for InstallationRepositoriesAddedAction { } } } -impl std::str::FromStr for InstallationRepositoriesAddedAction { +impl ::std::str::FromStr for InstallationRepositoriesAddedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -33120,13 +33567,13 @@ impl std::str::FromStr for InstallationRepositoriesAddedAction { } } } -impl std::convert::TryFrom<&str> for InstallationRepositoriesAddedAction { +impl ::std::convert::TryFrom<&str> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesAddedAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -33134,7 +33581,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationRepositoriesAddedAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -33192,7 +33639,7 @@ pub struct InstallationRepositoriesAddedRepositoriesAddedItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationRepositoriesAddedRepositoriesAddedItem> +impl ::std::convert::From<&InstallationRepositoriesAddedRepositoriesAddedItem> for InstallationRepositoriesAddedRepositoriesAddedItem { fn from(value: &InstallationRepositoriesAddedRepositoriesAddedItem) -> Self { @@ -33247,13 +33694,24 @@ pub struct InstallationRepositoriesAddedRepositoriesRemovedItem { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub private: ::std::option::Option, } -impl From<&InstallationRepositoriesAddedRepositoriesRemovedItem> +impl ::std::convert::From<&InstallationRepositoriesAddedRepositoriesRemovedItem> for InstallationRepositoriesAddedRepositoriesRemovedItem { fn from(value: &InstallationRepositoriesAddedRepositoriesRemovedItem) -> Self { value.clone() } } +impl ::std::default::Default for InstallationRepositoriesAddedRepositoriesRemovedItem { + fn default() -> Self { + Self { + full_name: Default::default(), + id: Default::default(), + name: Default::default(), + node_id: Default::default(), + private: Default::default(), + } + } +} #[doc = "Describe whether all repositories have been selected or there's a selection involved"] #[doc = r""] #[doc = r"
JSON schema"] @@ -33287,7 +33745,7 @@ pub enum InstallationRepositoriesAddedRepositorySelection { #[serde(rename = "selected")] Selected, } -impl From<&InstallationRepositoriesAddedRepositorySelection> +impl ::std::convert::From<&InstallationRepositoriesAddedRepositorySelection> for InstallationRepositoriesAddedRepositorySelection { fn from(value: &InstallationRepositoriesAddedRepositorySelection) -> Self { @@ -33302,7 +33760,7 @@ impl ::std::fmt::Display for InstallationRepositoriesAddedRepositorySelection { } } } -impl std::str::FromStr for InstallationRepositoriesAddedRepositorySelection { +impl ::std::str::FromStr for InstallationRepositoriesAddedRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -33312,13 +33770,13 @@ impl std::str::FromStr for InstallationRepositoriesAddedRepositorySelection { } } } -impl std::convert::TryFrom<&str> for InstallationRepositoriesAddedRepositorySelection { +impl ::std::convert::TryFrom<&str> for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; @@ -33328,7 +33786,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; @@ -33361,17 +33819,17 @@ pub enum InstallationRepositoriesEvent { Added(InstallationRepositoriesAdded), Removed(InstallationRepositoriesRemoved), } -impl From<&InstallationRepositoriesEvent> for InstallationRepositoriesEvent { +impl ::std::convert::From<&InstallationRepositoriesEvent> for InstallationRepositoriesEvent { fn from(value: &InstallationRepositoriesEvent) -> Self { value.clone() } } -impl From for InstallationRepositoriesEvent { +impl ::std::convert::From for InstallationRepositoriesEvent { fn from(value: InstallationRepositoriesAdded) -> Self { Self::Added(value) } } -impl From for InstallationRepositoriesEvent { +impl ::std::convert::From for InstallationRepositoriesEvent { fn from(value: InstallationRepositoriesRemoved) -> Self { Self::Removed(value) } @@ -33516,7 +33974,7 @@ pub struct InstallationRepositoriesRemoved { pub requester: ::std::option::Option, pub sender: User, } -impl From<&InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved { +impl ::std::convert::From<&InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved { fn from(value: &InstallationRepositoriesRemoved) -> Self { value.clone() } @@ -33550,7 +34008,9 @@ pub enum InstallationRepositoriesRemovedAction { #[serde(rename = "removed")] Removed, } -impl From<&InstallationRepositoriesRemovedAction> for InstallationRepositoriesRemovedAction { +impl ::std::convert::From<&InstallationRepositoriesRemovedAction> + for InstallationRepositoriesRemovedAction +{ fn from(value: &InstallationRepositoriesRemovedAction) -> Self { value.clone() } @@ -33562,7 +34022,7 @@ impl ::std::fmt::Display for InstallationRepositoriesRemovedAction { } } } -impl std::str::FromStr for InstallationRepositoriesRemovedAction { +impl ::std::str::FromStr for InstallationRepositoriesRemovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -33571,13 +34031,13 @@ impl std::str::FromStr for InstallationRepositoriesRemovedAction { } } } -impl std::convert::TryFrom<&str> for InstallationRepositoriesRemovedAction { +impl ::std::convert::TryFrom<&str> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesRemovedAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -33585,7 +34045,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesR value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationRepositoriesRemovedAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -33643,7 +34103,7 @@ pub struct InstallationRepositoriesRemovedRepositoriesAddedItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationRepositoriesRemovedRepositoriesAddedItem> +impl ::std::convert::From<&InstallationRepositoriesRemovedRepositoriesAddedItem> for InstallationRepositoriesRemovedRepositoriesAddedItem { fn from(value: &InstallationRepositoriesRemovedRepositoriesAddedItem) -> Self { @@ -33700,7 +34160,7 @@ pub struct InstallationRepositoriesRemovedRepositoriesRemovedItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationRepositoriesRemovedRepositoriesRemovedItem> +impl ::std::convert::From<&InstallationRepositoriesRemovedRepositoriesRemovedItem> for InstallationRepositoriesRemovedRepositoriesRemovedItem { fn from(value: &InstallationRepositoriesRemovedRepositoriesRemovedItem) -> Self { @@ -33740,7 +34200,7 @@ pub enum InstallationRepositoriesRemovedRepositorySelection { #[serde(rename = "selected")] Selected, } -impl From<&InstallationRepositoriesRemovedRepositorySelection> +impl ::std::convert::From<&InstallationRepositoriesRemovedRepositorySelection> for InstallationRepositoriesRemovedRepositorySelection { fn from(value: &InstallationRepositoriesRemovedRepositorySelection) -> Self { @@ -33755,7 +34215,7 @@ impl ::std::fmt::Display for InstallationRepositoriesRemovedRepositorySelection } } } -impl std::str::FromStr for InstallationRepositoriesRemovedRepositorySelection { +impl ::std::str::FromStr for InstallationRepositoriesRemovedRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -33765,13 +34225,13 @@ impl std::str::FromStr for InstallationRepositoriesRemovedRepositorySelection { } } } -impl std::convert::TryFrom<&str> for InstallationRepositoriesRemovedRepositorySelection { +impl ::std::convert::TryFrom<&str> for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; @@ -33781,7 +34241,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; @@ -33824,7 +34284,7 @@ pub enum InstallationRepositorySelection { #[serde(rename = "selected")] Selected, } -impl From<&InstallationRepositorySelection> for InstallationRepositorySelection { +impl ::std::convert::From<&InstallationRepositorySelection> for InstallationRepositorySelection { fn from(value: &InstallationRepositorySelection) -> Self { value.clone() } @@ -33837,7 +34297,7 @@ impl ::std::fmt::Display for InstallationRepositorySelection { } } } -impl std::str::FromStr for InstallationRepositorySelection { +impl ::std::str::FromStr for InstallationRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -33847,13 +34307,13 @@ impl std::str::FromStr for InstallationRepositorySelection { } } } -impl std::convert::TryFrom<&str> for InstallationRepositorySelection { +impl ::std::convert::TryFrom<&str> for InstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationRepositorySelection { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -33861,7 +34321,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationRepositorySel value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationRepositorySelection { +impl ::std::convert::TryFrom<::std::string::String> for InstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -33972,7 +34432,7 @@ pub struct InstallationSuspend { pub requester: (), pub sender: User, } -impl From<&InstallationSuspend> for InstallationSuspend { +impl ::std::convert::From<&InstallationSuspend> for InstallationSuspend { fn from(value: &InstallationSuspend) -> Self { value.clone() } @@ -34006,7 +34466,7 @@ pub enum InstallationSuspendAction { #[serde(rename = "suspend")] Suspend, } -impl From<&InstallationSuspendAction> for InstallationSuspendAction { +impl ::std::convert::From<&InstallationSuspendAction> for InstallationSuspendAction { fn from(value: &InstallationSuspendAction) -> Self { value.clone() } @@ -34018,7 +34478,7 @@ impl ::std::fmt::Display for InstallationSuspendAction { } } } -impl std::str::FromStr for InstallationSuspendAction { +impl ::std::str::FromStr for InstallationSuspendAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -34027,13 +34487,13 @@ impl std::str::FromStr for InstallationSuspendAction { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendAction { +impl ::std::convert::TryFrom<&str> for InstallationSuspendAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -34041,7 +34501,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationSuspendAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -34109,7 +34569,7 @@ pub struct InstallationSuspendInstallation { pub target_type: InstallationSuspendInstallationTargetType, pub updated_at: InstallationSuspendInstallationUpdatedAt, } -impl From<&InstallationSuspendInstallation> for InstallationSuspendInstallation { +impl ::std::convert::From<&InstallationSuspendInstallation> for InstallationSuspendInstallation { fn from(value: &InstallationSuspendInstallation) -> Self { value.clone() } @@ -34138,12 +34598,14 @@ pub enum InstallationSuspendInstallationCreatedAt { Variant0(chrono::DateTime), Variant1(i64), } -impl From<&InstallationSuspendInstallationCreatedAt> for InstallationSuspendInstallationCreatedAt { +impl ::std::convert::From<&InstallationSuspendInstallationCreatedAt> + for InstallationSuspendInstallationCreatedAt +{ fn from(value: &InstallationSuspendInstallationCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for InstallationSuspendInstallationCreatedAt { +impl ::std::str::FromStr for InstallationSuspendInstallationCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -34155,13 +34617,13 @@ impl std::str::FromStr for InstallationSuspendInstallationCreatedAt { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationCreatedAt { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -34169,7 +34631,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstal value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -34185,12 +34647,14 @@ impl ::std::fmt::Display for InstallationSuspendInstallationCreatedAt { } } } -impl From> for InstallationSuspendInstallationCreatedAt { +impl ::std::convert::From> + for InstallationSuspendInstallationCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } -impl From for InstallationSuspendInstallationCreatedAt { +impl ::std::convert::From for InstallationSuspendInstallationCreatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } @@ -34356,7 +34820,7 @@ pub enum InstallationSuspendInstallationEventsItem { #[serde(rename = "workflow_run")] WorkflowRun, } -impl From<&InstallationSuspendInstallationEventsItem> +impl ::std::convert::From<&InstallationSuspendInstallationEventsItem> for InstallationSuspendInstallationEventsItem { fn from(value: &InstallationSuspendInstallationEventsItem) -> Self { @@ -34414,7 +34878,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationEventsItem { } } } -impl std::str::FromStr for InstallationSuspendInstallationEventsItem { +impl ::std::str::FromStr for InstallationSuspendInstallationEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -34467,13 +34931,13 @@ impl std::str::FromStr for InstallationSuspendInstallationEventsItem { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationEventsItem { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationEventsItem { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -34481,7 +34945,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstal value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationEventsItem { +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -34841,13 +35305,54 @@ pub struct InstallationSuspendInstallationPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } -impl From<&InstallationSuspendInstallationPermissions> +impl ::std::convert::From<&InstallationSuspendInstallationPermissions> for InstallationSuspendInstallationPermissions { fn from(value: &InstallationSuspendInstallationPermissions) -> Self { value.clone() } } +impl ::std::default::Default for InstallationSuspendInstallationPermissions { + fn default() -> Self { + Self { + actions: Default::default(), + administration: Default::default(), + checks: Default::default(), + content_references: Default::default(), + contents: Default::default(), + deployments: Default::default(), + discussions: Default::default(), + emails: Default::default(), + environments: Default::default(), + issues: Default::default(), + members: Default::default(), + metadata: Default::default(), + organization_administration: Default::default(), + organization_events: Default::default(), + organization_hooks: Default::default(), + organization_packages: Default::default(), + organization_plan: Default::default(), + organization_projects: Default::default(), + organization_secrets: Default::default(), + organization_self_hosted_runners: Default::default(), + organization_user_blocking: Default::default(), + packages: Default::default(), + pages: Default::default(), + pull_requests: Default::default(), + repository_hooks: Default::default(), + repository_projects: Default::default(), + secret_scanning_alerts: Default::default(), + secrets: Default::default(), + security_events: Default::default(), + security_scanning_alert: Default::default(), + single_file: Default::default(), + statuses: Default::default(), + team_discussions: Default::default(), + vulnerability_alerts: Default::default(), + workflows: Default::default(), + } + } +} #[doc = "InstallationSuspendInstallationPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] @@ -34880,7 +35385,7 @@ pub enum InstallationSuspendInstallationPermissionsActions { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsActions> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsActions> for InstallationSuspendInstallationPermissionsActions { fn from(value: &InstallationSuspendInstallationPermissionsActions) -> Self { @@ -34895,7 +35400,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsActions { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsActions { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -34905,13 +35410,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsActions { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsActions { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; @@ -34921,7 +35426,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; @@ -34963,7 +35468,7 @@ pub enum InstallationSuspendInstallationPermissionsAdministration { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsAdministration> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsAdministration> for InstallationSuspendInstallationPermissionsAdministration { fn from(value: &InstallationSuspendInstallationPermissionsAdministration) -> Self { @@ -34978,7 +35483,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsAdministr } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsAdministration { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -34988,13 +35493,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsAdministrat } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsAdministration { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; @@ -35004,7 +35509,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; @@ -35046,7 +35551,7 @@ pub enum InstallationSuspendInstallationPermissionsChecks { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsChecks> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsChecks> for InstallationSuspendInstallationPermissionsChecks { fn from(value: &InstallationSuspendInstallationPermissionsChecks) -> Self { @@ -35061,7 +35566,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsChecks { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsChecks { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35071,13 +35576,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsChecks { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsChecks { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; @@ -35087,7 +35592,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; @@ -35129,7 +35634,7 @@ pub enum InstallationSuspendInstallationPermissionsContentReferences { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsContentReferences> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsContentReferences> for InstallationSuspendInstallationPermissionsContentReferences { fn from(value: &InstallationSuspendInstallationPermissionsContentReferences) -> Self { @@ -35144,7 +35649,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsContentRe } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsContentReferences { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35154,13 +35659,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsContentRefe } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContentReferences { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; @@ -35170,7 +35675,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; @@ -35212,7 +35717,7 @@ pub enum InstallationSuspendInstallationPermissionsContents { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsContents> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsContents> for InstallationSuspendInstallationPermissionsContents { fn from(value: &InstallationSuspendInstallationPermissionsContents) -> Self { @@ -35227,7 +35732,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsContents } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsContents { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35237,13 +35742,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsContents { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContents { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; @@ -35253,7 +35758,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; @@ -35295,7 +35800,7 @@ pub enum InstallationSuspendInstallationPermissionsDeployments { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsDeployments> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsDeployments> for InstallationSuspendInstallationPermissionsDeployments { fn from(value: &InstallationSuspendInstallationPermissionsDeployments) -> Self { @@ -35310,7 +35815,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsDeploymen } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsDeployments { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35320,13 +35825,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsDeployments } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDeployments { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; @@ -35336,7 +35841,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; @@ -35378,7 +35883,7 @@ pub enum InstallationSuspendInstallationPermissionsDiscussions { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsDiscussions> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsDiscussions> for InstallationSuspendInstallationPermissionsDiscussions { fn from(value: &InstallationSuspendInstallationPermissionsDiscussions) -> Self { @@ -35393,7 +35898,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsDiscussio } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsDiscussions { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35403,13 +35908,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsDiscussions } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDiscussions { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; @@ -35419,7 +35924,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; @@ -35461,7 +35966,7 @@ pub enum InstallationSuspendInstallationPermissionsEmails { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsEmails> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsEmails> for InstallationSuspendInstallationPermissionsEmails { fn from(value: &InstallationSuspendInstallationPermissionsEmails) -> Self { @@ -35476,7 +35981,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsEmails { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsEmails { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35486,13 +35991,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsEmails { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEmails { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; @@ -35502,7 +36007,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; @@ -35544,7 +36049,7 @@ pub enum InstallationSuspendInstallationPermissionsEnvironments { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsEnvironments> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsEnvironments> for InstallationSuspendInstallationPermissionsEnvironments { fn from(value: &InstallationSuspendInstallationPermissionsEnvironments) -> Self { @@ -35559,7 +36064,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsEnvironme } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsEnvironments { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35569,13 +36074,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsEnvironment } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEnvironments { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; @@ -35585,7 +36090,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; @@ -35627,7 +36132,7 @@ pub enum InstallationSuspendInstallationPermissionsIssues { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsIssues> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsIssues> for InstallationSuspendInstallationPermissionsIssues { fn from(value: &InstallationSuspendInstallationPermissionsIssues) -> Self { @@ -35642,7 +36147,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsIssues { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsIssues { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35652,13 +36157,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsIssues { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsIssues { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; @@ -35668,7 +36173,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; @@ -35710,7 +36215,7 @@ pub enum InstallationSuspendInstallationPermissionsMembers { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsMembers> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsMembers> for InstallationSuspendInstallationPermissionsMembers { fn from(value: &InstallationSuspendInstallationPermissionsMembers) -> Self { @@ -35725,7 +36230,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsMembers { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsMembers { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35735,13 +36240,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsMembers { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMembers { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; @@ -35751,7 +36256,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; @@ -35793,7 +36298,7 @@ pub enum InstallationSuspendInstallationPermissionsMetadata { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsMetadata> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsMetadata> for InstallationSuspendInstallationPermissionsMetadata { fn from(value: &InstallationSuspendInstallationPermissionsMetadata) -> Self { @@ -35808,7 +36313,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsMetadata } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsMetadata { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35818,13 +36323,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsMetadata { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMetadata { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; @@ -35834,7 +36339,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; @@ -35876,7 +36381,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationAdministration { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationAdministration> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationAdministration> for InstallationSuspendInstallationPermissionsOrganizationAdministration { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationAdministration) -> Self { @@ -35891,7 +36396,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationAdministration { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35901,7 +36406,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -35909,7 +36414,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -35919,7 +36424,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -35961,7 +36466,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationEvents { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationEvents> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationEvents> for InstallationSuspendInstallationPermissionsOrganizationEvents { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationEvents) -> Self { @@ -35976,7 +36481,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationEvents { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -35986,13 +36491,15 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationEvents { +impl ::std::convert::TryFrom<&str> + for InstallationSuspendInstallationPermissionsOrganizationEvents +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; @@ -36002,7 +36509,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; @@ -36044,7 +36551,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationHooks { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationHooks> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationHooks> for InstallationSuspendInstallationPermissionsOrganizationHooks { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationHooks) -> Self { @@ -36059,7 +36566,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationHooks { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36069,13 +36576,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; @@ -36085,7 +36592,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; @@ -36127,7 +36634,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationPackages { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationPackages> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationPackages> for InstallationSuspendInstallationPermissionsOrganizationPackages { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationPackages) -> Self { @@ -36142,7 +36649,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPackages { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36152,7 +36659,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; @@ -36160,7 +36667,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; @@ -36170,7 +36677,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; @@ -36212,7 +36719,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationPlan { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationPlan> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationPlan> for InstallationSuspendInstallationPermissionsOrganizationPlan { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationPlan) -> Self { @@ -36227,7 +36734,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPlan { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36237,13 +36744,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; @@ -36253,7 +36760,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; @@ -36295,7 +36802,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationProjects { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationProjects> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationProjects> for InstallationSuspendInstallationPermissionsOrganizationProjects { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationProjects) -> Self { @@ -36310,7 +36817,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationProjects { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36320,7 +36827,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; @@ -36328,7 +36835,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; @@ -36338,7 +36845,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; @@ -36380,7 +36887,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationSecrets { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationSecrets> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationSecrets> for InstallationSuspendInstallationPermissionsOrganizationSecrets { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationSecrets) -> Self { @@ -36395,7 +36902,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSecrets { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36405,13 +36912,15 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationSecrets { +impl ::std::convert::TryFrom<&str> + for InstallationSuspendInstallationPermissionsOrganizationSecrets +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; @@ -36421,7 +36930,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; @@ -36463,7 +36972,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { fn from( @@ -36482,7 +36991,9 @@ impl ::std::fmt::Display } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { +impl ::std::str::FromStr + for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners +{ type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36492,7 +37003,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -36500,7 +37011,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -36510,7 +37021,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -36552,7 +37063,7 @@ pub enum InstallationSuspendInstallationPermissionsOrganizationUserBlocking { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsOrganizationUserBlocking> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsOrganizationUserBlocking> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationUserBlocking) -> Self { @@ -36567,7 +37078,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizat } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36577,7 +37088,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizatio } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -36585,7 +37096,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -36595,7 +37106,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -36637,7 +37148,7 @@ pub enum InstallationSuspendInstallationPermissionsPackages { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsPackages> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsPackages> for InstallationSuspendInstallationPermissionsPackages { fn from(value: &InstallationSuspendInstallationPermissionsPackages) -> Self { @@ -36652,7 +37163,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPackages } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsPackages { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36662,13 +37173,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsPackages { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPackages { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; @@ -36678,7 +37189,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; @@ -36720,7 +37231,7 @@ pub enum InstallationSuspendInstallationPermissionsPages { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsPages> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsPages> for InstallationSuspendInstallationPermissionsPages { fn from(value: &InstallationSuspendInstallationPermissionsPages) -> Self { @@ -36735,7 +37246,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPages { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsPages { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36745,13 +37256,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsPages { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPages { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; @@ -36761,7 +37272,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; @@ -36803,7 +37314,7 @@ pub enum InstallationSuspendInstallationPermissionsPullRequests { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsPullRequests> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsPullRequests> for InstallationSuspendInstallationPermissionsPullRequests { fn from(value: &InstallationSuspendInstallationPermissionsPullRequests) -> Self { @@ -36818,7 +37329,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPullReque } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsPullRequests { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36828,13 +37339,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsPullRequest } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPullRequests { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; @@ -36844,7 +37355,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; @@ -36886,7 +37397,7 @@ pub enum InstallationSuspendInstallationPermissionsRepositoryHooks { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsRepositoryHooks> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsRepositoryHooks> for InstallationSuspendInstallationPermissionsRepositoryHooks { fn from(value: &InstallationSuspendInstallationPermissionsRepositoryHooks) -> Self { @@ -36901,7 +37412,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsRepositor } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryHooks { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36911,13 +37422,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryH } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; @@ -36927,7 +37438,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; @@ -36969,7 +37480,7 @@ pub enum InstallationSuspendInstallationPermissionsRepositoryProjects { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsRepositoryProjects> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsRepositoryProjects> for InstallationSuspendInstallationPermissionsRepositoryProjects { fn from(value: &InstallationSuspendInstallationPermissionsRepositoryProjects) -> Self { @@ -36984,7 +37495,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsRepositor } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryProjects { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36994,13 +37505,15 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryP } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryProjects { +impl ::std::convert::TryFrom<&str> + for InstallationSuspendInstallationPermissionsRepositoryProjects +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; @@ -37010,7 +37523,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; @@ -37052,7 +37565,7 @@ pub enum InstallationSuspendInstallationPermissionsSecretScanningAlerts { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsSecretScanningAlerts> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsSecretScanningAlerts> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { fn from(value: &InstallationSuspendInstallationPermissionsSecretScanningAlerts) -> Self { @@ -37067,7 +37580,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecretSca } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecretScanningAlerts { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37077,7 +37590,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecretScann } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; @@ -37085,7 +37598,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; @@ -37095,7 +37608,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; @@ -37137,7 +37650,7 @@ pub enum InstallationSuspendInstallationPermissionsSecrets { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsSecrets> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsSecrets> for InstallationSuspendInstallationPermissionsSecrets { fn from(value: &InstallationSuspendInstallationPermissionsSecrets) -> Self { @@ -37152,7 +37665,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecrets { } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecrets { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37162,13 +37675,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecrets { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecrets { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; @@ -37178,7 +37691,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; @@ -37220,7 +37733,7 @@ pub enum InstallationSuspendInstallationPermissionsSecurityEvents { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsSecurityEvents> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsSecurityEvents> for InstallationSuspendInstallationPermissionsSecurityEvents { fn from(value: &InstallationSuspendInstallationPermissionsSecurityEvents) -> Self { @@ -37235,7 +37748,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecurityE } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityEvents { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37245,13 +37758,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityEve } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityEvents { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; @@ -37261,7 +37774,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; @@ -37303,7 +37816,7 @@ pub enum InstallationSuspendInstallationPermissionsSecurityScanningAlert { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsSecurityScanningAlert> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsSecurityScanningAlert> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { fn from(value: &InstallationSuspendInstallationPermissionsSecurityScanningAlert) -> Self { @@ -37318,7 +37831,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecurityS } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityScanningAlert { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37328,7 +37841,7 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecuritySca } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -37336,7 +37849,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -37346,7 +37859,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -37388,7 +37901,7 @@ pub enum InstallationSuspendInstallationPermissionsSingleFile { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsSingleFile> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsSingleFile> for InstallationSuspendInstallationPermissionsSingleFile { fn from(value: &InstallationSuspendInstallationPermissionsSingleFile) -> Self { @@ -37403,7 +37916,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSingleFil } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsSingleFile { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37413,13 +37926,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsSingleFile } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSingleFile { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; @@ -37429,7 +37942,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; @@ -37471,7 +37984,7 @@ pub enum InstallationSuspendInstallationPermissionsStatuses { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsStatuses> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsStatuses> for InstallationSuspendInstallationPermissionsStatuses { fn from(value: &InstallationSuspendInstallationPermissionsStatuses) -> Self { @@ -37486,7 +37999,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsStatuses } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsStatuses { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37496,13 +38009,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsStatuses { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsStatuses { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; @@ -37512,7 +38025,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; @@ -37554,7 +38067,7 @@ pub enum InstallationSuspendInstallationPermissionsTeamDiscussions { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsTeamDiscussions> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsTeamDiscussions> for InstallationSuspendInstallationPermissionsTeamDiscussions { fn from(value: &InstallationSuspendInstallationPermissionsTeamDiscussions) -> Self { @@ -37569,7 +38082,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsTeamDiscu } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsTeamDiscussions { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37579,13 +38092,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsTeamDiscuss } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; @@ -37595,7 +38108,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; @@ -37637,7 +38150,7 @@ pub enum InstallationSuspendInstallationPermissionsVulnerabilityAlerts { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsVulnerabilityAlerts> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsVulnerabilityAlerts> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { fn from(value: &InstallationSuspendInstallationPermissionsVulnerabilityAlerts) -> Self { @@ -37652,7 +38165,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsVulnerabi } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37662,13 +38175,15 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsVulnerabili } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { +impl ::std::convert::TryFrom<&str> + for InstallationSuspendInstallationPermissionsVulnerabilityAlerts +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; @@ -37678,7 +38193,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; @@ -37720,7 +38235,7 @@ pub enum InstallationSuspendInstallationPermissionsWorkflows { #[serde(rename = "write")] Write, } -impl From<&InstallationSuspendInstallationPermissionsWorkflows> +impl ::std::convert::From<&InstallationSuspendInstallationPermissionsWorkflows> for InstallationSuspendInstallationPermissionsWorkflows { fn from(value: &InstallationSuspendInstallationPermissionsWorkflows) -> Self { @@ -37735,7 +38250,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsWorkflows } } } -impl std::str::FromStr for InstallationSuspendInstallationPermissionsWorkflows { +impl ::std::str::FromStr for InstallationSuspendInstallationPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37745,13 +38260,13 @@ impl std::str::FromStr for InstallationSuspendInstallationPermissionsWorkflows { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsWorkflows { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; @@ -37761,7 +38276,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; @@ -37804,7 +38319,7 @@ pub enum InstallationSuspendInstallationRepositorySelection { #[serde(rename = "selected")] Selected, } -impl From<&InstallationSuspendInstallationRepositorySelection> +impl ::std::convert::From<&InstallationSuspendInstallationRepositorySelection> for InstallationSuspendInstallationRepositorySelection { fn from(value: &InstallationSuspendInstallationRepositorySelection) -> Self { @@ -37819,7 +38334,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationRepositorySelection } } } -impl std::str::FromStr for InstallationSuspendInstallationRepositorySelection { +impl ::std::str::FromStr for InstallationSuspendInstallationRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37829,13 +38344,13 @@ impl std::str::FromStr for InstallationSuspendInstallationRepositorySelection { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationRepositorySelection { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; @@ -37845,7 +38360,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; @@ -38007,7 +38522,7 @@ pub struct InstallationSuspendInstallationSuspendedBy { pub type_: InstallationSuspendInstallationSuspendedByType, pub url: ::std::string::String, } -impl From<&InstallationSuspendInstallationSuspendedBy> +impl ::std::convert::From<&InstallationSuspendInstallationSuspendedBy> for InstallationSuspendInstallationSuspendedBy { fn from(value: &InstallationSuspendInstallationSuspendedBy) -> Self { @@ -38046,7 +38561,7 @@ pub enum InstallationSuspendInstallationSuspendedByType { User, Organization, } -impl From<&InstallationSuspendInstallationSuspendedByType> +impl ::std::convert::From<&InstallationSuspendInstallationSuspendedByType> for InstallationSuspendInstallationSuspendedByType { fn from(value: &InstallationSuspendInstallationSuspendedByType) -> Self { @@ -38062,7 +38577,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationSuspendedByType { } } } -impl std::str::FromStr for InstallationSuspendInstallationSuspendedByType { +impl ::std::str::FromStr for InstallationSuspendInstallationSuspendedByType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -38073,13 +38588,13 @@ impl std::str::FromStr for InstallationSuspendInstallationSuspendedByType { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationSuspendedByType { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; @@ -38089,7 +38604,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; @@ -38129,7 +38644,7 @@ pub enum InstallationSuspendInstallationTargetType { User, Organization, } -impl From<&InstallationSuspendInstallationTargetType> +impl ::std::convert::From<&InstallationSuspendInstallationTargetType> for InstallationSuspendInstallationTargetType { fn from(value: &InstallationSuspendInstallationTargetType) -> Self { @@ -38144,7 +38659,7 @@ impl ::std::fmt::Display for InstallationSuspendInstallationTargetType { } } } -impl std::str::FromStr for InstallationSuspendInstallationTargetType { +impl ::std::str::FromStr for InstallationSuspendInstallationTargetType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -38154,13 +38669,13 @@ impl std::str::FromStr for InstallationSuspendInstallationTargetType { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationTargetType { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationTargetType { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38168,7 +38683,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstal value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationTargetType { +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -38200,12 +38715,14 @@ pub enum InstallationSuspendInstallationUpdatedAt { Variant0(chrono::DateTime), Variant1(i64), } -impl From<&InstallationSuspendInstallationUpdatedAt> for InstallationSuspendInstallationUpdatedAt { +impl ::std::convert::From<&InstallationSuspendInstallationUpdatedAt> + for InstallationSuspendInstallationUpdatedAt +{ fn from(value: &InstallationSuspendInstallationUpdatedAt) -> Self { value.clone() } } -impl std::str::FromStr for InstallationSuspendInstallationUpdatedAt { +impl ::std::str::FromStr for InstallationSuspendInstallationUpdatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -38217,13 +38734,13 @@ impl std::str::FromStr for InstallationSuspendInstallationUpdatedAt { } } } -impl std::convert::TryFrom<&str> for InstallationSuspendInstallationUpdatedAt { +impl ::std::convert::TryFrom<&str> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationUpdatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38231,7 +38748,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationSuspendInstal value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationUpdatedAt { +impl ::std::convert::TryFrom<::std::string::String> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -38247,12 +38764,14 @@ impl ::std::fmt::Display for InstallationSuspendInstallationUpdatedAt { } } } -impl From> for InstallationSuspendInstallationUpdatedAt { +impl ::std::convert::From> + for InstallationSuspendInstallationUpdatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } -impl From for InstallationSuspendInstallationUpdatedAt { +impl ::std::convert::From for InstallationSuspendInstallationUpdatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } @@ -38307,7 +38826,9 @@ pub struct InstallationSuspendRepositoriesItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationSuspendRepositoriesItem> for InstallationSuspendRepositoriesItem { +impl ::std::convert::From<&InstallationSuspendRepositoriesItem> + for InstallationSuspendRepositoriesItem +{ fn from(value: &InstallationSuspendRepositoriesItem) -> Self { value.clone() } @@ -38342,7 +38863,7 @@ pub enum InstallationTargetType { User, Organization, } -impl From<&InstallationTargetType> for InstallationTargetType { +impl ::std::convert::From<&InstallationTargetType> for InstallationTargetType { fn from(value: &InstallationTargetType) -> Self { value.clone() } @@ -38355,7 +38876,7 @@ impl ::std::fmt::Display for InstallationTargetType { } } } -impl std::str::FromStr for InstallationTargetType { +impl ::std::str::FromStr for InstallationTargetType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -38365,13 +38886,13 @@ impl std::str::FromStr for InstallationTargetType { } } } -impl std::convert::TryFrom<&str> for InstallationTargetType { +impl ::std::convert::TryFrom<&str> for InstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationTargetType { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationTargetType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38379,7 +38900,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationTargetType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationTargetType { +impl ::std::convert::TryFrom<::std::string::String> for InstallationTargetType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -38489,7 +39010,7 @@ pub struct InstallationUnsuspend { pub requester: (), pub sender: User, } -impl From<&InstallationUnsuspend> for InstallationUnsuspend { +impl ::std::convert::From<&InstallationUnsuspend> for InstallationUnsuspend { fn from(value: &InstallationUnsuspend) -> Self { value.clone() } @@ -38523,7 +39044,7 @@ pub enum InstallationUnsuspendAction { #[serde(rename = "unsuspend")] Unsuspend, } -impl From<&InstallationUnsuspendAction> for InstallationUnsuspendAction { +impl ::std::convert::From<&InstallationUnsuspendAction> for InstallationUnsuspendAction { fn from(value: &InstallationUnsuspendAction) -> Self { value.clone() } @@ -38535,7 +39056,7 @@ impl ::std::fmt::Display for InstallationUnsuspendAction { } } } -impl std::str::FromStr for InstallationUnsuspendAction { +impl ::std::str::FromStr for InstallationUnsuspendAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -38544,13 +39065,13 @@ impl std::str::FromStr for InstallationUnsuspendAction { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendAction { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendAction { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38558,7 +39079,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendAction { +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -38625,7 +39146,9 @@ pub struct InstallationUnsuspendInstallation { pub target_type: InstallationUnsuspendInstallationTargetType, pub updated_at: InstallationUnsuspendInstallationUpdatedAt, } -impl From<&InstallationUnsuspendInstallation> for InstallationUnsuspendInstallation { +impl ::std::convert::From<&InstallationUnsuspendInstallation> + for InstallationUnsuspendInstallation +{ fn from(value: &InstallationUnsuspendInstallation) -> Self { value.clone() } @@ -38654,14 +39177,14 @@ pub enum InstallationUnsuspendInstallationCreatedAt { Variant0(chrono::DateTime), Variant1(i64), } -impl From<&InstallationUnsuspendInstallationCreatedAt> +impl ::std::convert::From<&InstallationUnsuspendInstallationCreatedAt> for InstallationUnsuspendInstallationCreatedAt { fn from(value: &InstallationUnsuspendInstallationCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for InstallationUnsuspendInstallationCreatedAt { +impl ::std::str::FromStr for InstallationUnsuspendInstallationCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -38673,13 +39196,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationCreatedAt { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationCreatedAt { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationCreatedAt +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38687,7 +39212,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInst value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -38703,12 +39228,14 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationCreatedAt { } } } -impl From> for InstallationUnsuspendInstallationCreatedAt { +impl ::std::convert::From> + for InstallationUnsuspendInstallationCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } -impl From for InstallationUnsuspendInstallationCreatedAt { +impl ::std::convert::From for InstallationUnsuspendInstallationCreatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } @@ -38874,7 +39401,7 @@ pub enum InstallationUnsuspendInstallationEventsItem { #[serde(rename = "workflow_run")] WorkflowRun, } -impl From<&InstallationUnsuspendInstallationEventsItem> +impl ::std::convert::From<&InstallationUnsuspendInstallationEventsItem> for InstallationUnsuspendInstallationEventsItem { fn from(value: &InstallationUnsuspendInstallationEventsItem) -> Self { @@ -38932,7 +39459,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationEventsItem { } } } -impl std::str::FromStr for InstallationUnsuspendInstallationEventsItem { +impl ::std::str::FromStr for InstallationUnsuspendInstallationEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -38985,13 +39512,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationEventsItem { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationEventsItem { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationEventsItem { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationEventsItem +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38999,7 +39528,9 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInst value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationEventsItem { +impl ::std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationEventsItem +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -39361,13 +39892,54 @@ pub struct InstallationUnsuspendInstallationPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } -impl From<&InstallationUnsuspendInstallationPermissions> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissions> for InstallationUnsuspendInstallationPermissions { fn from(value: &InstallationUnsuspendInstallationPermissions) -> Self { value.clone() } } +impl ::std::default::Default for InstallationUnsuspendInstallationPermissions { + fn default() -> Self { + Self { + actions: Default::default(), + administration: Default::default(), + checks: Default::default(), + content_references: Default::default(), + contents: Default::default(), + deployments: Default::default(), + discussions: Default::default(), + emails: Default::default(), + environments: Default::default(), + issues: Default::default(), + members: Default::default(), + metadata: Default::default(), + organization_administration: Default::default(), + organization_events: Default::default(), + organization_hooks: Default::default(), + organization_packages: Default::default(), + organization_plan: Default::default(), + organization_projects: Default::default(), + organization_secrets: Default::default(), + organization_self_hosted_runners: Default::default(), + organization_user_blocking: Default::default(), + packages: Default::default(), + pages: Default::default(), + pull_requests: Default::default(), + repository_hooks: Default::default(), + repository_projects: Default::default(), + secret_scanning_alerts: Default::default(), + secrets: Default::default(), + security_events: Default::default(), + security_scanning_alert: Default::default(), + single_file: Default::default(), + statuses: Default::default(), + team_discussions: Default::default(), + vulnerability_alerts: Default::default(), + workflows: Default::default(), + } + } +} #[doc = "InstallationUnsuspendInstallationPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] @@ -39400,7 +39972,7 @@ pub enum InstallationUnsuspendInstallationPermissionsActions { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsActions> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsActions> for InstallationUnsuspendInstallationPermissionsActions { fn from(value: &InstallationUnsuspendInstallationPermissionsActions) -> Self { @@ -39415,7 +39987,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsActions } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsActions { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39425,13 +39997,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsActions { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsActions { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; @@ -39441,7 +40013,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; @@ -39483,7 +40055,7 @@ pub enum InstallationUnsuspendInstallationPermissionsAdministration { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsAdministration> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsAdministration> for InstallationUnsuspendInstallationPermissionsAdministration { fn from(value: &InstallationUnsuspendInstallationPermissionsAdministration) -> Self { @@ -39498,7 +40070,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsAdminis } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsAdministration { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39508,13 +40080,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsAdministr } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsAdministration { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; @@ -39524,7 +40096,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; @@ -39566,7 +40138,7 @@ pub enum InstallationUnsuspendInstallationPermissionsChecks { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsChecks> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsChecks> for InstallationUnsuspendInstallationPermissionsChecks { fn from(value: &InstallationUnsuspendInstallationPermissionsChecks) -> Self { @@ -39581,7 +40153,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsChecks } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsChecks { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39591,13 +40163,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsChecks { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsChecks { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; @@ -39607,7 +40179,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; @@ -39649,7 +40221,7 @@ pub enum InstallationUnsuspendInstallationPermissionsContentReferences { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsContentReferences> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsContentReferences> for InstallationUnsuspendInstallationPermissionsContentReferences { fn from(value: &InstallationUnsuspendInstallationPermissionsContentReferences) -> Self { @@ -39664,7 +40236,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsContent } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContentReferences { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39674,13 +40246,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContentRe } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContentReferences { +impl ::std::convert::TryFrom<&str> + for InstallationUnsuspendInstallationPermissionsContentReferences +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; @@ -39690,7 +40264,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; @@ -39732,7 +40306,7 @@ pub enum InstallationUnsuspendInstallationPermissionsContents { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsContents> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsContents> for InstallationUnsuspendInstallationPermissionsContents { fn from(value: &InstallationUnsuspendInstallationPermissionsContents) -> Self { @@ -39747,7 +40321,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsContent } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContents { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39757,13 +40331,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContents } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContents { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; @@ -39773,7 +40347,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; @@ -39815,7 +40389,7 @@ pub enum InstallationUnsuspendInstallationPermissionsDeployments { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsDeployments> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsDeployments> for InstallationUnsuspendInstallationPermissionsDeployments { fn from(value: &InstallationUnsuspendInstallationPermissionsDeployments) -> Self { @@ -39830,7 +40404,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsDeploym } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDeployments { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39840,13 +40414,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDeploymen } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDeployments { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; @@ -39856,7 +40430,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; @@ -39898,7 +40472,7 @@ pub enum InstallationUnsuspendInstallationPermissionsDiscussions { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsDiscussions> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsDiscussions> for InstallationUnsuspendInstallationPermissionsDiscussions { fn from(value: &InstallationUnsuspendInstallationPermissionsDiscussions) -> Self { @@ -39913,7 +40487,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsDiscuss } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDiscussions { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -39923,13 +40497,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDiscussio } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDiscussions { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; @@ -39939,7 +40513,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; @@ -39981,7 +40555,7 @@ pub enum InstallationUnsuspendInstallationPermissionsEmails { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsEmails> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsEmails> for InstallationUnsuspendInstallationPermissionsEmails { fn from(value: &InstallationUnsuspendInstallationPermissionsEmails) -> Self { @@ -39996,7 +40570,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsEmails } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEmails { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40006,13 +40580,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEmails { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEmails { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; @@ -40022,7 +40596,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; @@ -40064,7 +40638,7 @@ pub enum InstallationUnsuspendInstallationPermissionsEnvironments { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsEnvironments> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsEnvironments> for InstallationUnsuspendInstallationPermissionsEnvironments { fn from(value: &InstallationUnsuspendInstallationPermissionsEnvironments) -> Self { @@ -40079,7 +40653,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsEnviron } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEnvironments { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40089,13 +40663,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEnvironme } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEnvironments { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; @@ -40105,7 +40679,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; @@ -40147,7 +40721,7 @@ pub enum InstallationUnsuspendInstallationPermissionsIssues { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsIssues> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsIssues> for InstallationUnsuspendInstallationPermissionsIssues { fn from(value: &InstallationUnsuspendInstallationPermissionsIssues) -> Self { @@ -40162,7 +40736,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsIssues } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsIssues { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40172,13 +40746,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsIssues { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsIssues { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; @@ -40188,7 +40762,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; @@ -40230,7 +40804,7 @@ pub enum InstallationUnsuspendInstallationPermissionsMembers { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsMembers> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsMembers> for InstallationUnsuspendInstallationPermissionsMembers { fn from(value: &InstallationUnsuspendInstallationPermissionsMembers) -> Self { @@ -40245,7 +40819,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsMembers } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMembers { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40255,13 +40829,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMembers { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMembers { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; @@ -40271,7 +40845,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; @@ -40313,7 +40887,7 @@ pub enum InstallationUnsuspendInstallationPermissionsMetadata { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsMetadata> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsMetadata> for InstallationUnsuspendInstallationPermissionsMetadata { fn from(value: &InstallationUnsuspendInstallationPermissionsMetadata) -> Self { @@ -40328,7 +40902,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsMetadat } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMetadata { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40338,13 +40912,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMetadata } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMetadata { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; @@ -40354,7 +40928,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; @@ -40396,7 +40970,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationAdministration #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationAdministration> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationAdministration> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { fn from( @@ -40415,7 +40989,9 @@ impl ::std::fmt::Display } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { +impl ::std::str::FromStr + for InstallationUnsuspendInstallationPermissionsOrganizationAdministration +{ type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40425,7 +41001,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -40433,7 +41009,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -40443,7 +41019,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; @@ -40485,7 +41061,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationEvents { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationEvents> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationEvents> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationEvents) -> Self { @@ -40500,7 +41076,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationEvents { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40510,7 +41086,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; @@ -40518,7 +41094,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; @@ -40528,7 +41104,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; @@ -40570,7 +41146,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationHooks { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationHooks> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationHooks> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationHooks) -> Self { @@ -40585,7 +41161,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationHooks { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40595,13 +41171,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { +impl ::std::convert::TryFrom<&str> + for InstallationUnsuspendInstallationPermissionsOrganizationHooks +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; @@ -40611,7 +41189,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; @@ -40653,7 +41231,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationPackages { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationPackages> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationPackages> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationPackages) -> Self { @@ -40668,7 +41246,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPackages { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40678,7 +41256,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; @@ -40686,7 +41264,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; @@ -40696,7 +41274,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; @@ -40738,7 +41316,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationPlan { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationPlan> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationPlan> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationPlan) -> Self { @@ -40753,7 +41331,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPlan { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40763,13 +41341,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { +impl ::std::convert::TryFrom<&str> + for InstallationUnsuspendInstallationPermissionsOrganizationPlan +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; @@ -40779,7 +41359,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; @@ -40821,7 +41401,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationProjects { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationProjects> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationProjects> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationProjects) -> Self { @@ -40836,7 +41416,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationProjects { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40846,7 +41426,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; @@ -40854,7 +41434,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; @@ -40864,7 +41444,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; @@ -40906,7 +41486,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationSecrets { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationSecrets> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationSecrets> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationSecrets) -> Self { @@ -40921,7 +41501,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -40931,7 +41511,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; @@ -40939,7 +41519,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; @@ -40949,7 +41529,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; @@ -40991,7 +41571,8 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunne #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners> +impl + ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { fn from( @@ -41010,7 +41591,7 @@ impl ::std::fmt::Display } } } -impl std::str::FromStr +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; @@ -41022,7 +41603,7 @@ impl std::str::FromStr } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -41030,7 +41611,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -41040,7 +41621,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; @@ -41082,7 +41663,7 @@ pub enum InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking) -> Self { @@ -41097,7 +41678,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganiz } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41107,7 +41688,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizat } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -41115,7 +41696,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -41125,7 +41706,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; @@ -41167,7 +41748,7 @@ pub enum InstallationUnsuspendInstallationPermissionsPackages { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsPackages> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsPackages> for InstallationUnsuspendInstallationPermissionsPackages { fn from(value: &InstallationUnsuspendInstallationPermissionsPackages) -> Self { @@ -41182,7 +41763,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPackage } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPackages { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41192,13 +41773,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPackages } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPackages { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; @@ -41208,7 +41789,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; @@ -41250,7 +41831,7 @@ pub enum InstallationUnsuspendInstallationPermissionsPages { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsPages> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsPages> for InstallationUnsuspendInstallationPermissionsPages { fn from(value: &InstallationUnsuspendInstallationPermissionsPages) -> Self { @@ -41265,7 +41846,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPages { } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPages { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41275,13 +41856,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPages { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPages { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; @@ -41291,7 +41872,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; @@ -41333,7 +41914,7 @@ pub enum InstallationUnsuspendInstallationPermissionsPullRequests { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsPullRequests> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsPullRequests> for InstallationUnsuspendInstallationPermissionsPullRequests { fn from(value: &InstallationUnsuspendInstallationPermissionsPullRequests) -> Self { @@ -41348,7 +41929,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPullReq } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPullRequests { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41358,13 +41939,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPullReque } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPullRequests { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; @@ -41374,7 +41955,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; @@ -41416,7 +41997,7 @@ pub enum InstallationUnsuspendInstallationPermissionsRepositoryHooks { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsRepositoryHooks> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsRepositoryHooks> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { fn from(value: &InstallationUnsuspendInstallationPermissionsRepositoryHooks) -> Self { @@ -41431,7 +42012,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsReposit } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryHooks { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41441,13 +42022,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositor } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; @@ -41457,7 +42038,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; @@ -41499,7 +42080,7 @@ pub enum InstallationUnsuspendInstallationPermissionsRepositoryProjects { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsRepositoryProjects> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsRepositoryProjects> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { fn from(value: &InstallationUnsuspendInstallationPermissionsRepositoryProjects) -> Self { @@ -41514,7 +42095,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsReposit } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryProjects { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41524,7 +42105,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositor } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; @@ -41532,7 +42113,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; @@ -41542,7 +42123,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; @@ -41584,7 +42165,7 @@ pub enum InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsSecretScanningAlerts> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsSecretScanningAlerts> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { fn from(value: &InstallationUnsuspendInstallationPermissionsSecretScanningAlerts) -> Self { @@ -41599,7 +42180,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecretS } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41609,7 +42190,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecretSca } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; @@ -41617,7 +42198,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; @@ -41627,7 +42208,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; @@ -41669,7 +42250,7 @@ pub enum InstallationUnsuspendInstallationPermissionsSecrets { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsSecrets> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsSecrets> for InstallationUnsuspendInstallationPermissionsSecrets { fn from(value: &InstallationUnsuspendInstallationPermissionsSecrets) -> Self { @@ -41684,7 +42265,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecrets } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecrets { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41694,13 +42275,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecrets { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecrets { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; @@ -41710,7 +42291,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; @@ -41752,7 +42333,7 @@ pub enum InstallationUnsuspendInstallationPermissionsSecurityEvents { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsSecurityEvents> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsSecurityEvents> for InstallationUnsuspendInstallationPermissionsSecurityEvents { fn from(value: &InstallationUnsuspendInstallationPermissionsSecurityEvents) -> Self { @@ -41767,7 +42348,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecurit } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityEvents { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41777,13 +42358,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityE } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityEvents { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; @@ -41793,7 +42374,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; @@ -41835,7 +42416,7 @@ pub enum InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsSecurityScanningAlert> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsSecurityScanningAlert> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { fn from(value: &InstallationUnsuspendInstallationPermissionsSecurityScanningAlert) -> Self { @@ -41850,7 +42431,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecurit } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41860,7 +42441,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityS } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -41868,7 +42449,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -41878,7 +42459,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; @@ -41920,7 +42501,7 @@ pub enum InstallationUnsuspendInstallationPermissionsSingleFile { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsSingleFile> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsSingleFile> for InstallationUnsuspendInstallationPermissionsSingleFile { fn from(value: &InstallationUnsuspendInstallationPermissionsSingleFile) -> Self { @@ -41935,7 +42516,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSingleF } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSingleFile { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -41945,13 +42526,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSingleFil } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSingleFile { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; @@ -41961,7 +42542,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; @@ -42003,7 +42584,7 @@ pub enum InstallationUnsuspendInstallationPermissionsStatuses { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsStatuses> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsStatuses> for InstallationUnsuspendInstallationPermissionsStatuses { fn from(value: &InstallationUnsuspendInstallationPermissionsStatuses) -> Self { @@ -42018,7 +42599,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsStatuse } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsStatuses { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42028,13 +42609,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsStatuses } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsStatuses { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; @@ -42044,7 +42625,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; @@ -42086,7 +42667,7 @@ pub enum InstallationUnsuspendInstallationPermissionsTeamDiscussions { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsTeamDiscussions> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsTeamDiscussions> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { fn from(value: &InstallationUnsuspendInstallationPermissionsTeamDiscussions) -> Self { @@ -42101,7 +42682,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsTeamDis } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsTeamDiscussions { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42111,13 +42692,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsTeamDiscu } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; @@ -42127,7 +42708,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; @@ -42169,7 +42750,7 @@ pub enum InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { fn from(value: &InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts) -> Self { @@ -42184,7 +42765,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsVulnera } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42194,7 +42775,7 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsVulnerabi } } } -impl std::convert::TryFrom<&str> +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; @@ -42202,7 +42783,7 @@ impl std::convert::TryFrom<&str> value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; @@ -42212,7 +42793,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; @@ -42254,7 +42835,7 @@ pub enum InstallationUnsuspendInstallationPermissionsWorkflows { #[serde(rename = "write")] Write, } -impl From<&InstallationUnsuspendInstallationPermissionsWorkflows> +impl ::std::convert::From<&InstallationUnsuspendInstallationPermissionsWorkflows> for InstallationUnsuspendInstallationPermissionsWorkflows { fn from(value: &InstallationUnsuspendInstallationPermissionsWorkflows) -> Self { @@ -42269,7 +42850,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsWorkflo } } } -impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsWorkflows { +impl ::std::str::FromStr for InstallationUnsuspendInstallationPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42279,13 +42860,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsWorkflows } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsWorkflows { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; @@ -42295,7 +42876,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; @@ -42338,7 +42919,7 @@ pub enum InstallationUnsuspendInstallationRepositorySelection { #[serde(rename = "selected")] Selected, } -impl From<&InstallationUnsuspendInstallationRepositorySelection> +impl ::std::convert::From<&InstallationUnsuspendInstallationRepositorySelection> for InstallationUnsuspendInstallationRepositorySelection { fn from(value: &InstallationUnsuspendInstallationRepositorySelection) -> Self { @@ -42353,7 +42934,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationRepositorySelectio } } } -impl std::str::FromStr for InstallationUnsuspendInstallationRepositorySelection { +impl ::std::str::FromStr for InstallationUnsuspendInstallationRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42363,13 +42944,13 @@ impl std::str::FromStr for InstallationUnsuspendInstallationRepositorySelection } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationRepositorySelection { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; @@ -42379,7 +42960,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; @@ -42419,7 +43000,7 @@ pub enum InstallationUnsuspendInstallationTargetType { User, Organization, } -impl From<&InstallationUnsuspendInstallationTargetType> +impl ::std::convert::From<&InstallationUnsuspendInstallationTargetType> for InstallationUnsuspendInstallationTargetType { fn from(value: &InstallationUnsuspendInstallationTargetType) -> Self { @@ -42434,7 +43015,7 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationTargetType { } } } -impl std::str::FromStr for InstallationUnsuspendInstallationTargetType { +impl ::std::str::FromStr for InstallationUnsuspendInstallationTargetType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42444,13 +43025,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationTargetType { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationTargetType { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationTargetType { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationTargetType +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -42458,7 +43041,9 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInst value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationTargetType { +impl ::std::convert::TryFrom<::std::string::String> + for InstallationUnsuspendInstallationTargetType +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -42490,14 +43075,14 @@ pub enum InstallationUnsuspendInstallationUpdatedAt { Variant0(chrono::DateTime), Variant1(i64), } -impl From<&InstallationUnsuspendInstallationUpdatedAt> +impl ::std::convert::From<&InstallationUnsuspendInstallationUpdatedAt> for InstallationUnsuspendInstallationUpdatedAt { fn from(value: &InstallationUnsuspendInstallationUpdatedAt) -> Self { value.clone() } } -impl std::str::FromStr for InstallationUnsuspendInstallationUpdatedAt { +impl ::std::str::FromStr for InstallationUnsuspendInstallationUpdatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -42509,13 +43094,15 @@ impl std::str::FromStr for InstallationUnsuspendInstallationUpdatedAt { } } } -impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationUpdatedAt { +impl ::std::convert::TryFrom<&str> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInstallationUpdatedAt { +impl ::std::convert::TryFrom<&::std::string::String> + for InstallationUnsuspendInstallationUpdatedAt +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -42523,7 +43110,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationUnsuspendInst value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationUpdatedAt { +impl ::std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -42539,12 +43126,14 @@ impl ::std::fmt::Display for InstallationUnsuspendInstallationUpdatedAt { } } } -impl From> for InstallationUnsuspendInstallationUpdatedAt { +impl ::std::convert::From> + for InstallationUnsuspendInstallationUpdatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } -impl From for InstallationUnsuspendInstallationUpdatedAt { +impl ::std::convert::From for InstallationUnsuspendInstallationUpdatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } @@ -42599,7 +43188,9 @@ pub struct InstallationUnsuspendRepositoriesItem { #[doc = "Whether the repository is private or public."] pub private: bool, } -impl From<&InstallationUnsuspendRepositoriesItem> for InstallationUnsuspendRepositoriesItem { +impl ::std::convert::From<&InstallationUnsuspendRepositoriesItem> + for InstallationUnsuspendRepositoriesItem +{ fn from(value: &InstallationUnsuspendRepositoriesItem) -> Self { value.clone() } @@ -42628,12 +43219,12 @@ pub enum InstallationUpdatedAt { Variant0(chrono::DateTime), Variant1(i64), } -impl From<&InstallationUpdatedAt> for InstallationUpdatedAt { +impl ::std::convert::From<&InstallationUpdatedAt> for InstallationUpdatedAt { fn from(value: &InstallationUpdatedAt) -> Self { value.clone() } } -impl std::str::FromStr for InstallationUpdatedAt { +impl ::std::str::FromStr for InstallationUpdatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -42645,13 +43236,13 @@ impl std::str::FromStr for InstallationUpdatedAt { } } } -impl std::convert::TryFrom<&str> for InstallationUpdatedAt { +impl ::std::convert::TryFrom<&str> for InstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for InstallationUpdatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for InstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -42659,7 +43250,7 @@ impl std::convert::TryFrom<&::std::string::String> for InstallationUpdatedAt { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for InstallationUpdatedAt { +impl ::std::convert::TryFrom<::std::string::String> for InstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -42675,12 +43266,12 @@ impl ::std::fmt::Display for InstallationUpdatedAt { } } } -impl From> for InstallationUpdatedAt { +impl ::std::convert::From> for InstallationUpdatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } -impl From for InstallationUpdatedAt { +impl ::std::convert::From for InstallationUpdatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } @@ -42920,7 +43511,7 @@ pub struct Issue { pub url: ::std::string::String, pub user: User, } -impl From<&Issue> for Issue { +impl ::std::convert::From<&Issue> for Issue { fn from(value: &Issue) -> Self { value.clone() } @@ -42963,7 +43554,7 @@ pub enum IssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssueActiveLockReason> for IssueActiveLockReason { +impl ::std::convert::From<&IssueActiveLockReason> for IssueActiveLockReason { fn from(value: &IssueActiveLockReason) -> Self { value.clone() } @@ -42978,7 +43569,7 @@ impl ::std::fmt::Display for IssueActiveLockReason { } } } -impl std::str::FromStr for IssueActiveLockReason { +impl ::std::str::FromStr for IssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -42990,13 +43581,13 @@ impl std::str::FromStr for IssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -43004,7 +43595,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueActiveLockReason { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -43107,7 +43698,7 @@ pub struct IssueComment { pub url: ::std::string::String, pub user: User, } -impl From<&IssueComment> for IssueComment { +impl ::std::convert::From<&IssueComment> for IssueComment { fn from(value: &IssueComment) -> Self { value.clone() } @@ -43243,7 +43834,7 @@ pub struct IssueCommentCreated { pub repository: Repository, pub sender: User, } -impl From<&IssueCommentCreated> for IssueCommentCreated { +impl ::std::convert::From<&IssueCommentCreated> for IssueCommentCreated { fn from(value: &IssueCommentCreated) -> Self { value.clone() } @@ -43277,7 +43868,7 @@ pub enum IssueCommentCreatedAction { #[serde(rename = "created")] Created, } -impl From<&IssueCommentCreatedAction> for IssueCommentCreatedAction { +impl ::std::convert::From<&IssueCommentCreatedAction> for IssueCommentCreatedAction { fn from(value: &IssueCommentCreatedAction) -> Self { value.clone() } @@ -43289,7 +43880,7 @@ impl ::std::fmt::Display for IssueCommentCreatedAction { } } } -impl std::str::FromStr for IssueCommentCreatedAction { +impl ::std::str::FromStr for IssueCommentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -43298,13 +43889,13 @@ impl std::str::FromStr for IssueCommentCreatedAction { } } } -impl std::convert::TryFrom<&str> for IssueCommentCreatedAction { +impl ::std::convert::TryFrom<&str> for IssueCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -43312,7 +43903,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -43437,7 +44028,7 @@ pub struct IssueCommentCreatedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssueCommentCreatedIssue> for IssueCommentCreatedIssue { +impl ::std::convert::From<&IssueCommentCreatedIssue> for IssueCommentCreatedIssue { fn from(value: &IssueCommentCreatedIssue) -> Self { value.clone() } @@ -43480,7 +44071,9 @@ pub enum IssueCommentCreatedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssueCommentCreatedIssueActiveLockReason> for IssueCommentCreatedIssueActiveLockReason { +impl ::std::convert::From<&IssueCommentCreatedIssueActiveLockReason> + for IssueCommentCreatedIssueActiveLockReason +{ fn from(value: &IssueCommentCreatedIssueActiveLockReason) -> Self { value.clone() } @@ -43495,7 +44088,7 @@ impl ::std::fmt::Display for IssueCommentCreatedIssueActiveLockReason { } } } -impl std::str::FromStr for IssueCommentCreatedIssueActiveLockReason { +impl ::std::str::FromStr for IssueCommentCreatedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -43507,13 +44100,13 @@ impl std::str::FromStr for IssueCommentCreatedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssueCommentCreatedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssueCommentCreatedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -43521,7 +44114,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentCreatedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentCreatedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -43585,7 +44178,7 @@ pub struct IssueCommentCreatedIssueAssignee { pub type_: IssueCommentCreatedIssueAssigneeType, pub url: ::std::string::String, } -impl From<&IssueCommentCreatedIssueAssignee> for IssueCommentCreatedIssueAssignee { +impl ::std::convert::From<&IssueCommentCreatedIssueAssignee> for IssueCommentCreatedIssueAssignee { fn from(value: &IssueCommentCreatedIssueAssignee) -> Self { value.clone() } @@ -43622,7 +44215,9 @@ pub enum IssueCommentCreatedIssueAssigneeType { User, Organization, } -impl From<&IssueCommentCreatedIssueAssigneeType> for IssueCommentCreatedIssueAssigneeType { +impl ::std::convert::From<&IssueCommentCreatedIssueAssigneeType> + for IssueCommentCreatedIssueAssigneeType +{ fn from(value: &IssueCommentCreatedIssueAssigneeType) -> Self { value.clone() } @@ -43636,7 +44231,7 @@ impl ::std::fmt::Display for IssueCommentCreatedIssueAssigneeType { } } } -impl std::str::FromStr for IssueCommentCreatedIssueAssigneeType { +impl ::std::str::FromStr for IssueCommentCreatedIssueAssigneeType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -43647,13 +44242,13 @@ impl std::str::FromStr for IssueCommentCreatedIssueAssigneeType { } } } -impl std::convert::TryFrom<&str> for IssueCommentCreatedIssueAssigneeType { +impl ::std::convert::TryFrom<&str> for IssueCommentCreatedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueAssigneeType { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -43661,7 +44256,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentCreatedIssueAssigneeType { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentCreatedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -43712,7 +44307,9 @@ pub struct IssueCommentCreatedIssuePullRequest { pub patch_url: ::std::string::String, pub url: ::std::string::String, } -impl From<&IssueCommentCreatedIssuePullRequest> for IssueCommentCreatedIssuePullRequest { +impl ::std::convert::From<&IssueCommentCreatedIssuePullRequest> + for IssueCommentCreatedIssuePullRequest +{ fn from(value: &IssueCommentCreatedIssuePullRequest) -> Self { value.clone() } @@ -43749,7 +44346,7 @@ pub enum IssueCommentCreatedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssueCommentCreatedIssueState> for IssueCommentCreatedIssueState { +impl ::std::convert::From<&IssueCommentCreatedIssueState> for IssueCommentCreatedIssueState { fn from(value: &IssueCommentCreatedIssueState) -> Self { value.clone() } @@ -43762,7 +44359,7 @@ impl ::std::fmt::Display for IssueCommentCreatedIssueState { } } } -impl std::str::FromStr for IssueCommentCreatedIssueState { +impl ::std::str::FromStr for IssueCommentCreatedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -43772,13 +44369,13 @@ impl std::str::FromStr for IssueCommentCreatedIssueState { } } } -impl std::convert::TryFrom<&str> for IssueCommentCreatedIssueState { +impl ::std::convert::TryFrom<&str> for IssueCommentCreatedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -43786,7 +44383,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentCreatedIssueS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentCreatedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentCreatedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -43925,7 +44522,7 @@ pub struct IssueCommentDeleted { pub repository: Repository, pub sender: User, } -impl From<&IssueCommentDeleted> for IssueCommentDeleted { +impl ::std::convert::From<&IssueCommentDeleted> for IssueCommentDeleted { fn from(value: &IssueCommentDeleted) -> Self { value.clone() } @@ -43959,7 +44556,7 @@ pub enum IssueCommentDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&IssueCommentDeletedAction> for IssueCommentDeletedAction { +impl ::std::convert::From<&IssueCommentDeletedAction> for IssueCommentDeletedAction { fn from(value: &IssueCommentDeletedAction) -> Self { value.clone() } @@ -43971,7 +44568,7 @@ impl ::std::fmt::Display for IssueCommentDeletedAction { } } } -impl std::str::FromStr for IssueCommentDeletedAction { +impl ::std::str::FromStr for IssueCommentDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -43980,13 +44577,13 @@ impl std::str::FromStr for IssueCommentDeletedAction { } } } -impl std::convert::TryFrom<&str> for IssueCommentDeletedAction { +impl ::std::convert::TryFrom<&str> for IssueCommentDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -43994,7 +44591,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -44119,7 +44716,7 @@ pub struct IssueCommentDeletedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssueCommentDeletedIssue> for IssueCommentDeletedIssue { +impl ::std::convert::From<&IssueCommentDeletedIssue> for IssueCommentDeletedIssue { fn from(value: &IssueCommentDeletedIssue) -> Self { value.clone() } @@ -44162,7 +44759,9 @@ pub enum IssueCommentDeletedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssueCommentDeletedIssueActiveLockReason> for IssueCommentDeletedIssueActiveLockReason { +impl ::std::convert::From<&IssueCommentDeletedIssueActiveLockReason> + for IssueCommentDeletedIssueActiveLockReason +{ fn from(value: &IssueCommentDeletedIssueActiveLockReason) -> Self { value.clone() } @@ -44177,7 +44776,7 @@ impl ::std::fmt::Display for IssueCommentDeletedIssueActiveLockReason { } } } -impl std::str::FromStr for IssueCommentDeletedIssueActiveLockReason { +impl ::std::str::FromStr for IssueCommentDeletedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -44189,13 +44788,13 @@ impl std::str::FromStr for IssueCommentDeletedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssueCommentDeletedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssueCommentDeletedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -44203,7 +44802,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentDeletedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentDeletedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -44267,7 +44866,7 @@ pub struct IssueCommentDeletedIssueAssignee { pub type_: IssueCommentDeletedIssueAssigneeType, pub url: ::std::string::String, } -impl From<&IssueCommentDeletedIssueAssignee> for IssueCommentDeletedIssueAssignee { +impl ::std::convert::From<&IssueCommentDeletedIssueAssignee> for IssueCommentDeletedIssueAssignee { fn from(value: &IssueCommentDeletedIssueAssignee) -> Self { value.clone() } @@ -44304,7 +44903,9 @@ pub enum IssueCommentDeletedIssueAssigneeType { User, Organization, } -impl From<&IssueCommentDeletedIssueAssigneeType> for IssueCommentDeletedIssueAssigneeType { +impl ::std::convert::From<&IssueCommentDeletedIssueAssigneeType> + for IssueCommentDeletedIssueAssigneeType +{ fn from(value: &IssueCommentDeletedIssueAssigneeType) -> Self { value.clone() } @@ -44318,7 +44919,7 @@ impl ::std::fmt::Display for IssueCommentDeletedIssueAssigneeType { } } } -impl std::str::FromStr for IssueCommentDeletedIssueAssigneeType { +impl ::std::str::FromStr for IssueCommentDeletedIssueAssigneeType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -44329,13 +44930,13 @@ impl std::str::FromStr for IssueCommentDeletedIssueAssigneeType { } } } -impl std::convert::TryFrom<&str> for IssueCommentDeletedIssueAssigneeType { +impl ::std::convert::TryFrom<&str> for IssueCommentDeletedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueAssigneeType { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -44343,7 +44944,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueA value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentDeletedIssueAssigneeType { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentDeletedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -44394,7 +44995,9 @@ pub struct IssueCommentDeletedIssuePullRequest { pub patch_url: ::std::string::String, pub url: ::std::string::String, } -impl From<&IssueCommentDeletedIssuePullRequest> for IssueCommentDeletedIssuePullRequest { +impl ::std::convert::From<&IssueCommentDeletedIssuePullRequest> + for IssueCommentDeletedIssuePullRequest +{ fn from(value: &IssueCommentDeletedIssuePullRequest) -> Self { value.clone() } @@ -44431,7 +45034,7 @@ pub enum IssueCommentDeletedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssueCommentDeletedIssueState> for IssueCommentDeletedIssueState { +impl ::std::convert::From<&IssueCommentDeletedIssueState> for IssueCommentDeletedIssueState { fn from(value: &IssueCommentDeletedIssueState) -> Self { value.clone() } @@ -44444,7 +45047,7 @@ impl ::std::fmt::Display for IssueCommentDeletedIssueState { } } } -impl std::str::FromStr for IssueCommentDeletedIssueState { +impl ::std::str::FromStr for IssueCommentDeletedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -44454,13 +45057,13 @@ impl std::str::FromStr for IssueCommentDeletedIssueState { } } } -impl std::convert::TryFrom<&str> for IssueCommentDeletedIssueState { +impl ::std::convert::TryFrom<&str> for IssueCommentDeletedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -44468,7 +45071,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentDeletedIssueS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentDeletedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentDeletedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -44629,7 +45232,7 @@ pub struct IssueCommentEdited { pub repository: Repository, pub sender: User, } -impl From<&IssueCommentEdited> for IssueCommentEdited { +impl ::std::convert::From<&IssueCommentEdited> for IssueCommentEdited { fn from(value: &IssueCommentEdited) -> Self { value.clone() } @@ -44663,7 +45266,7 @@ pub enum IssueCommentEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&IssueCommentEditedAction> for IssueCommentEditedAction { +impl ::std::convert::From<&IssueCommentEditedAction> for IssueCommentEditedAction { fn from(value: &IssueCommentEditedAction) -> Self { value.clone() } @@ -44675,7 +45278,7 @@ impl ::std::fmt::Display for IssueCommentEditedAction { } } } -impl std::str::FromStr for IssueCommentEditedAction { +impl ::std::str::FromStr for IssueCommentEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -44684,13 +45287,13 @@ impl std::str::FromStr for IssueCommentEditedAction { } } } -impl std::convert::TryFrom<&str> for IssueCommentEditedAction { +impl ::std::convert::TryFrom<&str> for IssueCommentEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -44698,7 +45301,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -44739,11 +45342,18 @@ pub struct IssueCommentEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub body: ::std::option::Option, } -impl From<&IssueCommentEditedChanges> for IssueCommentEditedChanges { +impl ::std::convert::From<&IssueCommentEditedChanges> for IssueCommentEditedChanges { fn from(value: &IssueCommentEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for IssueCommentEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + } + } +} #[doc = "IssueCommentEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -44770,7 +45380,7 @@ pub struct IssueCommentEditedChangesBody { #[doc = "The previous version of the body."] pub from: ::std::string::String, } -impl From<&IssueCommentEditedChangesBody> for IssueCommentEditedChangesBody { +impl ::std::convert::From<&IssueCommentEditedChangesBody> for IssueCommentEditedChangesBody { fn from(value: &IssueCommentEditedChangesBody) -> Self { value.clone() } @@ -44892,7 +45502,7 @@ pub struct IssueCommentEditedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssueCommentEditedIssue> for IssueCommentEditedIssue { +impl ::std::convert::From<&IssueCommentEditedIssue> for IssueCommentEditedIssue { fn from(value: &IssueCommentEditedIssue) -> Self { value.clone() } @@ -44935,7 +45545,9 @@ pub enum IssueCommentEditedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssueCommentEditedIssueActiveLockReason> for IssueCommentEditedIssueActiveLockReason { +impl ::std::convert::From<&IssueCommentEditedIssueActiveLockReason> + for IssueCommentEditedIssueActiveLockReason +{ fn from(value: &IssueCommentEditedIssueActiveLockReason) -> Self { value.clone() } @@ -44950,7 +45562,7 @@ impl ::std::fmt::Display for IssueCommentEditedIssueActiveLockReason { } } } -impl std::str::FromStr for IssueCommentEditedIssueActiveLockReason { +impl ::std::str::FromStr for IssueCommentEditedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -44962,13 +45574,13 @@ impl std::str::FromStr for IssueCommentEditedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssueCommentEditedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssueCommentEditedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -44976,7 +45588,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentEditedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentEditedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45040,7 +45652,7 @@ pub struct IssueCommentEditedIssueAssignee { pub type_: IssueCommentEditedIssueAssigneeType, pub url: ::std::string::String, } -impl From<&IssueCommentEditedIssueAssignee> for IssueCommentEditedIssueAssignee { +impl ::std::convert::From<&IssueCommentEditedIssueAssignee> for IssueCommentEditedIssueAssignee { fn from(value: &IssueCommentEditedIssueAssignee) -> Self { value.clone() } @@ -45077,7 +45689,9 @@ pub enum IssueCommentEditedIssueAssigneeType { User, Organization, } -impl From<&IssueCommentEditedIssueAssigneeType> for IssueCommentEditedIssueAssigneeType { +impl ::std::convert::From<&IssueCommentEditedIssueAssigneeType> + for IssueCommentEditedIssueAssigneeType +{ fn from(value: &IssueCommentEditedIssueAssigneeType) -> Self { value.clone() } @@ -45091,7 +45705,7 @@ impl ::std::fmt::Display for IssueCommentEditedIssueAssigneeType { } } } -impl std::str::FromStr for IssueCommentEditedIssueAssigneeType { +impl ::std::str::FromStr for IssueCommentEditedIssueAssigneeType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45102,13 +45716,13 @@ impl std::str::FromStr for IssueCommentEditedIssueAssigneeType { } } } -impl std::convert::TryFrom<&str> for IssueCommentEditedIssueAssigneeType { +impl ::std::convert::TryFrom<&str> for IssueCommentEditedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueAssigneeType { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -45116,7 +45730,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueAs value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentEditedIssueAssigneeType { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentEditedIssueAssigneeType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45167,7 +45781,9 @@ pub struct IssueCommentEditedIssuePullRequest { pub patch_url: ::std::string::String, pub url: ::std::string::String, } -impl From<&IssueCommentEditedIssuePullRequest> for IssueCommentEditedIssuePullRequest { +impl ::std::convert::From<&IssueCommentEditedIssuePullRequest> + for IssueCommentEditedIssuePullRequest +{ fn from(value: &IssueCommentEditedIssuePullRequest) -> Self { value.clone() } @@ -45204,7 +45820,7 @@ pub enum IssueCommentEditedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssueCommentEditedIssueState> for IssueCommentEditedIssueState { +impl ::std::convert::From<&IssueCommentEditedIssueState> for IssueCommentEditedIssueState { fn from(value: &IssueCommentEditedIssueState) -> Self { value.clone() } @@ -45217,7 +45833,7 @@ impl ::std::fmt::Display for IssueCommentEditedIssueState { } } } -impl std::str::FromStr for IssueCommentEditedIssueState { +impl ::std::str::FromStr for IssueCommentEditedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45227,13 +45843,13 @@ impl std::str::FromStr for IssueCommentEditedIssueState { } } } -impl std::convert::TryFrom<&str> for IssueCommentEditedIssueState { +impl ::std::convert::TryFrom<&str> for IssueCommentEditedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -45241,7 +45857,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueCommentEditedIssueSt value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueCommentEditedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssueCommentEditedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45276,22 +45892,22 @@ pub enum IssueCommentEvent { Deleted(IssueCommentDeleted), Edited(IssueCommentEdited), } -impl From<&IssueCommentEvent> for IssueCommentEvent { +impl ::std::convert::From<&IssueCommentEvent> for IssueCommentEvent { fn from(value: &IssueCommentEvent) -> Self { value.clone() } } -impl From for IssueCommentEvent { +impl ::std::convert::From for IssueCommentEvent { fn from(value: IssueCommentCreated) -> Self { Self::Created(value) } } -impl From for IssueCommentEvent { +impl ::std::convert::From for IssueCommentEvent { fn from(value: IssueCommentDeleted) -> Self { Self::Deleted(value) } } -impl From for IssueCommentEvent { +impl ::std::convert::From for IssueCommentEvent { fn from(value: IssueCommentEdited) -> Self { Self::Edited(value) } @@ -45337,11 +45953,21 @@ pub struct IssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuePullRequest> for IssuePullRequest { +impl ::std::convert::From<&IssuePullRequest> for IssuePullRequest { fn from(value: &IssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "State of the issue; either 'open' or 'closed'"] #[doc = r""] #[doc = r"
JSON schema"] @@ -45375,7 +46001,7 @@ pub enum IssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssueState> for IssueState { +impl ::std::convert::From<&IssueState> for IssueState { fn from(value: &IssueState) -> Self { value.clone() } @@ -45388,7 +46014,7 @@ impl ::std::fmt::Display for IssueState { } } } -impl std::str::FromStr for IssueState { +impl ::std::str::FromStr for IssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45398,13 +46024,13 @@ impl std::str::FromStr for IssueState { } } } -impl std::convert::TryFrom<&str> for IssueState { +impl ::std::convert::TryFrom<&str> for IssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -45412,7 +46038,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssueState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45491,7 +46117,7 @@ pub struct IssuesAssigned { pub repository: Repository, pub sender: User, } -impl From<&IssuesAssigned> for IssuesAssigned { +impl ::std::convert::From<&IssuesAssigned> for IssuesAssigned { fn from(value: &IssuesAssigned) -> Self { value.clone() } @@ -45526,7 +46152,7 @@ pub enum IssuesAssignedAction { #[serde(rename = "assigned")] Assigned, } -impl From<&IssuesAssignedAction> for IssuesAssignedAction { +impl ::std::convert::From<&IssuesAssignedAction> for IssuesAssignedAction { fn from(value: &IssuesAssignedAction) -> Self { value.clone() } @@ -45538,7 +46164,7 @@ impl ::std::fmt::Display for IssuesAssignedAction { } } } -impl std::str::FromStr for IssuesAssignedAction { +impl ::std::str::FromStr for IssuesAssignedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45547,13 +46173,13 @@ impl std::str::FromStr for IssuesAssignedAction { } } } -impl std::convert::TryFrom<&str> for IssuesAssignedAction { +impl ::std::convert::TryFrom<&str> for IssuesAssignedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesAssignedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesAssignedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -45561,7 +46187,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesAssignedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesAssignedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesAssignedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45649,7 +46275,7 @@ pub struct IssuesClosed { pub repository: Repository, pub sender: User, } -impl From<&IssuesClosed> for IssuesClosed { +impl ::std::convert::From<&IssuesClosed> for IssuesClosed { fn from(value: &IssuesClosed) -> Self { value.clone() } @@ -45684,7 +46310,7 @@ pub enum IssuesClosedAction { #[serde(rename = "closed")] Closed, } -impl From<&IssuesClosedAction> for IssuesClosedAction { +impl ::std::convert::From<&IssuesClosedAction> for IssuesClosedAction { fn from(value: &IssuesClosedAction) -> Self { value.clone() } @@ -45696,7 +46322,7 @@ impl ::std::fmt::Display for IssuesClosedAction { } } } -impl std::str::FromStr for IssuesClosedAction { +impl ::std::str::FromStr for IssuesClosedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45705,13 +46331,13 @@ impl std::str::FromStr for IssuesClosedAction { } } } -impl std::convert::TryFrom<&str> for IssuesClosedAction { +impl ::std::convert::TryFrom<&str> for IssuesClosedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesClosedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesClosedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -45719,7 +46345,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesClosedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesClosedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesClosedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45799,7 +46425,7 @@ pub struct IssuesClosedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesClosedIssue> for IssuesClosedIssue { +impl ::std::convert::From<&IssuesClosedIssue> for IssuesClosedIssue { fn from(value: &IssuesClosedIssue) -> Self { value.clone() } @@ -45842,7 +46468,9 @@ pub enum IssuesClosedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssuesClosedIssueActiveLockReason> for IssuesClosedIssueActiveLockReason { +impl ::std::convert::From<&IssuesClosedIssueActiveLockReason> + for IssuesClosedIssueActiveLockReason +{ fn from(value: &IssuesClosedIssueActiveLockReason) -> Self { value.clone() } @@ -45857,7 +46485,7 @@ impl ::std::fmt::Display for IssuesClosedIssueActiveLockReason { } } } -impl std::str::FromStr for IssuesClosedIssueActiveLockReason { +impl ::std::str::FromStr for IssuesClosedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45869,13 +46497,13 @@ impl std::str::FromStr for IssuesClosedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssuesClosedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssuesClosedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesClosedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesClosedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -45883,7 +46511,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesClosedIssueActiveLo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesClosedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssuesClosedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -45932,11 +46560,21 @@ pub struct IssuesClosedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesClosedIssuePullRequest> for IssuesClosedIssuePullRequest { +impl ::std::convert::From<&IssuesClosedIssuePullRequest> for IssuesClosedIssuePullRequest { fn from(value: &IssuesClosedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesClosedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "IssuesClosedIssueState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -45966,7 +46604,7 @@ pub enum IssuesClosedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssuesClosedIssueState> for IssuesClosedIssueState { +impl ::std::convert::From<&IssuesClosedIssueState> for IssuesClosedIssueState { fn from(value: &IssuesClosedIssueState) -> Self { value.clone() } @@ -45978,7 +46616,7 @@ impl ::std::fmt::Display for IssuesClosedIssueState { } } } -impl std::str::FromStr for IssuesClosedIssueState { +impl ::std::str::FromStr for IssuesClosedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -45987,13 +46625,13 @@ impl std::str::FromStr for IssuesClosedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesClosedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesClosedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesClosedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesClosedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -46001,7 +46639,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesClosedIssueState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesClosedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesClosedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -46063,7 +46701,7 @@ pub struct IssuesDeleted { pub repository: Repository, pub sender: User, } -impl From<&IssuesDeleted> for IssuesDeleted { +impl ::std::convert::From<&IssuesDeleted> for IssuesDeleted { fn from(value: &IssuesDeleted) -> Self { value.clone() } @@ -46097,7 +46735,7 @@ pub enum IssuesDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&IssuesDeletedAction> for IssuesDeletedAction { +impl ::std::convert::From<&IssuesDeletedAction> for IssuesDeletedAction { fn from(value: &IssuesDeletedAction) -> Self { value.clone() } @@ -46109,7 +46747,7 @@ impl ::std::fmt::Display for IssuesDeletedAction { } } } -impl std::str::FromStr for IssuesDeletedAction { +impl ::std::str::FromStr for IssuesDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -46118,13 +46756,13 @@ impl std::str::FromStr for IssuesDeletedAction { } } } -impl std::convert::TryFrom<&str> for IssuesDeletedAction { +impl ::std::convert::TryFrom<&str> for IssuesDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -46132,7 +46770,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -46215,7 +46853,7 @@ pub struct IssuesDemilestoned { pub repository: Repository, pub sender: User, } -impl From<&IssuesDemilestoned> for IssuesDemilestoned { +impl ::std::convert::From<&IssuesDemilestoned> for IssuesDemilestoned { fn from(value: &IssuesDemilestoned) -> Self { value.clone() } @@ -46249,7 +46887,7 @@ pub enum IssuesDemilestonedAction { #[serde(rename = "demilestoned")] Demilestoned, } -impl From<&IssuesDemilestonedAction> for IssuesDemilestonedAction { +impl ::std::convert::From<&IssuesDemilestonedAction> for IssuesDemilestonedAction { fn from(value: &IssuesDemilestonedAction) -> Self { value.clone() } @@ -46261,7 +46899,7 @@ impl ::std::fmt::Display for IssuesDemilestonedAction { } } } -impl std::str::FromStr for IssuesDemilestonedAction { +impl ::std::str::FromStr for IssuesDemilestonedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -46270,13 +46908,13 @@ impl std::str::FromStr for IssuesDemilestonedAction { } } } -impl std::convert::TryFrom<&str> for IssuesDemilestonedAction { +impl ::std::convert::TryFrom<&str> for IssuesDemilestonedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -46284,7 +46922,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesDemilestonedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesDemilestonedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -46358,7 +46996,7 @@ pub struct IssuesDemilestonedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesDemilestonedIssue> for IssuesDemilestonedIssue { +impl ::std::convert::From<&IssuesDemilestonedIssue> for IssuesDemilestonedIssue { fn from(value: &IssuesDemilestonedIssue) -> Self { value.clone() } @@ -46401,7 +47039,9 @@ pub enum IssuesDemilestonedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssuesDemilestonedIssueActiveLockReason> for IssuesDemilestonedIssueActiveLockReason { +impl ::std::convert::From<&IssuesDemilestonedIssueActiveLockReason> + for IssuesDemilestonedIssueActiveLockReason +{ fn from(value: &IssuesDemilestonedIssueActiveLockReason) -> Self { value.clone() } @@ -46416,7 +47056,7 @@ impl ::std::fmt::Display for IssuesDemilestonedIssueActiveLockReason { } } } -impl std::str::FromStr for IssuesDemilestonedIssueActiveLockReason { +impl ::std::str::FromStr for IssuesDemilestonedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -46428,13 +47068,13 @@ impl std::str::FromStr for IssuesDemilestonedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssuesDemilestonedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssuesDemilestonedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -46442,7 +47082,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedIssueAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesDemilestonedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssuesDemilestonedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -46491,11 +47131,23 @@ pub struct IssuesDemilestonedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesDemilestonedIssuePullRequest> for IssuesDemilestonedIssuePullRequest { +impl ::std::convert::From<&IssuesDemilestonedIssuePullRequest> + for IssuesDemilestonedIssuePullRequest +{ fn from(value: &IssuesDemilestonedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesDemilestonedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "State of the issue; either 'open' or 'closed'"] #[doc = r""] #[doc = r"
JSON schema"] @@ -46529,7 +47181,7 @@ pub enum IssuesDemilestonedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssuesDemilestonedIssueState> for IssuesDemilestonedIssueState { +impl ::std::convert::From<&IssuesDemilestonedIssueState> for IssuesDemilestonedIssueState { fn from(value: &IssuesDemilestonedIssueState) -> Self { value.clone() } @@ -46542,7 +47194,7 @@ impl ::std::fmt::Display for IssuesDemilestonedIssueState { } } } -impl std::str::FromStr for IssuesDemilestonedIssueState { +impl ::std::str::FromStr for IssuesDemilestonedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -46552,13 +47204,13 @@ impl std::str::FromStr for IssuesDemilestonedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesDemilestonedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesDemilestonedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -46566,7 +47218,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesDemilestonedIssueSt value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesDemilestonedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesDemilestonedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -46668,7 +47320,7 @@ pub struct IssuesEdited { pub repository: Repository, pub sender: User, } -impl From<&IssuesEdited> for IssuesEdited { +impl ::std::convert::From<&IssuesEdited> for IssuesEdited { fn from(value: &IssuesEdited) -> Self { value.clone() } @@ -46702,7 +47354,7 @@ pub enum IssuesEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&IssuesEditedAction> for IssuesEditedAction { +impl ::std::convert::From<&IssuesEditedAction> for IssuesEditedAction { fn from(value: &IssuesEditedAction) -> Self { value.clone() } @@ -46714,7 +47366,7 @@ impl ::std::fmt::Display for IssuesEditedAction { } } } -impl std::str::FromStr for IssuesEditedAction { +impl ::std::str::FromStr for IssuesEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -46723,13 +47375,13 @@ impl std::str::FromStr for IssuesEditedAction { } } } -impl std::convert::TryFrom<&str> for IssuesEditedAction { +impl ::std::convert::TryFrom<&str> for IssuesEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -46737,7 +47389,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -46793,11 +47445,19 @@ pub struct IssuesEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option, } -impl From<&IssuesEditedChanges> for IssuesEditedChanges { +impl ::std::convert::From<&IssuesEditedChanges> for IssuesEditedChanges { fn from(value: &IssuesEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for IssuesEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + title: Default::default(), + } + } +} #[doc = "IssuesEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -46824,7 +47484,7 @@ pub struct IssuesEditedChangesBody { #[doc = "The previous version of the body."] pub from: ::std::string::String, } -impl From<&IssuesEditedChangesBody> for IssuesEditedChangesBody { +impl ::std::convert::From<&IssuesEditedChangesBody> for IssuesEditedChangesBody { fn from(value: &IssuesEditedChangesBody) -> Self { value.clone() } @@ -46855,7 +47515,7 @@ pub struct IssuesEditedChangesTitle { #[doc = "The previous version of the title."] pub from: ::std::string::String, } -impl From<&IssuesEditedChangesTitle> for IssuesEditedChangesTitle { +impl ::std::convert::From<&IssuesEditedChangesTitle> for IssuesEditedChangesTitle { fn from(value: &IssuesEditedChangesTitle) -> Self { value.clone() } @@ -46939,87 +47599,87 @@ pub enum IssuesEvent { Unlocked(IssuesUnlocked), Unpinned(IssuesUnpinned), } -impl From<&IssuesEvent> for IssuesEvent { +impl ::std::convert::From<&IssuesEvent> for IssuesEvent { fn from(value: &IssuesEvent) -> Self { value.clone() } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesAssigned) -> Self { Self::Assigned(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesClosed) -> Self { Self::Closed(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesDeleted) -> Self { Self::Deleted(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesDemilestoned) -> Self { Self::Demilestoned(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesEdited) -> Self { Self::Edited(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesLabeled) -> Self { Self::Labeled(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesLocked) -> Self { Self::Locked(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesMilestoned) -> Self { Self::Milestoned(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesOpened) -> Self { Self::Opened(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesPinned) -> Self { Self::Pinned(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesReopened) -> Self { Self::Reopened(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesTransferred) -> Self { Self::Transferred(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesUnassigned) -> Self { Self::Unassigned(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesUnlabeled) -> Self { Self::Unlabeled(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesUnlocked) -> Self { Self::Unlocked(value) } } -impl From for IssuesEvent { +impl ::std::convert::From for IssuesEvent { fn from(value: IssuesUnpinned) -> Self { Self::Unpinned(value) } @@ -47085,7 +47745,7 @@ pub struct IssuesLabeled { pub repository: Repository, pub sender: User, } -impl From<&IssuesLabeled> for IssuesLabeled { +impl ::std::convert::From<&IssuesLabeled> for IssuesLabeled { fn from(value: &IssuesLabeled) -> Self { value.clone() } @@ -47119,7 +47779,7 @@ pub enum IssuesLabeledAction { #[serde(rename = "labeled")] Labeled, } -impl From<&IssuesLabeledAction> for IssuesLabeledAction { +impl ::std::convert::From<&IssuesLabeledAction> for IssuesLabeledAction { fn from(value: &IssuesLabeledAction) -> Self { value.clone() } @@ -47131,7 +47791,7 @@ impl ::std::fmt::Display for IssuesLabeledAction { } } } -impl std::str::FromStr for IssuesLabeledAction { +impl ::std::str::FromStr for IssuesLabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -47140,13 +47800,13 @@ impl std::str::FromStr for IssuesLabeledAction { } } } -impl std::convert::TryFrom<&str> for IssuesLabeledAction { +impl ::std::convert::TryFrom<&str> for IssuesLabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesLabeledAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesLabeledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -47154,7 +47814,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesLabeledAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesLabeledAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesLabeledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -47249,7 +47909,7 @@ pub struct IssuesLocked { pub repository: Repository, pub sender: User, } -impl From<&IssuesLocked> for IssuesLocked { +impl ::std::convert::From<&IssuesLocked> for IssuesLocked { fn from(value: &IssuesLocked) -> Self { value.clone() } @@ -47283,7 +47943,7 @@ pub enum IssuesLockedAction { #[serde(rename = "locked")] Locked, } -impl From<&IssuesLockedAction> for IssuesLockedAction { +impl ::std::convert::From<&IssuesLockedAction> for IssuesLockedAction { fn from(value: &IssuesLockedAction) -> Self { value.clone() } @@ -47295,7 +47955,7 @@ impl ::std::fmt::Display for IssuesLockedAction { } } } -impl std::str::FromStr for IssuesLockedAction { +impl ::std::str::FromStr for IssuesLockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -47304,13 +47964,13 @@ impl std::str::FromStr for IssuesLockedAction { } } } -impl std::convert::TryFrom<&str> for IssuesLockedAction { +impl ::std::convert::TryFrom<&str> for IssuesLockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesLockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesLockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -47318,7 +47978,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesLockedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesLockedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesLockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -47408,7 +48068,7 @@ pub struct IssuesLockedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesLockedIssue> for IssuesLockedIssue { +impl ::std::convert::From<&IssuesLockedIssue> for IssuesLockedIssue { fn from(value: &IssuesLockedIssue) -> Self { value.clone() } @@ -47451,7 +48111,9 @@ pub enum IssuesLockedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssuesLockedIssueActiveLockReason> for IssuesLockedIssueActiveLockReason { +impl ::std::convert::From<&IssuesLockedIssueActiveLockReason> + for IssuesLockedIssueActiveLockReason +{ fn from(value: &IssuesLockedIssueActiveLockReason) -> Self { value.clone() } @@ -47466,7 +48128,7 @@ impl ::std::fmt::Display for IssuesLockedIssueActiveLockReason { } } } -impl std::str::FromStr for IssuesLockedIssueActiveLockReason { +impl ::std::str::FromStr for IssuesLockedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -47478,13 +48140,13 @@ impl std::str::FromStr for IssuesLockedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssuesLockedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssuesLockedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesLockedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesLockedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -47492,7 +48154,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesLockedIssueActiveLo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesLockedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssuesLockedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -47541,11 +48203,21 @@ pub struct IssuesLockedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesLockedIssuePullRequest> for IssuesLockedIssuePullRequest { +impl ::std::convert::From<&IssuesLockedIssuePullRequest> for IssuesLockedIssuePullRequest { fn from(value: &IssuesLockedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesLockedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "State of the issue; either 'open' or 'closed'"] #[doc = r""] #[doc = r"
JSON schema"] @@ -47579,7 +48251,7 @@ pub enum IssuesLockedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssuesLockedIssueState> for IssuesLockedIssueState { +impl ::std::convert::From<&IssuesLockedIssueState> for IssuesLockedIssueState { fn from(value: &IssuesLockedIssueState) -> Self { value.clone() } @@ -47592,7 +48264,7 @@ impl ::std::fmt::Display for IssuesLockedIssueState { } } } -impl std::str::FromStr for IssuesLockedIssueState { +impl ::std::str::FromStr for IssuesLockedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -47602,13 +48274,13 @@ impl std::str::FromStr for IssuesLockedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesLockedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesLockedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesLockedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesLockedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -47616,7 +48288,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesLockedIssueState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesLockedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesLockedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -47699,7 +48371,7 @@ pub struct IssuesMilestoned { pub repository: Repository, pub sender: User, } -impl From<&IssuesMilestoned> for IssuesMilestoned { +impl ::std::convert::From<&IssuesMilestoned> for IssuesMilestoned { fn from(value: &IssuesMilestoned) -> Self { value.clone() } @@ -47733,7 +48405,7 @@ pub enum IssuesMilestonedAction { #[serde(rename = "milestoned")] Milestoned, } -impl From<&IssuesMilestonedAction> for IssuesMilestonedAction { +impl ::std::convert::From<&IssuesMilestonedAction> for IssuesMilestonedAction { fn from(value: &IssuesMilestonedAction) -> Self { value.clone() } @@ -47745,7 +48417,7 @@ impl ::std::fmt::Display for IssuesMilestonedAction { } } } -impl std::str::FromStr for IssuesMilestonedAction { +impl ::std::str::FromStr for IssuesMilestonedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -47754,13 +48426,13 @@ impl std::str::FromStr for IssuesMilestonedAction { } } } -impl std::convert::TryFrom<&str> for IssuesMilestonedAction { +impl ::std::convert::TryFrom<&str> for IssuesMilestonedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesMilestonedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -47768,7 +48440,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesMilestonedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesMilestonedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -47842,7 +48514,7 @@ pub struct IssuesMilestonedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesMilestonedIssue> for IssuesMilestonedIssue { +impl ::std::convert::From<&IssuesMilestonedIssue> for IssuesMilestonedIssue { fn from(value: &IssuesMilestonedIssue) -> Self { value.clone() } @@ -47885,7 +48557,9 @@ pub enum IssuesMilestonedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssuesMilestonedIssueActiveLockReason> for IssuesMilestonedIssueActiveLockReason { +impl ::std::convert::From<&IssuesMilestonedIssueActiveLockReason> + for IssuesMilestonedIssueActiveLockReason +{ fn from(value: &IssuesMilestonedIssueActiveLockReason) -> Self { value.clone() } @@ -47900,7 +48574,7 @@ impl ::std::fmt::Display for IssuesMilestonedIssueActiveLockReason { } } } -impl std::str::FromStr for IssuesMilestonedIssueActiveLockReason { +impl ::std::str::FromStr for IssuesMilestonedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -47912,13 +48586,13 @@ impl std::str::FromStr for IssuesMilestonedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssuesMilestonedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssuesMilestonedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -47926,7 +48600,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesMilestonedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssuesMilestonedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48068,7 +48742,7 @@ pub struct IssuesMilestonedIssueMilestone { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&IssuesMilestonedIssueMilestone> for IssuesMilestonedIssueMilestone { +impl ::std::convert::From<&IssuesMilestonedIssueMilestone> for IssuesMilestonedIssueMilestone { fn from(value: &IssuesMilestonedIssueMilestone) -> Self { value.clone() } @@ -48105,7 +48779,9 @@ pub enum IssuesMilestonedIssueMilestoneState { #[serde(rename = "closed")] Closed, } -impl From<&IssuesMilestonedIssueMilestoneState> for IssuesMilestonedIssueMilestoneState { +impl ::std::convert::From<&IssuesMilestonedIssueMilestoneState> + for IssuesMilestonedIssueMilestoneState +{ fn from(value: &IssuesMilestonedIssueMilestoneState) -> Self { value.clone() } @@ -48118,7 +48794,7 @@ impl ::std::fmt::Display for IssuesMilestonedIssueMilestoneState { } } } -impl std::str::FromStr for IssuesMilestonedIssueMilestoneState { +impl ::std::str::FromStr for IssuesMilestonedIssueMilestoneState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -48128,13 +48804,13 @@ impl std::str::FromStr for IssuesMilestonedIssueMilestoneState { } } } -impl std::convert::TryFrom<&str> for IssuesMilestonedIssueMilestoneState { +impl ::std::convert::TryFrom<&str> for IssuesMilestonedIssueMilestoneState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueMilestoneState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueMilestoneState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -48142,7 +48818,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueMile value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesMilestonedIssueMilestoneState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesMilestonedIssueMilestoneState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48191,11 +48867,21 @@ pub struct IssuesMilestonedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesMilestonedIssuePullRequest> for IssuesMilestonedIssuePullRequest { +impl ::std::convert::From<&IssuesMilestonedIssuePullRequest> for IssuesMilestonedIssuePullRequest { fn from(value: &IssuesMilestonedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesMilestonedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "State of the issue; either 'open' or 'closed'"] #[doc = r""] #[doc = r"
JSON schema"] @@ -48229,7 +48915,7 @@ pub enum IssuesMilestonedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssuesMilestonedIssueState> for IssuesMilestonedIssueState { +impl ::std::convert::From<&IssuesMilestonedIssueState> for IssuesMilestonedIssueState { fn from(value: &IssuesMilestonedIssueState) -> Self { value.clone() } @@ -48242,7 +48928,7 @@ impl ::std::fmt::Display for IssuesMilestonedIssueState { } } } -impl std::str::FromStr for IssuesMilestonedIssueState { +impl ::std::str::FromStr for IssuesMilestonedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -48252,13 +48938,13 @@ impl std::str::FromStr for IssuesMilestonedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesMilestonedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesMilestonedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -48266,7 +48952,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesMilestonedIssueStat value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesMilestonedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesMilestonedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48369,7 +49055,7 @@ pub struct IssuesOpened { pub repository: Repository, pub sender: User, } -impl From<&IssuesOpened> for IssuesOpened { +impl ::std::convert::From<&IssuesOpened> for IssuesOpened { fn from(value: &IssuesOpened) -> Self { value.clone() } @@ -48403,7 +49089,7 @@ pub enum IssuesOpenedAction { #[serde(rename = "opened")] Opened, } -impl From<&IssuesOpenedAction> for IssuesOpenedAction { +impl ::std::convert::From<&IssuesOpenedAction> for IssuesOpenedAction { fn from(value: &IssuesOpenedAction) -> Self { value.clone() } @@ -48415,7 +49101,7 @@ impl ::std::fmt::Display for IssuesOpenedAction { } } } -impl std::str::FromStr for IssuesOpenedAction { +impl ::std::str::FromStr for IssuesOpenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -48424,13 +49110,13 @@ impl std::str::FromStr for IssuesOpenedAction { } } } -impl std::convert::TryFrom<&str> for IssuesOpenedAction { +impl ::std::convert::TryFrom<&str> for IssuesOpenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesOpenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesOpenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -48438,7 +49124,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesOpenedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesOpenedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesOpenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48475,7 +49161,7 @@ pub struct IssuesOpenedChanges { pub old_issue: Issue, pub old_repository: Repository, } -impl From<&IssuesOpenedChanges> for IssuesOpenedChanges { +impl ::std::convert::From<&IssuesOpenedChanges> for IssuesOpenedChanges { fn from(value: &IssuesOpenedChanges) -> Self { value.clone() } @@ -48551,7 +49237,7 @@ pub struct IssuesOpenedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesOpenedIssue> for IssuesOpenedIssue { +impl ::std::convert::From<&IssuesOpenedIssue> for IssuesOpenedIssue { fn from(value: &IssuesOpenedIssue) -> Self { value.clone() } @@ -48594,7 +49280,9 @@ pub enum IssuesOpenedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssuesOpenedIssueActiveLockReason> for IssuesOpenedIssueActiveLockReason { +impl ::std::convert::From<&IssuesOpenedIssueActiveLockReason> + for IssuesOpenedIssueActiveLockReason +{ fn from(value: &IssuesOpenedIssueActiveLockReason) -> Self { value.clone() } @@ -48609,7 +49297,7 @@ impl ::std::fmt::Display for IssuesOpenedIssueActiveLockReason { } } } -impl std::str::FromStr for IssuesOpenedIssueActiveLockReason { +impl ::std::str::FromStr for IssuesOpenedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -48621,13 +49309,13 @@ impl std::str::FromStr for IssuesOpenedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssuesOpenedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssuesOpenedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesOpenedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesOpenedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -48635,7 +49323,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesOpenedIssueActiveLo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesOpenedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssuesOpenedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48684,11 +49372,21 @@ pub struct IssuesOpenedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesOpenedIssuePullRequest> for IssuesOpenedIssuePullRequest { +impl ::std::convert::From<&IssuesOpenedIssuePullRequest> for IssuesOpenedIssuePullRequest { fn from(value: &IssuesOpenedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesOpenedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "IssuesOpenedIssueState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -48718,7 +49416,7 @@ pub enum IssuesOpenedIssueState { #[serde(rename = "open")] Open, } -impl From<&IssuesOpenedIssueState> for IssuesOpenedIssueState { +impl ::std::convert::From<&IssuesOpenedIssueState> for IssuesOpenedIssueState { fn from(value: &IssuesOpenedIssueState) -> Self { value.clone() } @@ -48730,7 +49428,7 @@ impl ::std::fmt::Display for IssuesOpenedIssueState { } } } -impl std::str::FromStr for IssuesOpenedIssueState { +impl ::std::str::FromStr for IssuesOpenedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -48739,13 +49437,13 @@ impl std::str::FromStr for IssuesOpenedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesOpenedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesOpenedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesOpenedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesOpenedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -48753,7 +49451,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesOpenedIssueState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesOpenedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesOpenedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48815,7 +49513,7 @@ pub struct IssuesPinned { pub repository: Repository, pub sender: User, } -impl From<&IssuesPinned> for IssuesPinned { +impl ::std::convert::From<&IssuesPinned> for IssuesPinned { fn from(value: &IssuesPinned) -> Self { value.clone() } @@ -48849,7 +49547,7 @@ pub enum IssuesPinnedAction { #[serde(rename = "pinned")] Pinned, } -impl From<&IssuesPinnedAction> for IssuesPinnedAction { +impl ::std::convert::From<&IssuesPinnedAction> for IssuesPinnedAction { fn from(value: &IssuesPinnedAction) -> Self { value.clone() } @@ -48861,7 +49559,7 @@ impl ::std::fmt::Display for IssuesPinnedAction { } } } -impl std::str::FromStr for IssuesPinnedAction { +impl ::std::str::FromStr for IssuesPinnedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -48870,13 +49568,13 @@ impl std::str::FromStr for IssuesPinnedAction { } } } -impl std::convert::TryFrom<&str> for IssuesPinnedAction { +impl ::std::convert::TryFrom<&str> for IssuesPinnedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesPinnedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesPinnedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -48884,7 +49582,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesPinnedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesPinnedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesPinnedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -48965,7 +49663,7 @@ pub struct IssuesReopened { pub repository: Repository, pub sender: User, } -impl From<&IssuesReopened> for IssuesReopened { +impl ::std::convert::From<&IssuesReopened> for IssuesReopened { fn from(value: &IssuesReopened) -> Self { value.clone() } @@ -48999,7 +49697,7 @@ pub enum IssuesReopenedAction { #[serde(rename = "reopened")] Reopened, } -impl From<&IssuesReopenedAction> for IssuesReopenedAction { +impl ::std::convert::From<&IssuesReopenedAction> for IssuesReopenedAction { fn from(value: &IssuesReopenedAction) -> Self { value.clone() } @@ -49011,7 +49709,7 @@ impl ::std::fmt::Display for IssuesReopenedAction { } } } -impl std::str::FromStr for IssuesReopenedAction { +impl ::std::str::FromStr for IssuesReopenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49020,13 +49718,13 @@ impl std::str::FromStr for IssuesReopenedAction { } } } -impl std::convert::TryFrom<&str> for IssuesReopenedAction { +impl ::std::convert::TryFrom<&str> for IssuesReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesReopenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesReopenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49034,7 +49732,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesReopenedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesReopenedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesReopenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -49109,7 +49807,7 @@ pub struct IssuesReopenedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesReopenedIssue> for IssuesReopenedIssue { +impl ::std::convert::From<&IssuesReopenedIssue> for IssuesReopenedIssue { fn from(value: &IssuesReopenedIssue) -> Self { value.clone() } @@ -49152,7 +49850,9 @@ pub enum IssuesReopenedIssueActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&IssuesReopenedIssueActiveLockReason> for IssuesReopenedIssueActiveLockReason { +impl ::std::convert::From<&IssuesReopenedIssueActiveLockReason> + for IssuesReopenedIssueActiveLockReason +{ fn from(value: &IssuesReopenedIssueActiveLockReason) -> Self { value.clone() } @@ -49167,7 +49867,7 @@ impl ::std::fmt::Display for IssuesReopenedIssueActiveLockReason { } } } -impl std::str::FromStr for IssuesReopenedIssueActiveLockReason { +impl ::std::str::FromStr for IssuesReopenedIssueActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49179,13 +49879,13 @@ impl std::str::FromStr for IssuesReopenedIssueActiveLockReason { } } } -impl std::convert::TryFrom<&str> for IssuesReopenedIssueActiveLockReason { +impl ::std::convert::TryFrom<&str> for IssuesReopenedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesReopenedIssueActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesReopenedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49193,7 +49893,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesReopenedIssueActive value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesReopenedIssueActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for IssuesReopenedIssueActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -49242,11 +49942,21 @@ pub struct IssuesReopenedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesReopenedIssuePullRequest> for IssuesReopenedIssuePullRequest { +impl ::std::convert::From<&IssuesReopenedIssuePullRequest> for IssuesReopenedIssuePullRequest { fn from(value: &IssuesReopenedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesReopenedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "IssuesReopenedIssueState"] #[doc = r""] #[doc = r"
JSON schema"] @@ -49276,7 +49986,7 @@ pub enum IssuesReopenedIssueState { #[serde(rename = "open")] Open, } -impl From<&IssuesReopenedIssueState> for IssuesReopenedIssueState { +impl ::std::convert::From<&IssuesReopenedIssueState> for IssuesReopenedIssueState { fn from(value: &IssuesReopenedIssueState) -> Self { value.clone() } @@ -49288,7 +49998,7 @@ impl ::std::fmt::Display for IssuesReopenedIssueState { } } } -impl std::str::FromStr for IssuesReopenedIssueState { +impl ::std::str::FromStr for IssuesReopenedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49297,13 +50007,13 @@ impl std::str::FromStr for IssuesReopenedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesReopenedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesReopenedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesReopenedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesReopenedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49311,7 +50021,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesReopenedIssueState value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesReopenedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesReopenedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -49391,7 +50101,7 @@ pub struct IssuesTransferred { pub repository: Repository, pub sender: User, } -impl From<&IssuesTransferred> for IssuesTransferred { +impl ::std::convert::From<&IssuesTransferred> for IssuesTransferred { fn from(value: &IssuesTransferred) -> Self { value.clone() } @@ -49425,7 +50135,7 @@ pub enum IssuesTransferredAction { #[serde(rename = "transferred")] Transferred, } -impl From<&IssuesTransferredAction> for IssuesTransferredAction { +impl ::std::convert::From<&IssuesTransferredAction> for IssuesTransferredAction { fn from(value: &IssuesTransferredAction) -> Self { value.clone() } @@ -49437,7 +50147,7 @@ impl ::std::fmt::Display for IssuesTransferredAction { } } } -impl std::str::FromStr for IssuesTransferredAction { +impl ::std::str::FromStr for IssuesTransferredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49446,13 +50156,13 @@ impl std::str::FromStr for IssuesTransferredAction { } } } -impl std::convert::TryFrom<&str> for IssuesTransferredAction { +impl ::std::convert::TryFrom<&str> for IssuesTransferredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesTransferredAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesTransferredAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49460,7 +50170,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesTransferredAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesTransferredAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesTransferredAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -49497,7 +50207,7 @@ pub struct IssuesTransferredChanges { pub new_issue: Issue, pub new_repository: Repository, } -impl From<&IssuesTransferredChanges> for IssuesTransferredChanges { +impl ::std::convert::From<&IssuesTransferredChanges> for IssuesTransferredChanges { fn from(value: &IssuesTransferredChanges) -> Self { value.clone() } @@ -49572,7 +50282,7 @@ pub struct IssuesUnassigned { pub repository: Repository, pub sender: User, } -impl From<&IssuesUnassigned> for IssuesUnassigned { +impl ::std::convert::From<&IssuesUnassigned> for IssuesUnassigned { fn from(value: &IssuesUnassigned) -> Self { value.clone() } @@ -49607,7 +50317,7 @@ pub enum IssuesUnassignedAction { #[serde(rename = "unassigned")] Unassigned, } -impl From<&IssuesUnassignedAction> for IssuesUnassignedAction { +impl ::std::convert::From<&IssuesUnassignedAction> for IssuesUnassignedAction { fn from(value: &IssuesUnassignedAction) -> Self { value.clone() } @@ -49619,7 +50329,7 @@ impl ::std::fmt::Display for IssuesUnassignedAction { } } } -impl std::str::FromStr for IssuesUnassignedAction { +impl ::std::str::FromStr for IssuesUnassignedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49628,13 +50338,13 @@ impl std::str::FromStr for IssuesUnassignedAction { } } } -impl std::convert::TryFrom<&str> for IssuesUnassignedAction { +impl ::std::convert::TryFrom<&str> for IssuesUnassignedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesUnassignedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesUnassignedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49642,7 +50352,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesUnassignedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesUnassignedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesUnassignedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -49711,7 +50421,7 @@ pub struct IssuesUnlabeled { pub repository: Repository, pub sender: User, } -impl From<&IssuesUnlabeled> for IssuesUnlabeled { +impl ::std::convert::From<&IssuesUnlabeled> for IssuesUnlabeled { fn from(value: &IssuesUnlabeled) -> Self { value.clone() } @@ -49745,7 +50455,7 @@ pub enum IssuesUnlabeledAction { #[serde(rename = "unlabeled")] Unlabeled, } -impl From<&IssuesUnlabeledAction> for IssuesUnlabeledAction { +impl ::std::convert::From<&IssuesUnlabeledAction> for IssuesUnlabeledAction { fn from(value: &IssuesUnlabeledAction) -> Self { value.clone() } @@ -49757,7 +50467,7 @@ impl ::std::fmt::Display for IssuesUnlabeledAction { } } } -impl std::str::FromStr for IssuesUnlabeledAction { +impl ::std::str::FromStr for IssuesUnlabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49766,13 +50476,13 @@ impl std::str::FromStr for IssuesUnlabeledAction { } } } -impl std::convert::TryFrom<&str> for IssuesUnlabeledAction { +impl ::std::convert::TryFrom<&str> for IssuesUnlabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesUnlabeledAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesUnlabeledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49780,7 +50490,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesUnlabeledAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesUnlabeledAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesUnlabeledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -49865,7 +50575,7 @@ pub struct IssuesUnlocked { pub repository: Repository, pub sender: User, } -impl From<&IssuesUnlocked> for IssuesUnlocked { +impl ::std::convert::From<&IssuesUnlocked> for IssuesUnlocked { fn from(value: &IssuesUnlocked) -> Self { value.clone() } @@ -49899,7 +50609,7 @@ pub enum IssuesUnlockedAction { #[serde(rename = "unlocked")] Unlocked, } -impl From<&IssuesUnlockedAction> for IssuesUnlockedAction { +impl ::std::convert::From<&IssuesUnlockedAction> for IssuesUnlockedAction { fn from(value: &IssuesUnlockedAction) -> Self { value.clone() } @@ -49911,7 +50621,7 @@ impl ::std::fmt::Display for IssuesUnlockedAction { } } } -impl std::str::FromStr for IssuesUnlockedAction { +impl ::std::str::FromStr for IssuesUnlockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -49920,13 +50630,13 @@ impl std::str::FromStr for IssuesUnlockedAction { } } } -impl std::convert::TryFrom<&str> for IssuesUnlockedAction { +impl ::std::convert::TryFrom<&str> for IssuesUnlockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesUnlockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesUnlockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -49934,7 +50644,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesUnlockedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesUnlockedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesUnlockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -50014,7 +50724,7 @@ pub struct IssuesUnlockedIssue { pub url: ::std::string::String, pub user: User, } -impl From<&IssuesUnlockedIssue> for IssuesUnlockedIssue { +impl ::std::convert::From<&IssuesUnlockedIssue> for IssuesUnlockedIssue { fn from(value: &IssuesUnlockedIssue) -> Self { value.clone() } @@ -50040,12 +50750,14 @@ impl ::std::ops::Deref for IssuesUnlockedIssueActiveLockReason { &self.0 } } -impl From for () { +impl ::std::convert::From for () { fn from(value: IssuesUnlockedIssueActiveLockReason) -> Self { value.0 } } -impl From<&IssuesUnlockedIssueActiveLockReason> for IssuesUnlockedIssueActiveLockReason { +impl ::std::convert::From<&IssuesUnlockedIssueActiveLockReason> + for IssuesUnlockedIssueActiveLockReason +{ fn from(value: &IssuesUnlockedIssueActiveLockReason) -> Self { value.clone() } @@ -50110,11 +50822,21 @@ pub struct IssuesUnlockedIssuePullRequest { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, } -impl From<&IssuesUnlockedIssuePullRequest> for IssuesUnlockedIssuePullRequest { +impl ::std::convert::From<&IssuesUnlockedIssuePullRequest> for IssuesUnlockedIssuePullRequest { fn from(value: &IssuesUnlockedIssuePullRequest) -> Self { value.clone() } } +impl ::std::default::Default for IssuesUnlockedIssuePullRequest { + fn default() -> Self { + Self { + diff_url: Default::default(), + html_url: Default::default(), + patch_url: Default::default(), + url: Default::default(), + } + } +} #[doc = "State of the issue; either 'open' or 'closed'"] #[doc = r""] #[doc = r"
JSON schema"] @@ -50148,7 +50870,7 @@ pub enum IssuesUnlockedIssueState { #[serde(rename = "closed")] Closed, } -impl From<&IssuesUnlockedIssueState> for IssuesUnlockedIssueState { +impl ::std::convert::From<&IssuesUnlockedIssueState> for IssuesUnlockedIssueState { fn from(value: &IssuesUnlockedIssueState) -> Self { value.clone() } @@ -50161,7 +50883,7 @@ impl ::std::fmt::Display for IssuesUnlockedIssueState { } } } -impl std::str::FromStr for IssuesUnlockedIssueState { +impl ::std::str::FromStr for IssuesUnlockedIssueState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -50171,13 +50893,13 @@ impl std::str::FromStr for IssuesUnlockedIssueState { } } } -impl std::convert::TryFrom<&str> for IssuesUnlockedIssueState { +impl ::std::convert::TryFrom<&str> for IssuesUnlockedIssueState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesUnlockedIssueState { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesUnlockedIssueState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -50185,7 +50907,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesUnlockedIssueState value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesUnlockedIssueState { +impl ::std::convert::TryFrom<::std::string::String> for IssuesUnlockedIssueState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -50247,7 +50969,7 @@ pub struct IssuesUnpinned { pub repository: Repository, pub sender: User, } -impl From<&IssuesUnpinned> for IssuesUnpinned { +impl ::std::convert::From<&IssuesUnpinned> for IssuesUnpinned { fn from(value: &IssuesUnpinned) -> Self { value.clone() } @@ -50281,7 +51003,7 @@ pub enum IssuesUnpinnedAction { #[serde(rename = "unpinned")] Unpinned, } -impl From<&IssuesUnpinnedAction> for IssuesUnpinnedAction { +impl ::std::convert::From<&IssuesUnpinnedAction> for IssuesUnpinnedAction { fn from(value: &IssuesUnpinnedAction) -> Self { value.clone() } @@ -50293,7 +51015,7 @@ impl ::std::fmt::Display for IssuesUnpinnedAction { } } } -impl std::str::FromStr for IssuesUnpinnedAction { +impl ::std::str::FromStr for IssuesUnpinnedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -50302,13 +51024,13 @@ impl std::str::FromStr for IssuesUnpinnedAction { } } } -impl std::convert::TryFrom<&str> for IssuesUnpinnedAction { +impl ::std::convert::TryFrom<&str> for IssuesUnpinnedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for IssuesUnpinnedAction { +impl ::std::convert::TryFrom<&::std::string::String> for IssuesUnpinnedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -50316,7 +51038,7 @@ impl std::convert::TryFrom<&::std::string::String> for IssuesUnpinnedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for IssuesUnpinnedAction { +impl ::std::convert::TryFrom<::std::string::String> for IssuesUnpinnedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -50390,7 +51112,7 @@ pub struct Label { #[doc = "URL for the label"] pub url: ::std::string::String, } -impl From<&Label> for Label { +impl ::std::convert::From<&Label> for Label { fn from(value: &Label) -> Self { value.clone() } @@ -50451,7 +51173,7 @@ pub struct LabelCreated { pub repository: Repository, pub sender: User, } -impl From<&LabelCreated> for LabelCreated { +impl ::std::convert::From<&LabelCreated> for LabelCreated { fn from(value: &LabelCreated) -> Self { value.clone() } @@ -50485,7 +51207,7 @@ pub enum LabelCreatedAction { #[serde(rename = "created")] Created, } -impl From<&LabelCreatedAction> for LabelCreatedAction { +impl ::std::convert::From<&LabelCreatedAction> for LabelCreatedAction { fn from(value: &LabelCreatedAction) -> Self { value.clone() } @@ -50497,7 +51219,7 @@ impl ::std::fmt::Display for LabelCreatedAction { } } } -impl std::str::FromStr for LabelCreatedAction { +impl ::std::str::FromStr for LabelCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -50506,13 +51228,13 @@ impl std::str::FromStr for LabelCreatedAction { } } } -impl std::convert::TryFrom<&str> for LabelCreatedAction { +impl ::std::convert::TryFrom<&str> for LabelCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for LabelCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for LabelCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -50520,7 +51242,7 @@ impl std::convert::TryFrom<&::std::string::String> for LabelCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for LabelCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for LabelCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -50584,7 +51306,7 @@ pub struct LabelDeleted { pub repository: Repository, pub sender: User, } -impl From<&LabelDeleted> for LabelDeleted { +impl ::std::convert::From<&LabelDeleted> for LabelDeleted { fn from(value: &LabelDeleted) -> Self { value.clone() } @@ -50618,7 +51340,7 @@ pub enum LabelDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&LabelDeletedAction> for LabelDeletedAction { +impl ::std::convert::From<&LabelDeletedAction> for LabelDeletedAction { fn from(value: &LabelDeletedAction) -> Self { value.clone() } @@ -50630,7 +51352,7 @@ impl ::std::fmt::Display for LabelDeletedAction { } } } -impl std::str::FromStr for LabelDeletedAction { +impl ::std::str::FromStr for LabelDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -50639,13 +51361,13 @@ impl std::str::FromStr for LabelDeletedAction { } } } -impl std::convert::TryFrom<&str> for LabelDeletedAction { +impl ::std::convert::TryFrom<&str> for LabelDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for LabelDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for LabelDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -50653,7 +51375,7 @@ impl std::convert::TryFrom<&::std::string::String> for LabelDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for LabelDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for LabelDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -50765,7 +51487,7 @@ pub struct LabelEdited { pub repository: Repository, pub sender: User, } -impl From<&LabelEdited> for LabelEdited { +impl ::std::convert::From<&LabelEdited> for LabelEdited { fn from(value: &LabelEdited) -> Self { value.clone() } @@ -50799,7 +51521,7 @@ pub enum LabelEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&LabelEditedAction> for LabelEditedAction { +impl ::std::convert::From<&LabelEditedAction> for LabelEditedAction { fn from(value: &LabelEditedAction) -> Self { value.clone() } @@ -50811,7 +51533,7 @@ impl ::std::fmt::Display for LabelEditedAction { } } } -impl std::str::FromStr for LabelEditedAction { +impl ::std::str::FromStr for LabelEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -50820,13 +51542,13 @@ impl std::str::FromStr for LabelEditedAction { } } } -impl std::convert::TryFrom<&str> for LabelEditedAction { +impl ::std::convert::TryFrom<&str> for LabelEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for LabelEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for LabelEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -50834,7 +51556,7 @@ impl std::convert::TryFrom<&::std::string::String> for LabelEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for LabelEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for LabelEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -50905,11 +51627,20 @@ pub struct LabelEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option, } -impl From<&LabelEditedChanges> for LabelEditedChanges { +impl ::std::convert::From<&LabelEditedChanges> for LabelEditedChanges { fn from(value: &LabelEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for LabelEditedChanges { + fn default() -> Self { + Self { + color: Default::default(), + description: Default::default(), + name: Default::default(), + } + } +} #[doc = "LabelEditedChangesColor"] #[doc = r""] #[doc = r"
JSON schema"] @@ -50936,7 +51667,7 @@ pub struct LabelEditedChangesColor { #[doc = "The previous version of the color if the action was `edited`."] pub from: ::std::string::String, } -impl From<&LabelEditedChangesColor> for LabelEditedChangesColor { +impl ::std::convert::From<&LabelEditedChangesColor> for LabelEditedChangesColor { fn from(value: &LabelEditedChangesColor) -> Self { value.clone() } @@ -50967,7 +51698,7 @@ pub struct LabelEditedChangesDescription { #[doc = "The previous version of the description if the action was `edited`."] pub from: ::std::string::String, } -impl From<&LabelEditedChangesDescription> for LabelEditedChangesDescription { +impl ::std::convert::From<&LabelEditedChangesDescription> for LabelEditedChangesDescription { fn from(value: &LabelEditedChangesDescription) -> Self { value.clone() } @@ -50998,7 +51729,7 @@ pub struct LabelEditedChangesName { #[doc = "The previous version of the name if the action was `edited`."] pub from: ::std::string::String, } -impl From<&LabelEditedChangesName> for LabelEditedChangesName { +impl ::std::convert::From<&LabelEditedChangesName> for LabelEditedChangesName { fn from(value: &LabelEditedChangesName) -> Self { value.clone() } @@ -51030,22 +51761,22 @@ pub enum LabelEvent { Deleted(LabelDeleted), Edited(LabelEdited), } -impl From<&LabelEvent> for LabelEvent { +impl ::std::convert::From<&LabelEvent> for LabelEvent { fn from(value: &LabelEvent) -> Self { value.clone() } } -impl From for LabelEvent { +impl ::std::convert::From for LabelEvent { fn from(value: LabelCreated) -> Self { Self::Created(value) } } -impl From for LabelEvent { +impl ::std::convert::From for LabelEvent { fn from(value: LabelDeleted) -> Self { Self::Deleted(value) } } -impl From for LabelEvent { +impl ::std::convert::From for LabelEvent { fn from(value: LabelEdited) -> Self { Self::Edited(value) } @@ -51100,7 +51831,7 @@ pub struct License { pub spdx_id: ::std::string::String, pub url: ::std::option::Option<::std::string::String>, } -impl From<&License> for License { +impl ::std::convert::From<&License> for License { fn from(value: &License) -> Self { value.clone() } @@ -51132,7 +51863,7 @@ impl From<&License> for License { pub struct Link { pub href: ::std::string::String, } -impl From<&Link> for Link { +impl ::std::convert::From<&Link> for Link { fn from(value: &Link) -> Self { value.clone() } @@ -51265,7 +51996,7 @@ pub struct MarketplacePurchase { pub plan: MarketplacePurchasePlan, pub unit_count: i64, } -impl From<&MarketplacePurchase> for MarketplacePurchase { +impl ::std::convert::From<&MarketplacePurchase> for MarketplacePurchase { fn from(value: &MarketplacePurchase) -> Self { value.clone() } @@ -51315,7 +52046,7 @@ pub struct MarketplacePurchaseAccount { #[serde(rename = "type")] pub type_: ::std::string::String, } -impl From<&MarketplacePurchaseAccount> for MarketplacePurchaseAccount { +impl ::std::convert::From<&MarketplacePurchaseAccount> for MarketplacePurchaseAccount { fn from(value: &MarketplacePurchaseAccount) -> Self { value.clone() } @@ -51474,7 +52205,7 @@ pub struct MarketplacePurchaseCancelled { pub previous_marketplace_purchase: ::std::option::Option, pub sender: MarketplacePurchaseCancelledSender, } -impl From<&MarketplacePurchaseCancelled> for MarketplacePurchaseCancelled { +impl ::std::convert::From<&MarketplacePurchaseCancelled> for MarketplacePurchaseCancelled { fn from(value: &MarketplacePurchaseCancelled) -> Self { value.clone() } @@ -51508,7 +52239,9 @@ pub enum MarketplacePurchaseCancelledAction { #[serde(rename = "cancelled")] Cancelled, } -impl From<&MarketplacePurchaseCancelledAction> for MarketplacePurchaseCancelledAction { +impl ::std::convert::From<&MarketplacePurchaseCancelledAction> + for MarketplacePurchaseCancelledAction +{ fn from(value: &MarketplacePurchaseCancelledAction) -> Self { value.clone() } @@ -51520,7 +52253,7 @@ impl ::std::fmt::Display for MarketplacePurchaseCancelledAction { } } } -impl std::str::FromStr for MarketplacePurchaseCancelledAction { +impl ::std::str::FromStr for MarketplacePurchaseCancelledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -51529,13 +52262,13 @@ impl std::str::FromStr for MarketplacePurchaseCancelledAction { } } } -impl std::convert::TryFrom<&str> for MarketplacePurchaseCancelledAction { +impl ::std::convert::TryFrom<&str> for MarketplacePurchaseCancelledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchaseCancelledAction { +impl ::std::convert::TryFrom<&::std::string::String> for MarketplacePurchaseCancelledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -51543,7 +52276,7 @@ impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchaseCancel value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MarketplacePurchaseCancelledAction { +impl ::std::convert::TryFrom<::std::string::String> for MarketplacePurchaseCancelledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -51588,7 +52321,7 @@ pub struct MarketplacePurchaseCancelledMarketplacePurchase { pub plan: MarketplacePurchaseCancelledMarketplacePurchasePlan, pub unit_count: i64, } -impl From<&MarketplacePurchaseCancelledMarketplacePurchase> +impl ::std::convert::From<&MarketplacePurchaseCancelledMarketplacePurchase> for MarketplacePurchaseCancelledMarketplacePurchase { fn from(value: &MarketplacePurchaseCancelledMarketplacePurchase) -> Self { @@ -51640,7 +52373,7 @@ pub struct MarketplacePurchaseCancelledMarketplacePurchaseAccount { #[serde(rename = "type")] pub type_: ::std::string::String, } -impl From<&MarketplacePurchaseCancelledMarketplacePurchaseAccount> +impl ::std::convert::From<&MarketplacePurchaseCancelledMarketplacePurchaseAccount> for MarketplacePurchaseCancelledMarketplacePurchaseAccount { fn from(value: &MarketplacePurchaseCancelledMarketplacePurchaseAccount) -> Self { @@ -51717,7 +52450,7 @@ pub struct MarketplacePurchaseCancelledMarketplacePurchasePlan { pub unit_name: ::std::option::Option<::std::string::String>, pub yearly_price_in_cents: i64, } -impl From<&MarketplacePurchaseCancelledMarketplacePurchasePlan> +impl ::std::convert::From<&MarketplacePurchaseCancelledMarketplacePurchasePlan> for MarketplacePurchaseCancelledMarketplacePurchasePlan { fn from(value: &MarketplacePurchaseCancelledMarketplacePurchasePlan) -> Self { @@ -51846,7 +52579,9 @@ pub struct MarketplacePurchaseCancelledSender { pub type_: ::std::string::String, pub url: ::std::string::String, } -impl From<&MarketplacePurchaseCancelledSender> for MarketplacePurchaseCancelledSender { +impl ::std::convert::From<&MarketplacePurchaseCancelledSender> + for MarketplacePurchaseCancelledSender +{ fn from(value: &MarketplacePurchaseCancelledSender) -> Self { value.clone() } @@ -52005,7 +52740,7 @@ pub struct MarketplacePurchaseChanged { pub previous_marketplace_purchase: ::std::option::Option, pub sender: MarketplacePurchaseChangedSender, } -impl From<&MarketplacePurchaseChanged> for MarketplacePurchaseChanged { +impl ::std::convert::From<&MarketplacePurchaseChanged> for MarketplacePurchaseChanged { fn from(value: &MarketplacePurchaseChanged) -> Self { value.clone() } @@ -52039,7 +52774,7 @@ pub enum MarketplacePurchaseChangedAction { #[serde(rename = "changed")] Changed, } -impl From<&MarketplacePurchaseChangedAction> for MarketplacePurchaseChangedAction { +impl ::std::convert::From<&MarketplacePurchaseChangedAction> for MarketplacePurchaseChangedAction { fn from(value: &MarketplacePurchaseChangedAction) -> Self { value.clone() } @@ -52051,7 +52786,7 @@ impl ::std::fmt::Display for MarketplacePurchaseChangedAction { } } } -impl std::str::FromStr for MarketplacePurchaseChangedAction { +impl ::std::str::FromStr for MarketplacePurchaseChangedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -52060,13 +52795,13 @@ impl std::str::FromStr for MarketplacePurchaseChangedAction { } } } -impl std::convert::TryFrom<&str> for MarketplacePurchaseChangedAction { +impl ::std::convert::TryFrom<&str> for MarketplacePurchaseChangedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchaseChangedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MarketplacePurchaseChangedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -52074,7 +52809,7 @@ impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchaseChange value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MarketplacePurchaseChangedAction { +impl ::std::convert::TryFrom<::std::string::String> for MarketplacePurchaseChangedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -52119,7 +52854,7 @@ pub struct MarketplacePurchaseChangedMarketplacePurchase { pub plan: MarketplacePurchaseChangedMarketplacePurchasePlan, pub unit_count: i64, } -impl From<&MarketplacePurchaseChangedMarketplacePurchase> +impl ::std::convert::From<&MarketplacePurchaseChangedMarketplacePurchase> for MarketplacePurchaseChangedMarketplacePurchase { fn from(value: &MarketplacePurchaseChangedMarketplacePurchase) -> Self { @@ -52171,7 +52906,7 @@ pub struct MarketplacePurchaseChangedMarketplacePurchaseAccount { #[serde(rename = "type")] pub type_: ::std::string::String, } -impl From<&MarketplacePurchaseChangedMarketplacePurchaseAccount> +impl ::std::convert::From<&MarketplacePurchaseChangedMarketplacePurchaseAccount> for MarketplacePurchaseChangedMarketplacePurchaseAccount { fn from(value: &MarketplacePurchaseChangedMarketplacePurchaseAccount) -> Self { @@ -52248,7 +52983,7 @@ pub struct MarketplacePurchaseChangedMarketplacePurchasePlan { pub unit_name: ::std::option::Option<::std::string::String>, pub yearly_price_in_cents: i64, } -impl From<&MarketplacePurchaseChangedMarketplacePurchasePlan> +impl ::std::convert::From<&MarketplacePurchaseChangedMarketplacePurchasePlan> for MarketplacePurchaseChangedMarketplacePurchasePlan { fn from(value: &MarketplacePurchaseChangedMarketplacePurchasePlan) -> Self { @@ -52377,7 +53112,7 @@ pub struct MarketplacePurchaseChangedSender { pub type_: ::std::string::String, pub url: ::std::string::String, } -impl From<&MarketplacePurchaseChangedSender> for MarketplacePurchaseChangedSender { +impl ::std::convert::From<&MarketplacePurchaseChangedSender> for MarketplacePurchaseChangedSender { fn from(value: &MarketplacePurchaseChangedSender) -> Self { value.clone() } @@ -52417,32 +53152,32 @@ pub enum MarketplacePurchaseEvent { PendingChangeCancelled(MarketplacePurchasePendingChangeCancelled), Purchased(MarketplacePurchasePurchased), } -impl From<&MarketplacePurchaseEvent> for MarketplacePurchaseEvent { +impl ::std::convert::From<&MarketplacePurchaseEvent> for MarketplacePurchaseEvent { fn from(value: &MarketplacePurchaseEvent) -> Self { value.clone() } } -impl From for MarketplacePurchaseEvent { +impl ::std::convert::From for MarketplacePurchaseEvent { fn from(value: MarketplacePurchaseCancelled) -> Self { Self::Cancelled(value) } } -impl From for MarketplacePurchaseEvent { +impl ::std::convert::From for MarketplacePurchaseEvent { fn from(value: MarketplacePurchaseChanged) -> Self { Self::Changed(value) } } -impl From for MarketplacePurchaseEvent { +impl ::std::convert::From for MarketplacePurchaseEvent { fn from(value: MarketplacePurchasePendingChange) -> Self { Self::PendingChange(value) } } -impl From for MarketplacePurchaseEvent { +impl ::std::convert::From for MarketplacePurchaseEvent { fn from(value: MarketplacePurchasePendingChangeCancelled) -> Self { Self::PendingChangeCancelled(value) } } -impl From for MarketplacePurchaseEvent { +impl ::std::convert::From for MarketplacePurchaseEvent { fn from(value: MarketplacePurchasePurchased) -> Self { Self::Purchased(value) } @@ -52601,7 +53336,7 @@ pub struct MarketplacePurchasePendingChange { pub previous_marketplace_purchase: ::std::option::Option, pub sender: MarketplacePurchasePendingChangeSender, } -impl From<&MarketplacePurchasePendingChange> for MarketplacePurchasePendingChange { +impl ::std::convert::From<&MarketplacePurchasePendingChange> for MarketplacePurchasePendingChange { fn from(value: &MarketplacePurchasePendingChange) -> Self { value.clone() } @@ -52635,7 +53370,9 @@ pub enum MarketplacePurchasePendingChangeAction { #[serde(rename = "pending_change")] PendingChange, } -impl From<&MarketplacePurchasePendingChangeAction> for MarketplacePurchasePendingChangeAction { +impl ::std::convert::From<&MarketplacePurchasePendingChangeAction> + for MarketplacePurchasePendingChangeAction +{ fn from(value: &MarketplacePurchasePendingChangeAction) -> Self { value.clone() } @@ -52647,7 +53384,7 @@ impl ::std::fmt::Display for MarketplacePurchasePendingChangeAction { } } } -impl std::str::FromStr for MarketplacePurchasePendingChangeAction { +impl ::std::str::FromStr for MarketplacePurchasePendingChangeAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -52656,13 +53393,13 @@ impl std::str::FromStr for MarketplacePurchasePendingChangeAction { } } } -impl std::convert::TryFrom<&str> for MarketplacePurchasePendingChangeAction { +impl ::std::convert::TryFrom<&str> for MarketplacePurchasePendingChangeAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePendingChangeAction { +impl ::std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePendingChangeAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -52670,7 +53407,7 @@ impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePendin value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MarketplacePurchasePendingChangeAction { +impl ::std::convert::TryFrom<::std::string::String> for MarketplacePurchasePendingChangeAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -52832,7 +53569,7 @@ pub struct MarketplacePurchasePendingChangeCancelled { pub previous_marketplace_purchase: ::std::option::Option, pub sender: MarketplacePurchasePendingChangeCancelledSender, } -impl From<&MarketplacePurchasePendingChangeCancelled> +impl ::std::convert::From<&MarketplacePurchasePendingChangeCancelled> for MarketplacePurchasePendingChangeCancelled { fn from(value: &MarketplacePurchasePendingChangeCancelled) -> Self { @@ -52868,7 +53605,7 @@ pub enum MarketplacePurchasePendingChangeCancelledAction { #[serde(rename = "pending_change_cancelled")] PendingChangeCancelled, } -impl From<&MarketplacePurchasePendingChangeCancelledAction> +impl ::std::convert::From<&MarketplacePurchasePendingChangeCancelledAction> for MarketplacePurchasePendingChangeCancelledAction { fn from(value: &MarketplacePurchasePendingChangeCancelledAction) -> Self { @@ -52882,7 +53619,7 @@ impl ::std::fmt::Display for MarketplacePurchasePendingChangeCancelledAction { } } } -impl std::str::FromStr for MarketplacePurchasePendingChangeCancelledAction { +impl ::std::str::FromStr for MarketplacePurchasePendingChangeCancelledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -52891,13 +53628,13 @@ impl std::str::FromStr for MarketplacePurchasePendingChangeCancelledAction { } } } -impl std::convert::TryFrom<&str> for MarketplacePurchasePendingChangeCancelledAction { +impl ::std::convert::TryFrom<&str> for MarketplacePurchasePendingChangeCancelledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePendingChangeCancelledAction { type Error = self::error::ConversionError; @@ -52907,7 +53644,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for MarketplacePurchasePendingChangeCancelledAction { type Error = self::error::ConversionError; @@ -52954,7 +53691,7 @@ pub struct MarketplacePurchasePendingChangeCancelledMarketplacePurchase { pub plan: MarketplacePurchasePendingChangeCancelledMarketplacePurchasePlan, pub unit_count: i64, } -impl From<&MarketplacePurchasePendingChangeCancelledMarketplacePurchase> +impl ::std::convert::From<&MarketplacePurchasePendingChangeCancelledMarketplacePurchase> for MarketplacePurchasePendingChangeCancelledMarketplacePurchase { fn from(value: &MarketplacePurchasePendingChangeCancelledMarketplacePurchase) -> Self { @@ -53006,7 +53743,7 @@ pub struct MarketplacePurchasePendingChangeCancelledMarketplacePurchaseAccount { #[serde(rename = "type")] pub type_: ::std::string::String, } -impl From<&MarketplacePurchasePendingChangeCancelledMarketplacePurchaseAccount> +impl ::std::convert::From<&MarketplacePurchasePendingChangeCancelledMarketplacePurchaseAccount> for MarketplacePurchasePendingChangeCancelledMarketplacePurchaseAccount { fn from(value: &MarketplacePurchasePendingChangeCancelledMarketplacePurchaseAccount) -> Self { @@ -53083,7 +53820,7 @@ pub struct MarketplacePurchasePendingChangeCancelledMarketplacePurchasePlan { pub unit_name: ::std::option::Option<::std::string::String>, pub yearly_price_in_cents: i64, } -impl From<&MarketplacePurchasePendingChangeCancelledMarketplacePurchasePlan> +impl ::std::convert::From<&MarketplacePurchasePendingChangeCancelledMarketplacePurchasePlan> for MarketplacePurchasePendingChangeCancelledMarketplacePurchasePlan { fn from(value: &MarketplacePurchasePendingChangeCancelledMarketplacePurchasePlan) -> Self { @@ -53212,7 +53949,7 @@ pub struct MarketplacePurchasePendingChangeCancelledSender { pub type_: ::std::string::String, pub url: ::std::string::String, } -impl From<&MarketplacePurchasePendingChangeCancelledSender> +impl ::std::convert::From<&MarketplacePurchasePendingChangeCancelledSender> for MarketplacePurchasePendingChangeCancelledSender { fn from(value: &MarketplacePurchasePendingChangeCancelledSender) -> Self { @@ -53256,7 +53993,7 @@ pub struct MarketplacePurchasePendingChangeMarketplacePurchase { pub plan: MarketplacePurchasePendingChangeMarketplacePurchasePlan, pub unit_count: i64, } -impl From<&MarketplacePurchasePendingChangeMarketplacePurchase> +impl ::std::convert::From<&MarketplacePurchasePendingChangeMarketplacePurchase> for MarketplacePurchasePendingChangeMarketplacePurchase { fn from(value: &MarketplacePurchasePendingChangeMarketplacePurchase) -> Self { @@ -53308,7 +54045,7 @@ pub struct MarketplacePurchasePendingChangeMarketplacePurchaseAccount { #[serde(rename = "type")] pub type_: ::std::string::String, } -impl From<&MarketplacePurchasePendingChangeMarketplacePurchaseAccount> +impl ::std::convert::From<&MarketplacePurchasePendingChangeMarketplacePurchaseAccount> for MarketplacePurchasePendingChangeMarketplacePurchaseAccount { fn from(value: &MarketplacePurchasePendingChangeMarketplacePurchaseAccount) -> Self { @@ -53385,7 +54122,7 @@ pub struct MarketplacePurchasePendingChangeMarketplacePurchasePlan { pub unit_name: ::std::option::Option<::std::string::String>, pub yearly_price_in_cents: i64, } -impl From<&MarketplacePurchasePendingChangeMarketplacePurchasePlan> +impl ::std::convert::From<&MarketplacePurchasePendingChangeMarketplacePurchasePlan> for MarketplacePurchasePendingChangeMarketplacePurchasePlan { fn from(value: &MarketplacePurchasePendingChangeMarketplacePurchasePlan) -> Self { @@ -53514,7 +54251,9 @@ pub struct MarketplacePurchasePendingChangeSender { pub type_: ::std::string::String, pub url: ::std::string::String, } -impl From<&MarketplacePurchasePendingChangeSender> for MarketplacePurchasePendingChangeSender { +impl ::std::convert::From<&MarketplacePurchasePendingChangeSender> + for MarketplacePurchasePendingChangeSender +{ fn from(value: &MarketplacePurchasePendingChangeSender) -> Self { value.clone() } @@ -53589,7 +54328,7 @@ pub struct MarketplacePurchasePlan { pub unit_name: ::std::option::Option<::std::string::String>, pub yearly_price_in_cents: i64, } -impl From<&MarketplacePurchasePlan> for MarketplacePurchasePlan { +impl ::std::convert::From<&MarketplacePurchasePlan> for MarketplacePurchasePlan { fn from(value: &MarketplacePurchasePlan) -> Self { value.clone() } @@ -53748,7 +54487,7 @@ pub struct MarketplacePurchasePurchased { pub previous_marketplace_purchase: ::std::option::Option, pub sender: MarketplacePurchasePurchasedSender, } -impl From<&MarketplacePurchasePurchased> for MarketplacePurchasePurchased { +impl ::std::convert::From<&MarketplacePurchasePurchased> for MarketplacePurchasePurchased { fn from(value: &MarketplacePurchasePurchased) -> Self { value.clone() } @@ -53782,7 +54521,9 @@ pub enum MarketplacePurchasePurchasedAction { #[serde(rename = "purchased")] Purchased, } -impl From<&MarketplacePurchasePurchasedAction> for MarketplacePurchasePurchasedAction { +impl ::std::convert::From<&MarketplacePurchasePurchasedAction> + for MarketplacePurchasePurchasedAction +{ fn from(value: &MarketplacePurchasePurchasedAction) -> Self { value.clone() } @@ -53794,7 +54535,7 @@ impl ::std::fmt::Display for MarketplacePurchasePurchasedAction { } } } -impl std::str::FromStr for MarketplacePurchasePurchasedAction { +impl ::std::str::FromStr for MarketplacePurchasePurchasedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -53803,13 +54544,13 @@ impl std::str::FromStr for MarketplacePurchasePurchasedAction { } } } -impl std::convert::TryFrom<&str> for MarketplacePurchasePurchasedAction { +impl ::std::convert::TryFrom<&str> for MarketplacePurchasePurchasedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePurchasedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePurchasedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -53817,7 +54558,7 @@ impl std::convert::TryFrom<&::std::string::String> for MarketplacePurchasePurcha value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MarketplacePurchasePurchasedAction { +impl ::std::convert::TryFrom<::std::string::String> for MarketplacePurchasePurchasedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -53862,7 +54603,7 @@ pub struct MarketplacePurchasePurchasedMarketplacePurchase { pub plan: MarketplacePurchasePurchasedMarketplacePurchasePlan, pub unit_count: i64, } -impl From<&MarketplacePurchasePurchasedMarketplacePurchase> +impl ::std::convert::From<&MarketplacePurchasePurchasedMarketplacePurchase> for MarketplacePurchasePurchasedMarketplacePurchase { fn from(value: &MarketplacePurchasePurchasedMarketplacePurchase) -> Self { @@ -53914,7 +54655,7 @@ pub struct MarketplacePurchasePurchasedMarketplacePurchaseAccount { #[serde(rename = "type")] pub type_: ::std::string::String, } -impl From<&MarketplacePurchasePurchasedMarketplacePurchaseAccount> +impl ::std::convert::From<&MarketplacePurchasePurchasedMarketplacePurchaseAccount> for MarketplacePurchasePurchasedMarketplacePurchaseAccount { fn from(value: &MarketplacePurchasePurchasedMarketplacePurchaseAccount) -> Self { @@ -53991,7 +54732,7 @@ pub struct MarketplacePurchasePurchasedMarketplacePurchasePlan { pub unit_name: ::std::option::Option<::std::string::String>, pub yearly_price_in_cents: i64, } -impl From<&MarketplacePurchasePurchasedMarketplacePurchasePlan> +impl ::std::convert::From<&MarketplacePurchasePurchasedMarketplacePurchasePlan> for MarketplacePurchasePurchasedMarketplacePurchasePlan { fn from(value: &MarketplacePurchasePurchasedMarketplacePurchasePlan) -> Self { @@ -54120,7 +54861,9 @@ pub struct MarketplacePurchasePurchasedSender { pub type_: ::std::string::String, pub url: ::std::string::String, } -impl From<&MarketplacePurchasePurchasedSender> for MarketplacePurchasePurchasedSender { +impl ::std::convert::From<&MarketplacePurchasePurchasedSender> + for MarketplacePurchasePurchasedSender +{ fn from(value: &MarketplacePurchasePurchasedSender) -> Self { value.clone() } @@ -54201,7 +54944,7 @@ pub struct MemberAdded { pub repository: Repository, pub sender: User, } -impl From<&MemberAdded> for MemberAdded { +impl ::std::convert::From<&MemberAdded> for MemberAdded { fn from(value: &MemberAdded) -> Self { value.clone() } @@ -54235,7 +54978,7 @@ pub enum MemberAddedAction { #[serde(rename = "added")] Added, } -impl From<&MemberAddedAction> for MemberAddedAction { +impl ::std::convert::From<&MemberAddedAction> for MemberAddedAction { fn from(value: &MemberAddedAction) -> Self { value.clone() } @@ -54247,7 +54990,7 @@ impl ::std::fmt::Display for MemberAddedAction { } } } -impl std::str::FromStr for MemberAddedAction { +impl ::std::str::FromStr for MemberAddedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -54256,13 +54999,13 @@ impl std::str::FromStr for MemberAddedAction { } } } -impl std::convert::TryFrom<&str> for MemberAddedAction { +impl ::std::convert::TryFrom<&str> for MemberAddedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MemberAddedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MemberAddedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -54270,7 +55013,7 @@ impl std::convert::TryFrom<&::std::string::String> for MemberAddedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MemberAddedAction { +impl ::std::convert::TryFrom<::std::string::String> for MemberAddedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -54313,11 +55056,18 @@ pub struct MemberAddedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub permission: ::std::option::Option, } -impl From<&MemberAddedChanges> for MemberAddedChanges { +impl ::std::convert::From<&MemberAddedChanges> for MemberAddedChanges { fn from(value: &MemberAddedChanges) -> Self { value.clone() } } +impl ::std::default::Default for MemberAddedChanges { + fn default() -> Self { + Self { + permission: Default::default(), + } + } +} #[doc = "MemberAddedChangesPermission"] #[doc = r""] #[doc = r"
JSON schema"] @@ -54346,7 +55096,7 @@ impl From<&MemberAddedChanges> for MemberAddedChanges { pub struct MemberAddedChangesPermission { pub to: MemberAddedChangesPermissionTo, } -impl From<&MemberAddedChangesPermission> for MemberAddedChangesPermission { +impl ::std::convert::From<&MemberAddedChangesPermission> for MemberAddedChangesPermission { fn from(value: &MemberAddedChangesPermission) -> Self { value.clone() } @@ -54383,7 +55133,7 @@ pub enum MemberAddedChangesPermissionTo { #[serde(rename = "admin")] Admin, } -impl From<&MemberAddedChangesPermissionTo> for MemberAddedChangesPermissionTo { +impl ::std::convert::From<&MemberAddedChangesPermissionTo> for MemberAddedChangesPermissionTo { fn from(value: &MemberAddedChangesPermissionTo) -> Self { value.clone() } @@ -54396,7 +55146,7 @@ impl ::std::fmt::Display for MemberAddedChangesPermissionTo { } } } -impl std::str::FromStr for MemberAddedChangesPermissionTo { +impl ::std::str::FromStr for MemberAddedChangesPermissionTo { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -54406,13 +55156,13 @@ impl std::str::FromStr for MemberAddedChangesPermissionTo { } } } -impl std::convert::TryFrom<&str> for MemberAddedChangesPermissionTo { +impl ::std::convert::TryFrom<&str> for MemberAddedChangesPermissionTo { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MemberAddedChangesPermissionTo { +impl ::std::convert::TryFrom<&::std::string::String> for MemberAddedChangesPermissionTo { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -54420,7 +55170,7 @@ impl std::convert::TryFrom<&::std::string::String> for MemberAddedChangesPermiss value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MemberAddedChangesPermissionTo { +impl ::std::convert::TryFrom<::std::string::String> for MemberAddedChangesPermissionTo { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -54504,7 +55254,7 @@ pub struct MemberEdited { pub repository: Repository, pub sender: User, } -impl From<&MemberEdited> for MemberEdited { +impl ::std::convert::From<&MemberEdited> for MemberEdited { fn from(value: &MemberEdited) -> Self { value.clone() } @@ -54538,7 +55288,7 @@ pub enum MemberEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&MemberEditedAction> for MemberEditedAction { +impl ::std::convert::From<&MemberEditedAction> for MemberEditedAction { fn from(value: &MemberEditedAction) -> Self { value.clone() } @@ -54550,7 +55300,7 @@ impl ::std::fmt::Display for MemberEditedAction { } } } -impl std::str::FromStr for MemberEditedAction { +impl ::std::str::FromStr for MemberEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -54559,13 +55309,13 @@ impl std::str::FromStr for MemberEditedAction { } } } -impl std::convert::TryFrom<&str> for MemberEditedAction { +impl ::std::convert::TryFrom<&str> for MemberEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MemberEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MemberEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -54573,7 +55323,7 @@ impl std::convert::TryFrom<&::std::string::String> for MemberEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MemberEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for MemberEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -54616,7 +55366,7 @@ impl std::convert::TryFrom<::std::string::String> for MemberEditedAction { pub struct MemberEditedChanges { pub old_permission: MemberEditedChangesOldPermission, } -impl From<&MemberEditedChanges> for MemberEditedChanges { +impl ::std::convert::From<&MemberEditedChanges> for MemberEditedChanges { fn from(value: &MemberEditedChanges) -> Self { value.clone() } @@ -54647,7 +55397,7 @@ pub struct MemberEditedChangesOldPermission { #[doc = "The previous permissions of the collaborator if the action was edited."] pub from: ::std::string::String, } -impl From<&MemberEditedChangesOldPermission> for MemberEditedChangesOldPermission { +impl ::std::convert::From<&MemberEditedChangesOldPermission> for MemberEditedChangesOldPermission { fn from(value: &MemberEditedChangesOldPermission) -> Self { value.clone() } @@ -54679,22 +55429,22 @@ pub enum MemberEvent { Edited(MemberEdited), Removed(MemberRemoved), } -impl From<&MemberEvent> for MemberEvent { +impl ::std::convert::From<&MemberEvent> for MemberEvent { fn from(value: &MemberEvent) -> Self { value.clone() } } -impl From for MemberEvent { +impl ::std::convert::From for MemberEvent { fn from(value: MemberAdded) -> Self { Self::Added(value) } } -impl From for MemberEvent { +impl ::std::convert::From for MemberEvent { fn from(value: MemberEdited) -> Self { Self::Edited(value) } } -impl From for MemberEvent { +impl ::std::convert::From for MemberEvent { fn from(value: MemberRemoved) -> Self { Self::Removed(value) } @@ -54750,7 +55500,7 @@ pub struct MemberRemoved { pub repository: Repository, pub sender: User, } -impl From<&MemberRemoved> for MemberRemoved { +impl ::std::convert::From<&MemberRemoved> for MemberRemoved { fn from(value: &MemberRemoved) -> Self { value.clone() } @@ -54784,7 +55534,7 @@ pub enum MemberRemovedAction { #[serde(rename = "removed")] Removed, } -impl From<&MemberRemovedAction> for MemberRemovedAction { +impl ::std::convert::From<&MemberRemovedAction> for MemberRemovedAction { fn from(value: &MemberRemovedAction) -> Self { value.clone() } @@ -54796,7 +55546,7 @@ impl ::std::fmt::Display for MemberRemovedAction { } } } -impl std::str::FromStr for MemberRemovedAction { +impl ::std::str::FromStr for MemberRemovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -54805,13 +55555,13 @@ impl std::str::FromStr for MemberRemovedAction { } } } -impl std::convert::TryFrom<&str> for MemberRemovedAction { +impl ::std::convert::TryFrom<&str> for MemberRemovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MemberRemovedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MemberRemovedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -54819,7 +55569,7 @@ impl std::convert::TryFrom<&::std::string::String> for MemberRemovedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MemberRemovedAction { +impl ::std::convert::TryFrom<::std::string::String> for MemberRemovedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -54876,7 +55626,7 @@ pub struct Membership { pub url: ::std::string::String, pub user: User, } -impl From<&Membership> for Membership { +impl ::std::convert::From<&Membership> for Membership { fn from(value: &Membership) -> Self { value.clone() } @@ -54949,7 +55699,7 @@ pub struct MembershipAdded { #[doc = "The [team](https://docs.github.com/en/rest/reference/teams) for the membership."] pub team: Team, } -impl From<&MembershipAdded> for MembershipAdded { +impl ::std::convert::From<&MembershipAdded> for MembershipAdded { fn from(value: &MembershipAdded) -> Self { value.clone() } @@ -54983,7 +55733,7 @@ pub enum MembershipAddedAction { #[serde(rename = "added")] Added, } -impl From<&MembershipAddedAction> for MembershipAddedAction { +impl ::std::convert::From<&MembershipAddedAction> for MembershipAddedAction { fn from(value: &MembershipAddedAction) -> Self { value.clone() } @@ -54995,7 +55745,7 @@ impl ::std::fmt::Display for MembershipAddedAction { } } } -impl std::str::FromStr for MembershipAddedAction { +impl ::std::str::FromStr for MembershipAddedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -55004,13 +55754,13 @@ impl std::str::FromStr for MembershipAddedAction { } } } -impl std::convert::TryFrom<&str> for MembershipAddedAction { +impl ::std::convert::TryFrom<&str> for MembershipAddedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MembershipAddedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MembershipAddedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -55018,7 +55768,7 @@ impl std::convert::TryFrom<&::std::string::String> for MembershipAddedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MembershipAddedAction { +impl ::std::convert::TryFrom<::std::string::String> for MembershipAddedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -55056,7 +55806,7 @@ pub enum MembershipAddedScope { #[serde(rename = "team")] Team, } -impl From<&MembershipAddedScope> for MembershipAddedScope { +impl ::std::convert::From<&MembershipAddedScope> for MembershipAddedScope { fn from(value: &MembershipAddedScope) -> Self { value.clone() } @@ -55068,7 +55818,7 @@ impl ::std::fmt::Display for MembershipAddedScope { } } } -impl std::str::FromStr for MembershipAddedScope { +impl ::std::str::FromStr for MembershipAddedScope { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -55077,13 +55827,13 @@ impl std::str::FromStr for MembershipAddedScope { } } } -impl std::convert::TryFrom<&str> for MembershipAddedScope { +impl ::std::convert::TryFrom<&str> for MembershipAddedScope { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MembershipAddedScope { +impl ::std::convert::TryFrom<&::std::string::String> for MembershipAddedScope { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -55091,7 +55841,7 @@ impl std::convert::TryFrom<&::std::string::String> for MembershipAddedScope { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MembershipAddedScope { +impl ::std::convert::TryFrom<::std::string::String> for MembershipAddedScope { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -55122,17 +55872,17 @@ pub enum MembershipEvent { Added(MembershipAdded), Removed(MembershipRemoved), } -impl From<&MembershipEvent> for MembershipEvent { +impl ::std::convert::From<&MembershipEvent> for MembershipEvent { fn from(value: &MembershipEvent) -> Self { value.clone() } } -impl From for MembershipEvent { +impl ::std::convert::From for MembershipEvent { fn from(value: MembershipAdded) -> Self { Self::Added(value) } } -impl From for MembershipEvent { +impl ::std::convert::From for MembershipEvent { fn from(value: MembershipRemoved) -> Self { Self::Removed(value) } @@ -55229,7 +55979,7 @@ pub struct MembershipRemoved { #[doc = "The [team](https://docs.github.com/en/rest/reference/teams) for the membership."] pub team: MembershipRemovedTeam, } -impl From<&MembershipRemoved> for MembershipRemoved { +impl ::std::convert::From<&MembershipRemoved> for MembershipRemoved { fn from(value: &MembershipRemoved) -> Self { value.clone() } @@ -55263,7 +56013,7 @@ pub enum MembershipRemovedAction { #[serde(rename = "removed")] Removed, } -impl From<&MembershipRemovedAction> for MembershipRemovedAction { +impl ::std::convert::From<&MembershipRemovedAction> for MembershipRemovedAction { fn from(value: &MembershipRemovedAction) -> Self { value.clone() } @@ -55275,7 +56025,7 @@ impl ::std::fmt::Display for MembershipRemovedAction { } } } -impl std::str::FromStr for MembershipRemovedAction { +impl ::std::str::FromStr for MembershipRemovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -55284,13 +56034,13 @@ impl std::str::FromStr for MembershipRemovedAction { } } } -impl std::convert::TryFrom<&str> for MembershipRemovedAction { +impl ::std::convert::TryFrom<&str> for MembershipRemovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MembershipRemovedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MembershipRemovedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -55298,7 +56048,7 @@ impl std::convert::TryFrom<&::std::string::String> for MembershipRemovedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MembershipRemovedAction { +impl ::std::convert::TryFrom<::std::string::String> for MembershipRemovedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -55339,7 +56089,7 @@ pub enum MembershipRemovedScope { #[serde(rename = "organization")] Organization, } -impl From<&MembershipRemovedScope> for MembershipRemovedScope { +impl ::std::convert::From<&MembershipRemovedScope> for MembershipRemovedScope { fn from(value: &MembershipRemovedScope) -> Self { value.clone() } @@ -55352,7 +56102,7 @@ impl ::std::fmt::Display for MembershipRemovedScope { } } } -impl std::str::FromStr for MembershipRemovedScope { +impl ::std::str::FromStr for MembershipRemovedScope { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -55362,13 +56112,13 @@ impl std::str::FromStr for MembershipRemovedScope { } } } -impl std::convert::TryFrom<&str> for MembershipRemovedScope { +impl ::std::convert::TryFrom<&str> for MembershipRemovedScope { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MembershipRemovedScope { +impl ::std::convert::TryFrom<&::std::string::String> for MembershipRemovedScope { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -55376,7 +56126,7 @@ impl std::convert::TryFrom<&::std::string::String> for MembershipRemovedScope { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MembershipRemovedScope { +impl ::std::convert::TryFrom<::std::string::String> for MembershipRemovedScope { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -55429,12 +56179,12 @@ pub enum MembershipRemovedTeam { name: ::std::string::String, }, } -impl From<&MembershipRemovedTeam> for MembershipRemovedTeam { +impl ::std::convert::From<&MembershipRemovedTeam> for MembershipRemovedTeam { fn from(value: &MembershipRemovedTeam) -> Self { value.clone() } } -impl From for MembershipRemovedTeam { +impl ::std::convert::From for MembershipRemovedTeam { fn from(value: Team) -> Self { Self::Variant0(value) } @@ -55550,7 +56300,7 @@ pub struct MetaDeleted { pub repository: Repository, pub sender: User, } -impl From<&MetaDeleted> for MetaDeleted { +impl ::std::convert::From<&MetaDeleted> for MetaDeleted { fn from(value: &MetaDeleted) -> Self { value.clone() } @@ -55584,7 +56334,7 @@ pub enum MetaDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&MetaDeletedAction> for MetaDeletedAction { +impl ::std::convert::From<&MetaDeletedAction> for MetaDeletedAction { fn from(value: &MetaDeletedAction) -> Self { value.clone() } @@ -55596,7 +56346,7 @@ impl ::std::fmt::Display for MetaDeletedAction { } } } -impl std::str::FromStr for MetaDeletedAction { +impl ::std::str::FromStr for MetaDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -55605,13 +56355,13 @@ impl std::str::FromStr for MetaDeletedAction { } } } -impl std::convert::TryFrom<&str> for MetaDeletedAction { +impl ::std::convert::TryFrom<&str> for MetaDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MetaDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MetaDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -55619,7 +56369,7 @@ impl std::convert::TryFrom<&::std::string::String> for MetaDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MetaDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for MetaDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -55710,7 +56460,7 @@ pub struct MetaDeletedHook { pub type_: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&MetaDeletedHook> for MetaDeletedHook { +impl ::std::convert::From<&MetaDeletedHook> for MetaDeletedHook { fn from(value: &MetaDeletedHook) -> Self { value.clone() } @@ -55754,7 +56504,7 @@ pub struct MetaDeletedHookConfig { pub insecure_ssl: ::std::string::String, pub url: ::std::string::String, } -impl From<&MetaDeletedHookConfig> for MetaDeletedHookConfig { +impl ::std::convert::From<&MetaDeletedHookConfig> for MetaDeletedHookConfig { fn from(value: &MetaDeletedHookConfig) -> Self { value.clone() } @@ -55791,7 +56541,7 @@ pub enum MetaDeletedHookConfigContentType { #[serde(rename = "form")] Form, } -impl From<&MetaDeletedHookConfigContentType> for MetaDeletedHookConfigContentType { +impl ::std::convert::From<&MetaDeletedHookConfigContentType> for MetaDeletedHookConfigContentType { fn from(value: &MetaDeletedHookConfigContentType) -> Self { value.clone() } @@ -55804,7 +56554,7 @@ impl ::std::fmt::Display for MetaDeletedHookConfigContentType { } } } -impl std::str::FromStr for MetaDeletedHookConfigContentType { +impl ::std::str::FromStr for MetaDeletedHookConfigContentType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -55814,13 +56564,13 @@ impl std::str::FromStr for MetaDeletedHookConfigContentType { } } } -impl std::convert::TryFrom<&str> for MetaDeletedHookConfigContentType { +impl ::std::convert::TryFrom<&str> for MetaDeletedHookConfigContentType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MetaDeletedHookConfigContentType { +impl ::std::convert::TryFrom<&::std::string::String> for MetaDeletedHookConfigContentType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -55828,7 +56578,7 @@ impl std::convert::TryFrom<&::std::string::String> for MetaDeletedHookConfigCont value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MetaDeletedHookConfigContentType { +impl ::std::convert::TryFrom<::std::string::String> for MetaDeletedHookConfigContentType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -55858,17 +56608,17 @@ impl ::std::ops::Deref for MetaEvent { &self.0 } } -impl From for MetaDeleted { +impl ::std::convert::From for MetaDeleted { fn from(value: MetaEvent) -> Self { value.0 } } -impl From<&MetaEvent> for MetaEvent { +impl ::std::convert::From<&MetaEvent> for MetaEvent { fn from(value: &MetaEvent) -> Self { value.clone() } } -impl From for MetaEvent { +impl ::std::convert::From for MetaEvent { fn from(value: MetaDeleted) -> Self { Self(value) } @@ -56001,7 +56751,7 @@ pub struct Milestone { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&Milestone> for Milestone { +impl ::std::convert::From<&Milestone> for Milestone { fn from(value: &Milestone) -> Self { value.clone() } @@ -56083,7 +56833,7 @@ pub struct MilestoneClosed { pub repository: Repository, pub sender: User, } -impl From<&MilestoneClosed> for MilestoneClosed { +impl ::std::convert::From<&MilestoneClosed> for MilestoneClosed { fn from(value: &MilestoneClosed) -> Self { value.clone() } @@ -56117,7 +56867,7 @@ pub enum MilestoneClosedAction { #[serde(rename = "closed")] Closed, } -impl From<&MilestoneClosedAction> for MilestoneClosedAction { +impl ::std::convert::From<&MilestoneClosedAction> for MilestoneClosedAction { fn from(value: &MilestoneClosedAction) -> Self { value.clone() } @@ -56129,7 +56879,7 @@ impl ::std::fmt::Display for MilestoneClosedAction { } } } -impl std::str::FromStr for MilestoneClosedAction { +impl ::std::str::FromStr for MilestoneClosedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -56138,13 +56888,13 @@ impl std::str::FromStr for MilestoneClosedAction { } } } -impl std::convert::TryFrom<&str> for MilestoneClosedAction { +impl ::std::convert::TryFrom<&str> for MilestoneClosedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneClosedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneClosedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -56152,7 +56902,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneClosedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneClosedAction { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneClosedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -56215,7 +56965,7 @@ pub struct MilestoneClosedMilestone { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&MilestoneClosedMilestone> for MilestoneClosedMilestone { +impl ::std::convert::From<&MilestoneClosedMilestone> for MilestoneClosedMilestone { fn from(value: &MilestoneClosedMilestone) -> Self { value.clone() } @@ -56249,7 +56999,7 @@ pub enum MilestoneClosedMilestoneState { #[serde(rename = "closed")] Closed, } -impl From<&MilestoneClosedMilestoneState> for MilestoneClosedMilestoneState { +impl ::std::convert::From<&MilestoneClosedMilestoneState> for MilestoneClosedMilestoneState { fn from(value: &MilestoneClosedMilestoneState) -> Self { value.clone() } @@ -56261,7 +57011,7 @@ impl ::std::fmt::Display for MilestoneClosedMilestoneState { } } } -impl std::str::FromStr for MilestoneClosedMilestoneState { +impl ::std::str::FromStr for MilestoneClosedMilestoneState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -56270,13 +57020,13 @@ impl std::str::FromStr for MilestoneClosedMilestoneState { } } } -impl std::convert::TryFrom<&str> for MilestoneClosedMilestoneState { +impl ::std::convert::TryFrom<&str> for MilestoneClosedMilestoneState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneClosedMilestoneState { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneClosedMilestoneState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -56284,7 +57034,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneClosedMilestoneS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneClosedMilestoneState { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneClosedMilestoneState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -56369,7 +57119,7 @@ pub struct MilestoneCreated { pub repository: Repository, pub sender: User, } -impl From<&MilestoneCreated> for MilestoneCreated { +impl ::std::convert::From<&MilestoneCreated> for MilestoneCreated { fn from(value: &MilestoneCreated) -> Self { value.clone() } @@ -56403,7 +57153,7 @@ pub enum MilestoneCreatedAction { #[serde(rename = "created")] Created, } -impl From<&MilestoneCreatedAction> for MilestoneCreatedAction { +impl ::std::convert::From<&MilestoneCreatedAction> for MilestoneCreatedAction { fn from(value: &MilestoneCreatedAction) -> Self { value.clone() } @@ -56415,7 +57165,7 @@ impl ::std::fmt::Display for MilestoneCreatedAction { } } } -impl std::str::FromStr for MilestoneCreatedAction { +impl ::std::str::FromStr for MilestoneCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -56424,13 +57174,13 @@ impl std::str::FromStr for MilestoneCreatedAction { } } } -impl std::convert::TryFrom<&str> for MilestoneCreatedAction { +impl ::std::convert::TryFrom<&str> for MilestoneCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -56438,7 +57188,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -56501,7 +57251,7 @@ pub struct MilestoneCreatedMilestone { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&MilestoneCreatedMilestone> for MilestoneCreatedMilestone { +impl ::std::convert::From<&MilestoneCreatedMilestone> for MilestoneCreatedMilestone { fn from(value: &MilestoneCreatedMilestone) -> Self { value.clone() } @@ -56535,7 +57285,7 @@ pub enum MilestoneCreatedMilestoneState { #[serde(rename = "open")] Open, } -impl From<&MilestoneCreatedMilestoneState> for MilestoneCreatedMilestoneState { +impl ::std::convert::From<&MilestoneCreatedMilestoneState> for MilestoneCreatedMilestoneState { fn from(value: &MilestoneCreatedMilestoneState) -> Self { value.clone() } @@ -56547,7 +57297,7 @@ impl ::std::fmt::Display for MilestoneCreatedMilestoneState { } } } -impl std::str::FromStr for MilestoneCreatedMilestoneState { +impl ::std::str::FromStr for MilestoneCreatedMilestoneState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -56556,13 +57306,13 @@ impl std::str::FromStr for MilestoneCreatedMilestoneState { } } } -impl std::convert::TryFrom<&str> for MilestoneCreatedMilestoneState { +impl ::std::convert::TryFrom<&str> for MilestoneCreatedMilestoneState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneCreatedMilestoneState { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneCreatedMilestoneState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -56570,7 +57320,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneCreatedMilestone value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneCreatedMilestoneState { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneCreatedMilestoneState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -56632,7 +57382,7 @@ pub struct MilestoneDeleted { pub repository: Repository, pub sender: User, } -impl From<&MilestoneDeleted> for MilestoneDeleted { +impl ::std::convert::From<&MilestoneDeleted> for MilestoneDeleted { fn from(value: &MilestoneDeleted) -> Self { value.clone() } @@ -56666,7 +57416,7 @@ pub enum MilestoneDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&MilestoneDeletedAction> for MilestoneDeletedAction { +impl ::std::convert::From<&MilestoneDeletedAction> for MilestoneDeletedAction { fn from(value: &MilestoneDeletedAction) -> Self { value.clone() } @@ -56678,7 +57428,7 @@ impl ::std::fmt::Display for MilestoneDeletedAction { } } } -impl std::str::FromStr for MilestoneDeletedAction { +impl ::std::str::FromStr for MilestoneDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -56687,13 +57437,13 @@ impl std::str::FromStr for MilestoneDeletedAction { } } } -impl std::convert::TryFrom<&str> for MilestoneDeletedAction { +impl ::std::convert::TryFrom<&str> for MilestoneDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -56701,7 +57451,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -56811,7 +57561,7 @@ pub struct MilestoneEdited { pub repository: Repository, pub sender: User, } -impl From<&MilestoneEdited> for MilestoneEdited { +impl ::std::convert::From<&MilestoneEdited> for MilestoneEdited { fn from(value: &MilestoneEdited) -> Self { value.clone() } @@ -56845,7 +57595,7 @@ pub enum MilestoneEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&MilestoneEditedAction> for MilestoneEditedAction { +impl ::std::convert::From<&MilestoneEditedAction> for MilestoneEditedAction { fn from(value: &MilestoneEditedAction) -> Self { value.clone() } @@ -56857,7 +57607,7 @@ impl ::std::fmt::Display for MilestoneEditedAction { } } } -impl std::str::FromStr for MilestoneEditedAction { +impl ::std::str::FromStr for MilestoneEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -56866,13 +57616,13 @@ impl std::str::FromStr for MilestoneEditedAction { } } } -impl std::convert::TryFrom<&str> for MilestoneEditedAction { +impl ::std::convert::TryFrom<&str> for MilestoneEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -56880,7 +57630,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -56951,11 +57701,20 @@ pub struct MilestoneEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option, } -impl From<&MilestoneEditedChanges> for MilestoneEditedChanges { +impl ::std::convert::From<&MilestoneEditedChanges> for MilestoneEditedChanges { fn from(value: &MilestoneEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for MilestoneEditedChanges { + fn default() -> Self { + Self { + description: Default::default(), + due_on: Default::default(), + title: Default::default(), + } + } +} #[doc = "MilestoneEditedChangesDescription"] #[doc = r""] #[doc = r"
JSON schema"] @@ -56982,7 +57741,9 @@ pub struct MilestoneEditedChangesDescription { #[doc = "The previous version of the description if the action was `edited`."] pub from: ::std::string::String, } -impl From<&MilestoneEditedChangesDescription> for MilestoneEditedChangesDescription { +impl ::std::convert::From<&MilestoneEditedChangesDescription> + for MilestoneEditedChangesDescription +{ fn from(value: &MilestoneEditedChangesDescription) -> Self { value.clone() } @@ -57013,7 +57774,7 @@ pub struct MilestoneEditedChangesDueOn { #[doc = "The previous version of the due date if the action was `edited`."] pub from: ::std::string::String, } -impl From<&MilestoneEditedChangesDueOn> for MilestoneEditedChangesDueOn { +impl ::std::convert::From<&MilestoneEditedChangesDueOn> for MilestoneEditedChangesDueOn { fn from(value: &MilestoneEditedChangesDueOn) -> Self { value.clone() } @@ -57044,7 +57805,7 @@ pub struct MilestoneEditedChangesTitle { #[doc = "The previous version of the title if the action was `edited`."] pub from: ::std::string::String, } -impl From<&MilestoneEditedChangesTitle> for MilestoneEditedChangesTitle { +impl ::std::convert::From<&MilestoneEditedChangesTitle> for MilestoneEditedChangesTitle { fn from(value: &MilestoneEditedChangesTitle) -> Self { value.clone() } @@ -57084,32 +57845,32 @@ pub enum MilestoneEvent { Edited(MilestoneEdited), Opened(MilestoneOpened), } -impl From<&MilestoneEvent> for MilestoneEvent { +impl ::std::convert::From<&MilestoneEvent> for MilestoneEvent { fn from(value: &MilestoneEvent) -> Self { value.clone() } } -impl From for MilestoneEvent { +impl ::std::convert::From for MilestoneEvent { fn from(value: MilestoneClosed) -> Self { Self::Closed(value) } } -impl From for MilestoneEvent { +impl ::std::convert::From for MilestoneEvent { fn from(value: MilestoneCreated) -> Self { Self::Created(value) } } -impl From for MilestoneEvent { +impl ::std::convert::From for MilestoneEvent { fn from(value: MilestoneDeleted) -> Self { Self::Deleted(value) } } -impl From for MilestoneEvent { +impl ::std::convert::From for MilestoneEvent { fn from(value: MilestoneEdited) -> Self { Self::Edited(value) } } -impl From for MilestoneEvent { +impl ::std::convert::From for MilestoneEvent { fn from(value: MilestoneOpened) -> Self { Self::Opened(value) } @@ -57191,7 +57952,7 @@ pub struct MilestoneOpened { pub repository: Repository, pub sender: User, } -impl From<&MilestoneOpened> for MilestoneOpened { +impl ::std::convert::From<&MilestoneOpened> for MilestoneOpened { fn from(value: &MilestoneOpened) -> Self { value.clone() } @@ -57225,7 +57986,7 @@ pub enum MilestoneOpenedAction { #[serde(rename = "opened")] Opened, } -impl From<&MilestoneOpenedAction> for MilestoneOpenedAction { +impl ::std::convert::From<&MilestoneOpenedAction> for MilestoneOpenedAction { fn from(value: &MilestoneOpenedAction) -> Self { value.clone() } @@ -57237,7 +57998,7 @@ impl ::std::fmt::Display for MilestoneOpenedAction { } } } -impl std::str::FromStr for MilestoneOpenedAction { +impl ::std::str::FromStr for MilestoneOpenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -57246,13 +58007,13 @@ impl std::str::FromStr for MilestoneOpenedAction { } } } -impl std::convert::TryFrom<&str> for MilestoneOpenedAction { +impl ::std::convert::TryFrom<&str> for MilestoneOpenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneOpenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneOpenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -57260,7 +58021,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneOpenedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneOpenedAction { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneOpenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -57323,7 +58084,7 @@ pub struct MilestoneOpenedMilestone { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&MilestoneOpenedMilestone> for MilestoneOpenedMilestone { +impl ::std::convert::From<&MilestoneOpenedMilestone> for MilestoneOpenedMilestone { fn from(value: &MilestoneOpenedMilestone) -> Self { value.clone() } @@ -57357,7 +58118,7 @@ pub enum MilestoneOpenedMilestoneState { #[serde(rename = "open")] Open, } -impl From<&MilestoneOpenedMilestoneState> for MilestoneOpenedMilestoneState { +impl ::std::convert::From<&MilestoneOpenedMilestoneState> for MilestoneOpenedMilestoneState { fn from(value: &MilestoneOpenedMilestoneState) -> Self { value.clone() } @@ -57369,7 +58130,7 @@ impl ::std::fmt::Display for MilestoneOpenedMilestoneState { } } } -impl std::str::FromStr for MilestoneOpenedMilestoneState { +impl ::std::str::FromStr for MilestoneOpenedMilestoneState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -57378,13 +58139,13 @@ impl std::str::FromStr for MilestoneOpenedMilestoneState { } } } -impl std::convert::TryFrom<&str> for MilestoneOpenedMilestoneState { +impl ::std::convert::TryFrom<&str> for MilestoneOpenedMilestoneState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneOpenedMilestoneState { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneOpenedMilestoneState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -57392,7 +58153,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneOpenedMilestoneS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneOpenedMilestoneState { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneOpenedMilestoneState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -57433,7 +58194,7 @@ pub enum MilestoneState { #[serde(rename = "closed")] Closed, } -impl From<&MilestoneState> for MilestoneState { +impl ::std::convert::From<&MilestoneState> for MilestoneState { fn from(value: &MilestoneState) -> Self { value.clone() } @@ -57446,7 +58207,7 @@ impl ::std::fmt::Display for MilestoneState { } } } -impl std::str::FromStr for MilestoneState { +impl ::std::str::FromStr for MilestoneState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -57456,13 +58217,13 @@ impl std::str::FromStr for MilestoneState { } } } -impl std::convert::TryFrom<&str> for MilestoneState { +impl ::std::convert::TryFrom<&str> for MilestoneState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for MilestoneState { +impl ::std::convert::TryFrom<&::std::string::String> for MilestoneState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -57470,7 +58231,7 @@ impl std::convert::TryFrom<&::std::string::String> for MilestoneState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for MilestoneState { +impl ::std::convert::TryFrom<::std::string::String> for MilestoneState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -57529,7 +58290,7 @@ pub struct OrgBlockBlocked { pub organization: Organization, pub sender: User, } -impl From<&OrgBlockBlocked> for OrgBlockBlocked { +impl ::std::convert::From<&OrgBlockBlocked> for OrgBlockBlocked { fn from(value: &OrgBlockBlocked) -> Self { value.clone() } @@ -57563,7 +58324,7 @@ pub enum OrgBlockBlockedAction { #[serde(rename = "blocked")] Blocked, } -impl From<&OrgBlockBlockedAction> for OrgBlockBlockedAction { +impl ::std::convert::From<&OrgBlockBlockedAction> for OrgBlockBlockedAction { fn from(value: &OrgBlockBlockedAction) -> Self { value.clone() } @@ -57575,7 +58336,7 @@ impl ::std::fmt::Display for OrgBlockBlockedAction { } } } -impl std::str::FromStr for OrgBlockBlockedAction { +impl ::std::str::FromStr for OrgBlockBlockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -57584,13 +58345,13 @@ impl std::str::FromStr for OrgBlockBlockedAction { } } } -impl std::convert::TryFrom<&str> for OrgBlockBlockedAction { +impl ::std::convert::TryFrom<&str> for OrgBlockBlockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrgBlockBlockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrgBlockBlockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -57598,7 +58359,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrgBlockBlockedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrgBlockBlockedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrgBlockBlockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -57629,17 +58390,17 @@ pub enum OrgBlockEvent { Blocked(OrgBlockBlocked), Unblocked(OrgBlockUnblocked), } -impl From<&OrgBlockEvent> for OrgBlockEvent { +impl ::std::convert::From<&OrgBlockEvent> for OrgBlockEvent { fn from(value: &OrgBlockEvent) -> Self { value.clone() } } -impl From for OrgBlockEvent { +impl ::std::convert::From for OrgBlockEvent { fn from(value: OrgBlockBlocked) -> Self { Self::Blocked(value) } } -impl From for OrgBlockEvent { +impl ::std::convert::From for OrgBlockEvent { fn from(value: OrgBlockUnblocked) -> Self { Self::Unblocked(value) } @@ -57695,7 +58456,7 @@ pub struct OrgBlockUnblocked { pub organization: Organization, pub sender: User, } -impl From<&OrgBlockUnblocked> for OrgBlockUnblocked { +impl ::std::convert::From<&OrgBlockUnblocked> for OrgBlockUnblocked { fn from(value: &OrgBlockUnblocked) -> Self { value.clone() } @@ -57729,7 +58490,7 @@ pub enum OrgBlockUnblockedAction { #[serde(rename = "unblocked")] Unblocked, } -impl From<&OrgBlockUnblockedAction> for OrgBlockUnblockedAction { +impl ::std::convert::From<&OrgBlockUnblockedAction> for OrgBlockUnblockedAction { fn from(value: &OrgBlockUnblockedAction) -> Self { value.clone() } @@ -57741,7 +58502,7 @@ impl ::std::fmt::Display for OrgBlockUnblockedAction { } } } -impl std::str::FromStr for OrgBlockUnblockedAction { +impl ::std::str::FromStr for OrgBlockUnblockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -57750,13 +58511,13 @@ impl std::str::FromStr for OrgBlockUnblockedAction { } } } -impl std::convert::TryFrom<&str> for OrgBlockUnblockedAction { +impl ::std::convert::TryFrom<&str> for OrgBlockUnblockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrgBlockUnblockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrgBlockUnblockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -57764,7 +58525,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrgBlockUnblockedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrgBlockUnblockedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrgBlockUnblockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -57870,7 +58631,7 @@ pub struct Organization { pub repos_url: ::std::string::String, pub url: ::std::string::String, } -impl From<&Organization> for Organization { +impl ::std::convert::From<&Organization> for Organization { fn from(value: &Organization) -> Self { value.clone() } @@ -57924,7 +58685,7 @@ pub struct OrganizationDeleted { pub organization: Organization, pub sender: User, } -impl From<&OrganizationDeleted> for OrganizationDeleted { +impl ::std::convert::From<&OrganizationDeleted> for OrganizationDeleted { fn from(value: &OrganizationDeleted) -> Self { value.clone() } @@ -57958,7 +58719,7 @@ pub enum OrganizationDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&OrganizationDeletedAction> for OrganizationDeletedAction { +impl ::std::convert::From<&OrganizationDeletedAction> for OrganizationDeletedAction { fn from(value: &OrganizationDeletedAction) -> Self { value.clone() } @@ -57970,7 +58731,7 @@ impl ::std::fmt::Display for OrganizationDeletedAction { } } } -impl std::str::FromStr for OrganizationDeletedAction { +impl ::std::str::FromStr for OrganizationDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -57979,13 +58740,13 @@ impl std::str::FromStr for OrganizationDeletedAction { } } } -impl std::convert::TryFrom<&str> for OrganizationDeletedAction { +impl ::std::convert::TryFrom<&str> for OrganizationDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrganizationDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrganizationDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -57993,7 +58754,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrganizationDeletedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrganizationDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrganizationDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -58036,32 +58797,32 @@ pub enum OrganizationEvent { MemberRemoved(OrganizationMemberRemoved), Renamed(OrganizationRenamed), } -impl From<&OrganizationEvent> for OrganizationEvent { +impl ::std::convert::From<&OrganizationEvent> for OrganizationEvent { fn from(value: &OrganizationEvent) -> Self { value.clone() } } -impl From for OrganizationEvent { +impl ::std::convert::From for OrganizationEvent { fn from(value: OrganizationDeleted) -> Self { Self::Deleted(value) } } -impl From for OrganizationEvent { +impl ::std::convert::From for OrganizationEvent { fn from(value: OrganizationMemberAdded) -> Self { Self::MemberAdded(value) } } -impl From for OrganizationEvent { +impl ::std::convert::From for OrganizationEvent { fn from(value: OrganizationMemberInvited) -> Self { Self::MemberInvited(value) } } -impl From for OrganizationEvent { +impl ::std::convert::From for OrganizationEvent { fn from(value: OrganizationMemberRemoved) -> Self { Self::MemberRemoved(value) } } -impl From for OrganizationEvent { +impl ::std::convert::From for OrganizationEvent { fn from(value: OrganizationRenamed) -> Self { Self::Renamed(value) } @@ -58115,7 +58876,7 @@ pub struct OrganizationMemberAdded { pub organization: Organization, pub sender: User, } -impl From<&OrganizationMemberAdded> for OrganizationMemberAdded { +impl ::std::convert::From<&OrganizationMemberAdded> for OrganizationMemberAdded { fn from(value: &OrganizationMemberAdded) -> Self { value.clone() } @@ -58149,7 +58910,7 @@ pub enum OrganizationMemberAddedAction { #[serde(rename = "member_added")] MemberAdded, } -impl From<&OrganizationMemberAddedAction> for OrganizationMemberAddedAction { +impl ::std::convert::From<&OrganizationMemberAddedAction> for OrganizationMemberAddedAction { fn from(value: &OrganizationMemberAddedAction) -> Self { value.clone() } @@ -58161,7 +58922,7 @@ impl ::std::fmt::Display for OrganizationMemberAddedAction { } } } -impl std::str::FromStr for OrganizationMemberAddedAction { +impl ::std::str::FromStr for OrganizationMemberAddedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -58170,13 +58931,13 @@ impl std::str::FromStr for OrganizationMemberAddedAction { } } } -impl std::convert::TryFrom<&str> for OrganizationMemberAddedAction { +impl ::std::convert::TryFrom<&str> for OrganizationMemberAddedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrganizationMemberAddedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrganizationMemberAddedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -58184,7 +58945,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrganizationMemberAddedAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrganizationMemberAddedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrganizationMemberAddedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -58312,7 +59073,7 @@ pub struct OrganizationMemberInvited { pub sender: User, pub user: User, } -impl From<&OrganizationMemberInvited> for OrganizationMemberInvited { +impl ::std::convert::From<&OrganizationMemberInvited> for OrganizationMemberInvited { fn from(value: &OrganizationMemberInvited) -> Self { value.clone() } @@ -58346,7 +59107,7 @@ pub enum OrganizationMemberInvitedAction { #[serde(rename = "member_invited")] MemberInvited, } -impl From<&OrganizationMemberInvitedAction> for OrganizationMemberInvitedAction { +impl ::std::convert::From<&OrganizationMemberInvitedAction> for OrganizationMemberInvitedAction { fn from(value: &OrganizationMemberInvitedAction) -> Self { value.clone() } @@ -58358,7 +59119,7 @@ impl ::std::fmt::Display for OrganizationMemberInvitedAction { } } } -impl std::str::FromStr for OrganizationMemberInvitedAction { +impl ::std::str::FromStr for OrganizationMemberInvitedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -58367,13 +59128,13 @@ impl std::str::FromStr for OrganizationMemberInvitedAction { } } } -impl std::convert::TryFrom<&str> for OrganizationMemberInvitedAction { +impl ::std::convert::TryFrom<&str> for OrganizationMemberInvitedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrganizationMemberInvitedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrganizationMemberInvitedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -58381,7 +59142,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrganizationMemberInvited value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrganizationMemberInvitedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrganizationMemberInvitedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -58480,7 +59241,9 @@ pub struct OrganizationMemberInvitedInvitation { pub role: ::std::string::String, pub team_count: f64, } -impl From<&OrganizationMemberInvitedInvitation> for OrganizationMemberInvitedInvitation { +impl ::std::convert::From<&OrganizationMemberInvitedInvitation> + for OrganizationMemberInvitedInvitation +{ fn from(value: &OrganizationMemberInvitedInvitation) -> Self { value.clone() } @@ -58534,7 +59297,7 @@ pub struct OrganizationMemberRemoved { pub organization: Organization, pub sender: User, } -impl From<&OrganizationMemberRemoved> for OrganizationMemberRemoved { +impl ::std::convert::From<&OrganizationMemberRemoved> for OrganizationMemberRemoved { fn from(value: &OrganizationMemberRemoved) -> Self { value.clone() } @@ -58568,7 +59331,7 @@ pub enum OrganizationMemberRemovedAction { #[serde(rename = "member_removed")] MemberRemoved, } -impl From<&OrganizationMemberRemovedAction> for OrganizationMemberRemovedAction { +impl ::std::convert::From<&OrganizationMemberRemovedAction> for OrganizationMemberRemovedAction { fn from(value: &OrganizationMemberRemovedAction) -> Self { value.clone() } @@ -58580,7 +59343,7 @@ impl ::std::fmt::Display for OrganizationMemberRemovedAction { } } } -impl std::str::FromStr for OrganizationMemberRemovedAction { +impl ::std::str::FromStr for OrganizationMemberRemovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -58589,13 +59352,13 @@ impl std::str::FromStr for OrganizationMemberRemovedAction { } } } -impl std::convert::TryFrom<&str> for OrganizationMemberRemovedAction { +impl ::std::convert::TryFrom<&str> for OrganizationMemberRemovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrganizationMemberRemovedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrganizationMemberRemovedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -58603,7 +59366,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrganizationMemberRemoved value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrganizationMemberRemovedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrganizationMemberRemovedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -58660,7 +59423,7 @@ pub struct OrganizationRenamed { pub organization: Organization, pub sender: User, } -impl From<&OrganizationRenamed> for OrganizationRenamed { +impl ::std::convert::From<&OrganizationRenamed> for OrganizationRenamed { fn from(value: &OrganizationRenamed) -> Self { value.clone() } @@ -58694,7 +59457,7 @@ pub enum OrganizationRenamedAction { #[serde(rename = "renamed")] Renamed, } -impl From<&OrganizationRenamedAction> for OrganizationRenamedAction { +impl ::std::convert::From<&OrganizationRenamedAction> for OrganizationRenamedAction { fn from(value: &OrganizationRenamedAction) -> Self { value.clone() } @@ -58706,7 +59469,7 @@ impl ::std::fmt::Display for OrganizationRenamedAction { } } } -impl std::str::FromStr for OrganizationRenamedAction { +impl ::std::str::FromStr for OrganizationRenamedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -58715,13 +59478,13 @@ impl std::str::FromStr for OrganizationRenamedAction { } } } -impl std::convert::TryFrom<&str> for OrganizationRenamedAction { +impl ::std::convert::TryFrom<&str> for OrganizationRenamedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for OrganizationRenamedAction { +impl ::std::convert::TryFrom<&::std::string::String> for OrganizationRenamedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -58729,7 +59492,7 @@ impl std::convert::TryFrom<&::std::string::String> for OrganizationRenamedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for OrganizationRenamedAction { +impl ::std::convert::TryFrom<::std::string::String> for OrganizationRenamedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -58760,17 +59523,17 @@ pub enum PackageEvent { Published(PackagePublished), Updated(PackageUpdated), } -impl From<&PackageEvent> for PackageEvent { +impl ::std::convert::From<&PackageEvent> for PackageEvent { fn from(value: &PackageEvent) -> Self { value.clone() } } -impl From for PackageEvent { +impl ::std::convert::From for PackageEvent { fn from(value: PackagePublished) -> Self { Self::Published(value) } } -impl From for PackageEvent { +impl ::std::convert::From for PackageEvent { fn from(value: PackageUpdated) -> Self { Self::Updated(value) } @@ -59113,7 +59876,7 @@ pub struct PackagePublished { pub repository: Repository, pub sender: User, } -impl From<&PackagePublished> for PackagePublished { +impl ::std::convert::From<&PackagePublished> for PackagePublished { fn from(value: &PackagePublished) -> Self { value.clone() } @@ -59147,7 +59910,7 @@ pub enum PackagePublishedAction { #[serde(rename = "published")] Published, } -impl From<&PackagePublishedAction> for PackagePublishedAction { +impl ::std::convert::From<&PackagePublishedAction> for PackagePublishedAction { fn from(value: &PackagePublishedAction) -> Self { value.clone() } @@ -59159,7 +59922,7 @@ impl ::std::fmt::Display for PackagePublishedAction { } } } -impl std::str::FromStr for PackagePublishedAction { +impl ::std::str::FromStr for PackagePublishedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -59168,13 +59931,13 @@ impl std::str::FromStr for PackagePublishedAction { } } } -impl std::convert::TryFrom<&str> for PackagePublishedAction { +impl ::std::convert::TryFrom<&str> for PackagePublishedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PackagePublishedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PackagePublishedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -59182,7 +59945,7 @@ impl std::convert::TryFrom<&::std::string::String> for PackagePublishedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PackagePublishedAction { +impl ::std::convert::TryFrom<::std::string::String> for PackagePublishedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -59505,7 +60268,7 @@ pub struct PackagePublishedPackage { pub registry: PackagePublishedPackageRegistry, pub updated_at: ::std::string::String, } -impl From<&PackagePublishedPackage> for PackagePublishedPackage { +impl ::std::convert::From<&PackagePublishedPackage> for PackagePublishedPackage { fn from(value: &PackagePublishedPackage) -> Self { value.clone() } @@ -59751,7 +60514,9 @@ pub struct PackagePublishedPackagePackageVersion { pub updated_at: ::std::string::String, pub version: ::std::string::String, } -impl From<&PackagePublishedPackagePackageVersion> for PackagePublishedPackagePackageVersion { +impl ::std::convert::From<&PackagePublishedPackagePackageVersion> + for PackagePublishedPackagePackageVersion +{ fn from(value: &PackagePublishedPackagePackageVersion) -> Self { value.clone() } @@ -59831,7 +60596,7 @@ pub struct PackagePublishedPackagePackageVersionPackageFilesItem { pub state: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&PackagePublishedPackagePackageVersionPackageFilesItem> +impl ::std::convert::From<&PackagePublishedPackagePackageVersionPackageFilesItem> for PackagePublishedPackagePackageVersionPackageFilesItem { fn from(value: &PackagePublishedPackagePackageVersionPackageFilesItem) -> Self { @@ -59914,7 +60679,7 @@ pub struct PackagePublishedPackagePackageVersionRelease { pub target_commitish: ::std::string::String, pub url: ::std::string::String, } -impl From<&PackagePublishedPackagePackageVersionRelease> +impl ::std::convert::From<&PackagePublishedPackagePackageVersionRelease> for PackagePublishedPackagePackageVersionRelease { fn from(value: &PackagePublishedPackagePackageVersionRelease) -> Self { @@ -59968,7 +60733,7 @@ pub struct PackagePublishedPackageRegistry { pub url: ::std::string::String, pub vendor: ::std::string::String, } -impl From<&PackagePublishedPackageRegistry> for PackagePublishedPackageRegistry { +impl ::std::convert::From<&PackagePublishedPackageRegistry> for PackagePublishedPackageRegistry { fn from(value: &PackagePublishedPackageRegistry) -> Self { value.clone() } @@ -60312,7 +61077,7 @@ pub struct PackageUpdated { pub repository: Repository, pub sender: User, } -impl From<&PackageUpdated> for PackageUpdated { +impl ::std::convert::From<&PackageUpdated> for PackageUpdated { fn from(value: &PackageUpdated) -> Self { value.clone() } @@ -60346,7 +61111,7 @@ pub enum PackageUpdatedAction { #[serde(rename = "updated")] Updated, } -impl From<&PackageUpdatedAction> for PackageUpdatedAction { +impl ::std::convert::From<&PackageUpdatedAction> for PackageUpdatedAction { fn from(value: &PackageUpdatedAction) -> Self { value.clone() } @@ -60358,7 +61123,7 @@ impl ::std::fmt::Display for PackageUpdatedAction { } } } -impl std::str::FromStr for PackageUpdatedAction { +impl ::std::str::FromStr for PackageUpdatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -60367,13 +61132,13 @@ impl std::str::FromStr for PackageUpdatedAction { } } } -impl std::convert::TryFrom<&str> for PackageUpdatedAction { +impl ::std::convert::TryFrom<&str> for PackageUpdatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PackageUpdatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PackageUpdatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -60381,7 +61146,7 @@ impl std::convert::TryFrom<&::std::string::String> for PackageUpdatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PackageUpdatedAction { +impl ::std::convert::TryFrom<::std::string::String> for PackageUpdatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -60705,7 +61470,7 @@ pub struct PackageUpdatedPackage { pub registry: PackageUpdatedPackageRegistry, pub updated_at: ::std::string::String, } -impl From<&PackageUpdatedPackage> for PackageUpdatedPackage { +impl ::std::convert::From<&PackageUpdatedPackage> for PackageUpdatedPackage { fn from(value: &PackageUpdatedPackage) -> Self { value.clone() } @@ -60952,7 +61717,9 @@ pub struct PackageUpdatedPackagePackageVersion { pub updated_at: ::std::string::String, pub version: ::std::string::String, } -impl From<&PackageUpdatedPackagePackageVersion> for PackageUpdatedPackagePackageVersion { +impl ::std::convert::From<&PackageUpdatedPackagePackageVersion> + for PackageUpdatedPackagePackageVersion +{ fn from(value: &PackageUpdatedPackagePackageVersion) -> Self { value.clone() } @@ -61032,7 +61799,7 @@ pub struct PackageUpdatedPackagePackageVersionPackageFilesItem { pub state: ::std::string::String, pub updated_at: ::std::string::String, } -impl From<&PackageUpdatedPackagePackageVersionPackageFilesItem> +impl ::std::convert::From<&PackageUpdatedPackagePackageVersionPackageFilesItem> for PackageUpdatedPackagePackageVersionPackageFilesItem { fn from(value: &PackageUpdatedPackagePackageVersionPackageFilesItem) -> Self { @@ -61115,7 +61882,7 @@ pub struct PackageUpdatedPackagePackageVersionRelease { pub target_commitish: ::std::string::String, pub url: ::std::string::String, } -impl From<&PackageUpdatedPackagePackageVersionRelease> +impl ::std::convert::From<&PackageUpdatedPackagePackageVersionRelease> for PackageUpdatedPackagePackageVersionRelease { fn from(value: &PackageUpdatedPackagePackageVersionRelease) -> Self { @@ -61169,7 +61936,7 @@ pub struct PackageUpdatedPackageRegistry { pub url: ::std::string::String, pub vendor: ::std::string::String, } -impl From<&PackageUpdatedPackageRegistry> for PackageUpdatedPackageRegistry { +impl ::std::convert::From<&PackageUpdatedPackageRegistry> for PackageUpdatedPackageRegistry { fn from(value: &PackageUpdatedPackageRegistry) -> Self { value.clone() } @@ -61277,7 +62044,7 @@ pub struct PageBuildEvent { pub repository: Repository, pub sender: User, } -impl From<&PageBuildEvent> for PageBuildEvent { +impl ::std::convert::From<&PageBuildEvent> for PageBuildEvent { fn from(value: &PageBuildEvent) -> Self { value.clone() } @@ -61355,7 +62122,7 @@ pub struct PageBuildEventBuild { pub updated_at: ::std::string::String, pub url: ::std::string::String, } -impl From<&PageBuildEventBuild> for PageBuildEventBuild { +impl ::std::convert::From<&PageBuildEventBuild> for PageBuildEventBuild { fn from(value: &PageBuildEventBuild) -> Self { value.clone() } @@ -61387,7 +62154,7 @@ impl From<&PageBuildEventBuild> for PageBuildEventBuild { pub struct PageBuildEventBuildError { pub message: ::std::option::Option<::std::string::String>, } -impl From<&PageBuildEventBuildError> for PageBuildEventBuildError { +impl ::std::convert::From<&PageBuildEventBuildError> for PageBuildEventBuildError { fn from(value: &PageBuildEventBuildError) -> Self { value.clone() } @@ -61546,7 +62313,7 @@ pub struct PingEvent { pub sender: ::std::option::Option, pub zen: ::std::string::String, } -impl From<&PingEvent> for PingEvent { +impl ::std::convert::From<&PingEvent> for PingEvent { fn from(value: &PingEvent) -> Self { value.clone() } @@ -61684,7 +62451,7 @@ pub struct PingEventHook { pub updated_at: ::std::string::String, pub url: ::std::string::String, } -impl From<&PingEventHook> for PingEventHook { +impl ::std::convert::From<&PingEventHook> for PingEventHook { fn from(value: &PingEventHook) -> Self { value.clone() } @@ -61733,7 +62500,7 @@ pub struct PingEventHookConfig { pub secret: ::std::option::Option<::std::string::String>, pub url: ::std::string::String, } -impl From<&PingEventHookConfig> for PingEventHookConfig { +impl ::std::convert::From<&PingEventHookConfig> for PingEventHookConfig { fn from(value: &PingEventHookConfig) -> Self { value.clone() } @@ -61770,7 +62537,7 @@ pub enum PingEventHookConfigContentType { #[serde(rename = "form")] Form, } -impl From<&PingEventHookConfigContentType> for PingEventHookConfigContentType { +impl ::std::convert::From<&PingEventHookConfigContentType> for PingEventHookConfigContentType { fn from(value: &PingEventHookConfigContentType) -> Self { value.clone() } @@ -61783,7 +62550,7 @@ impl ::std::fmt::Display for PingEventHookConfigContentType { } } } -impl std::str::FromStr for PingEventHookConfigContentType { +impl ::std::str::FromStr for PingEventHookConfigContentType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -61793,13 +62560,13 @@ impl std::str::FromStr for PingEventHookConfigContentType { } } } -impl std::convert::TryFrom<&str> for PingEventHookConfigContentType { +impl ::std::convert::TryFrom<&str> for PingEventHookConfigContentType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PingEventHookConfigContentType { +impl ::std::convert::TryFrom<&::std::string::String> for PingEventHookConfigContentType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -61807,7 +62574,7 @@ impl std::convert::TryFrom<&::std::string::String> for PingEventHookConfigConten value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PingEventHookConfigContentType { +impl ::std::convert::TryFrom<::std::string::String> for PingEventHookConfigContentType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -61849,7 +62616,7 @@ pub struct PingEventHookLastResponse { pub message: (), pub status: ::std::string::String, } -impl From<&PingEventHookLastResponse> for PingEventHookLastResponse { +impl ::std::convert::From<&PingEventHookLastResponse> for PingEventHookLastResponse { fn from(value: &PingEventHookLastResponse) -> Self { value.clone() } @@ -61959,7 +62726,7 @@ pub struct Project { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&Project> for Project { +impl ::std::convert::From<&Project> for Project { fn from(value: &Project) -> Self { value.clone() } @@ -62063,7 +62830,7 @@ pub struct ProjectCard { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&ProjectCard> for ProjectCard { +impl ::std::convert::From<&ProjectCard> for ProjectCard { fn from(value: &ProjectCard) -> Self { value.clone() } @@ -62145,7 +62912,7 @@ pub struct ProjectCardConverted { pub repository: Repository, pub sender: User, } -impl From<&ProjectCardConverted> for ProjectCardConverted { +impl ::std::convert::From<&ProjectCardConverted> for ProjectCardConverted { fn from(value: &ProjectCardConverted) -> Self { value.clone() } @@ -62179,7 +62946,7 @@ pub enum ProjectCardConvertedAction { #[serde(rename = "converted")] Converted, } -impl From<&ProjectCardConvertedAction> for ProjectCardConvertedAction { +impl ::std::convert::From<&ProjectCardConvertedAction> for ProjectCardConvertedAction { fn from(value: &ProjectCardConvertedAction) -> Self { value.clone() } @@ -62191,7 +62958,7 @@ impl ::std::fmt::Display for ProjectCardConvertedAction { } } } -impl std::str::FromStr for ProjectCardConvertedAction { +impl ::std::str::FromStr for ProjectCardConvertedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -62200,13 +62967,13 @@ impl std::str::FromStr for ProjectCardConvertedAction { } } } -impl std::convert::TryFrom<&str> for ProjectCardConvertedAction { +impl ::std::convert::TryFrom<&str> for ProjectCardConvertedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectCardConvertedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectCardConvertedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -62214,7 +62981,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectCardConvertedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectCardConvertedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectCardConvertedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -62255,7 +63022,7 @@ impl std::convert::TryFrom<::std::string::String> for ProjectCardConvertedAction pub struct ProjectCardConvertedChanges { pub note: ProjectCardConvertedChangesNote, } -impl From<&ProjectCardConvertedChanges> for ProjectCardConvertedChanges { +impl ::std::convert::From<&ProjectCardConvertedChanges> for ProjectCardConvertedChanges { fn from(value: &ProjectCardConvertedChanges) -> Self { value.clone() } @@ -62284,7 +63051,7 @@ impl From<&ProjectCardConvertedChanges> for ProjectCardConvertedChanges { pub struct ProjectCardConvertedChangesNote { pub from: ::std::string::String, } -impl From<&ProjectCardConvertedChangesNote> for ProjectCardConvertedChangesNote { +impl ::std::convert::From<&ProjectCardConvertedChangesNote> for ProjectCardConvertedChangesNote { fn from(value: &ProjectCardConvertedChangesNote) -> Self { value.clone() } @@ -62343,7 +63110,7 @@ pub struct ProjectCardCreated { pub repository: Repository, pub sender: User, } -impl From<&ProjectCardCreated> for ProjectCardCreated { +impl ::std::convert::From<&ProjectCardCreated> for ProjectCardCreated { fn from(value: &ProjectCardCreated) -> Self { value.clone() } @@ -62377,7 +63144,7 @@ pub enum ProjectCardCreatedAction { #[serde(rename = "created")] Created, } -impl From<&ProjectCardCreatedAction> for ProjectCardCreatedAction { +impl ::std::convert::From<&ProjectCardCreatedAction> for ProjectCardCreatedAction { fn from(value: &ProjectCardCreatedAction) -> Self { value.clone() } @@ -62389,7 +63156,7 @@ impl ::std::fmt::Display for ProjectCardCreatedAction { } } } -impl std::str::FromStr for ProjectCardCreatedAction { +impl ::std::str::FromStr for ProjectCardCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -62398,13 +63165,13 @@ impl std::str::FromStr for ProjectCardCreatedAction { } } } -impl std::convert::TryFrom<&str> for ProjectCardCreatedAction { +impl ::std::convert::TryFrom<&str> for ProjectCardCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectCardCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectCardCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -62412,7 +63179,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectCardCreatedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectCardCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectCardCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -62474,7 +63241,7 @@ pub struct ProjectCardDeleted { pub repository: Repository, pub sender: User, } -impl From<&ProjectCardDeleted> for ProjectCardDeleted { +impl ::std::convert::From<&ProjectCardDeleted> for ProjectCardDeleted { fn from(value: &ProjectCardDeleted) -> Self { value.clone() } @@ -62508,7 +63275,7 @@ pub enum ProjectCardDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&ProjectCardDeletedAction> for ProjectCardDeletedAction { +impl ::std::convert::From<&ProjectCardDeletedAction> for ProjectCardDeletedAction { fn from(value: &ProjectCardDeletedAction) -> Self { value.clone() } @@ -62520,7 +63287,7 @@ impl ::std::fmt::Display for ProjectCardDeletedAction { } } } -impl std::str::FromStr for ProjectCardDeletedAction { +impl ::std::str::FromStr for ProjectCardDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -62529,13 +63296,13 @@ impl std::str::FromStr for ProjectCardDeletedAction { } } } -impl std::convert::TryFrom<&str> for ProjectCardDeletedAction { +impl ::std::convert::TryFrom<&str> for ProjectCardDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectCardDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectCardDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -62543,7 +63310,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectCardDeletedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectCardDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectCardDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -62628,7 +63395,7 @@ pub struct ProjectCardEdited { pub repository: Repository, pub sender: User, } -impl From<&ProjectCardEdited> for ProjectCardEdited { +impl ::std::convert::From<&ProjectCardEdited> for ProjectCardEdited { fn from(value: &ProjectCardEdited) -> Self { value.clone() } @@ -62662,7 +63429,7 @@ pub enum ProjectCardEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&ProjectCardEditedAction> for ProjectCardEditedAction { +impl ::std::convert::From<&ProjectCardEditedAction> for ProjectCardEditedAction { fn from(value: &ProjectCardEditedAction) -> Self { value.clone() } @@ -62674,7 +63441,7 @@ impl ::std::fmt::Display for ProjectCardEditedAction { } } } -impl std::str::FromStr for ProjectCardEditedAction { +impl ::std::str::FromStr for ProjectCardEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -62683,13 +63450,13 @@ impl std::str::FromStr for ProjectCardEditedAction { } } } -impl std::convert::TryFrom<&str> for ProjectCardEditedAction { +impl ::std::convert::TryFrom<&str> for ProjectCardEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectCardEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectCardEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -62697,7 +63464,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectCardEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectCardEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectCardEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -62738,7 +63505,7 @@ impl std::convert::TryFrom<::std::string::String> for ProjectCardEditedAction { pub struct ProjectCardEditedChanges { pub note: ProjectCardEditedChangesNote, } -impl From<&ProjectCardEditedChanges> for ProjectCardEditedChanges { +impl ::std::convert::From<&ProjectCardEditedChanges> for ProjectCardEditedChanges { fn from(value: &ProjectCardEditedChanges) -> Self { value.clone() } @@ -62767,7 +63534,7 @@ impl From<&ProjectCardEditedChanges> for ProjectCardEditedChanges { pub struct ProjectCardEditedChangesNote { pub from: ::std::string::String, } -impl From<&ProjectCardEditedChangesNote> for ProjectCardEditedChangesNote { +impl ::std::convert::From<&ProjectCardEditedChangesNote> for ProjectCardEditedChangesNote { fn from(value: &ProjectCardEditedChangesNote) -> Self { value.clone() } @@ -62807,32 +63574,32 @@ pub enum ProjectCardEvent { Edited(ProjectCardEdited), Moved(ProjectCardMoved), } -impl From<&ProjectCardEvent> for ProjectCardEvent { +impl ::std::convert::From<&ProjectCardEvent> for ProjectCardEvent { fn from(value: &ProjectCardEvent) -> Self { value.clone() } } -impl From for ProjectCardEvent { +impl ::std::convert::From for ProjectCardEvent { fn from(value: ProjectCardConverted) -> Self { Self::Converted(value) } } -impl From for ProjectCardEvent { +impl ::std::convert::From for ProjectCardEvent { fn from(value: ProjectCardCreated) -> Self { Self::Created(value) } } -impl From for ProjectCardEvent { +impl ::std::convert::From for ProjectCardEvent { fn from(value: ProjectCardDeleted) -> Self { Self::Deleted(value) } } -impl From for ProjectCardEvent { +impl ::std::convert::From for ProjectCardEvent { fn from(value: ProjectCardEdited) -> Self { Self::Edited(value) } } -impl From for ProjectCardEvent { +impl ::std::convert::From for ProjectCardEvent { fn from(value: ProjectCardMoved) -> Self { Self::Moved(value) } @@ -62933,7 +63700,7 @@ pub struct ProjectCardMoved { pub repository: Repository, pub sender: User, } -impl From<&ProjectCardMoved> for ProjectCardMoved { +impl ::std::convert::From<&ProjectCardMoved> for ProjectCardMoved { fn from(value: &ProjectCardMoved) -> Self { value.clone() } @@ -62967,7 +63734,7 @@ pub enum ProjectCardMovedAction { #[serde(rename = "moved")] Moved, } -impl From<&ProjectCardMovedAction> for ProjectCardMovedAction { +impl ::std::convert::From<&ProjectCardMovedAction> for ProjectCardMovedAction { fn from(value: &ProjectCardMovedAction) -> Self { value.clone() } @@ -62979,7 +63746,7 @@ impl ::std::fmt::Display for ProjectCardMovedAction { } } } -impl std::str::FromStr for ProjectCardMovedAction { +impl ::std::str::FromStr for ProjectCardMovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -62988,13 +63755,13 @@ impl std::str::FromStr for ProjectCardMovedAction { } } } -impl std::convert::TryFrom<&str> for ProjectCardMovedAction { +impl ::std::convert::TryFrom<&str> for ProjectCardMovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectCardMovedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectCardMovedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -63002,7 +63769,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectCardMovedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectCardMovedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectCardMovedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -63043,7 +63810,7 @@ impl std::convert::TryFrom<::std::string::String> for ProjectCardMovedAction { pub struct ProjectCardMovedChanges { pub column_id: ProjectCardMovedChangesColumnId, } -impl From<&ProjectCardMovedChanges> for ProjectCardMovedChanges { +impl ::std::convert::From<&ProjectCardMovedChanges> for ProjectCardMovedChanges { fn from(value: &ProjectCardMovedChanges) -> Self { value.clone() } @@ -63072,7 +63839,7 @@ impl From<&ProjectCardMovedChanges> for ProjectCardMovedChanges { pub struct ProjectCardMovedChangesColumnId { pub from: i64, } -impl From<&ProjectCardMovedChangesColumnId> for ProjectCardMovedChangesColumnId { +impl ::std::convert::From<&ProjectCardMovedChangesColumnId> for ProjectCardMovedChangesColumnId { fn from(value: &ProjectCardMovedChangesColumnId) -> Self { value.clone() } @@ -63126,7 +63893,7 @@ pub struct ProjectCardMovedProjectCard { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&ProjectCardMovedProjectCard> for ProjectCardMovedProjectCard { +impl ::std::convert::From<&ProjectCardMovedProjectCard> for ProjectCardMovedProjectCard { fn from(value: &ProjectCardMovedProjectCard) -> Self { value.clone() } @@ -63185,7 +63952,7 @@ pub struct ProjectClosed { pub repository: Repository, pub sender: User, } -impl From<&ProjectClosed> for ProjectClosed { +impl ::std::convert::From<&ProjectClosed> for ProjectClosed { fn from(value: &ProjectClosed) -> Self { value.clone() } @@ -63219,7 +63986,7 @@ pub enum ProjectClosedAction { #[serde(rename = "closed")] Closed, } -impl From<&ProjectClosedAction> for ProjectClosedAction { +impl ::std::convert::From<&ProjectClosedAction> for ProjectClosedAction { fn from(value: &ProjectClosedAction) -> Self { value.clone() } @@ -63231,7 +63998,7 @@ impl ::std::fmt::Display for ProjectClosedAction { } } } -impl std::str::FromStr for ProjectClosedAction { +impl ::std::str::FromStr for ProjectClosedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -63240,13 +64007,13 @@ impl std::str::FromStr for ProjectClosedAction { } } } -impl std::convert::TryFrom<&str> for ProjectClosedAction { +impl ::std::convert::TryFrom<&str> for ProjectClosedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectClosedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectClosedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -63254,7 +64021,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectClosedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectClosedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectClosedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -63332,7 +64099,7 @@ pub struct ProjectColumn { pub updated_at: chrono::DateTime, pub url: ::std::string::String, } -impl From<&ProjectColumn> for ProjectColumn { +impl ::std::convert::From<&ProjectColumn> for ProjectColumn { fn from(value: &ProjectColumn) -> Self { value.clone() } @@ -63391,7 +64158,7 @@ pub struct ProjectColumnCreated { pub repository: Repository, pub sender: User, } -impl From<&ProjectColumnCreated> for ProjectColumnCreated { +impl ::std::convert::From<&ProjectColumnCreated> for ProjectColumnCreated { fn from(value: &ProjectColumnCreated) -> Self { value.clone() } @@ -63425,7 +64192,7 @@ pub enum ProjectColumnCreatedAction { #[serde(rename = "created")] Created, } -impl From<&ProjectColumnCreatedAction> for ProjectColumnCreatedAction { +impl ::std::convert::From<&ProjectColumnCreatedAction> for ProjectColumnCreatedAction { fn from(value: &ProjectColumnCreatedAction) -> Self { value.clone() } @@ -63437,7 +64204,7 @@ impl ::std::fmt::Display for ProjectColumnCreatedAction { } } } -impl std::str::FromStr for ProjectColumnCreatedAction { +impl ::std::str::FromStr for ProjectColumnCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -63446,13 +64213,13 @@ impl std::str::FromStr for ProjectColumnCreatedAction { } } } -impl std::convert::TryFrom<&str> for ProjectColumnCreatedAction { +impl ::std::convert::TryFrom<&str> for ProjectColumnCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectColumnCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectColumnCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -63460,7 +64227,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectColumnCreatedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectColumnCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectColumnCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -63522,7 +64289,7 @@ pub struct ProjectColumnDeleted { pub repository: Repository, pub sender: User, } -impl From<&ProjectColumnDeleted> for ProjectColumnDeleted { +impl ::std::convert::From<&ProjectColumnDeleted> for ProjectColumnDeleted { fn from(value: &ProjectColumnDeleted) -> Self { value.clone() } @@ -63556,7 +64323,7 @@ pub enum ProjectColumnDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&ProjectColumnDeletedAction> for ProjectColumnDeletedAction { +impl ::std::convert::From<&ProjectColumnDeletedAction> for ProjectColumnDeletedAction { fn from(value: &ProjectColumnDeletedAction) -> Self { value.clone() } @@ -63568,7 +64335,7 @@ impl ::std::fmt::Display for ProjectColumnDeletedAction { } } } -impl std::str::FromStr for ProjectColumnDeletedAction { +impl ::std::str::FromStr for ProjectColumnDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -63577,13 +64344,13 @@ impl std::str::FromStr for ProjectColumnDeletedAction { } } } -impl std::convert::TryFrom<&str> for ProjectColumnDeletedAction { +impl ::std::convert::TryFrom<&str> for ProjectColumnDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectColumnDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectColumnDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -63591,7 +64358,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectColumnDeletedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectColumnDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectColumnDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -63673,7 +64440,7 @@ pub struct ProjectColumnEdited { pub repository: Repository, pub sender: User, } -impl From<&ProjectColumnEdited> for ProjectColumnEdited { +impl ::std::convert::From<&ProjectColumnEdited> for ProjectColumnEdited { fn from(value: &ProjectColumnEdited) -> Self { value.clone() } @@ -63707,7 +64474,7 @@ pub enum ProjectColumnEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&ProjectColumnEditedAction> for ProjectColumnEditedAction { +impl ::std::convert::From<&ProjectColumnEditedAction> for ProjectColumnEditedAction { fn from(value: &ProjectColumnEditedAction) -> Self { value.clone() } @@ -63719,7 +64486,7 @@ impl ::std::fmt::Display for ProjectColumnEditedAction { } } } -impl std::str::FromStr for ProjectColumnEditedAction { +impl ::std::str::FromStr for ProjectColumnEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -63728,13 +64495,13 @@ impl std::str::FromStr for ProjectColumnEditedAction { } } } -impl std::convert::TryFrom<&str> for ProjectColumnEditedAction { +impl ::std::convert::TryFrom<&str> for ProjectColumnEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectColumnEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectColumnEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -63742,7 +64509,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectColumnEditedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectColumnEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectColumnEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -63781,11 +64548,18 @@ pub struct ProjectColumnEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option, } -impl From<&ProjectColumnEditedChanges> for ProjectColumnEditedChanges { +impl ::std::convert::From<&ProjectColumnEditedChanges> for ProjectColumnEditedChanges { fn from(value: &ProjectColumnEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for ProjectColumnEditedChanges { + fn default() -> Self { + Self { + name: Default::default(), + } + } +} #[doc = "ProjectColumnEditedChangesName"] #[doc = r""] #[doc = r"
JSON schema"] @@ -63810,7 +64584,7 @@ impl From<&ProjectColumnEditedChanges> for ProjectColumnEditedChanges { pub struct ProjectColumnEditedChangesName { pub from: ::std::string::String, } -impl From<&ProjectColumnEditedChangesName> for ProjectColumnEditedChangesName { +impl ::std::convert::From<&ProjectColumnEditedChangesName> for ProjectColumnEditedChangesName { fn from(value: &ProjectColumnEditedChangesName) -> Self { value.clone() } @@ -63846,27 +64620,27 @@ pub enum ProjectColumnEvent { Edited(ProjectColumnEdited), Moved(ProjectColumnMoved), } -impl From<&ProjectColumnEvent> for ProjectColumnEvent { +impl ::std::convert::From<&ProjectColumnEvent> for ProjectColumnEvent { fn from(value: &ProjectColumnEvent) -> Self { value.clone() } } -impl From for ProjectColumnEvent { +impl ::std::convert::From for ProjectColumnEvent { fn from(value: ProjectColumnCreated) -> Self { Self::Created(value) } } -impl From for ProjectColumnEvent { +impl ::std::convert::From for ProjectColumnEvent { fn from(value: ProjectColumnDeleted) -> Self { Self::Deleted(value) } } -impl From for ProjectColumnEvent { +impl ::std::convert::From for ProjectColumnEvent { fn from(value: ProjectColumnEdited) -> Self { Self::Edited(value) } } -impl From for ProjectColumnEvent { +impl ::std::convert::From for ProjectColumnEvent { fn from(value: ProjectColumnMoved) -> Self { Self::Moved(value) } @@ -63925,7 +64699,7 @@ pub struct ProjectColumnMoved { pub repository: Repository, pub sender: User, } -impl From<&ProjectColumnMoved> for ProjectColumnMoved { +impl ::std::convert::From<&ProjectColumnMoved> for ProjectColumnMoved { fn from(value: &ProjectColumnMoved) -> Self { value.clone() } @@ -63959,7 +64733,7 @@ pub enum ProjectColumnMovedAction { #[serde(rename = "moved")] Moved, } -impl From<&ProjectColumnMovedAction> for ProjectColumnMovedAction { +impl ::std::convert::From<&ProjectColumnMovedAction> for ProjectColumnMovedAction { fn from(value: &ProjectColumnMovedAction) -> Self { value.clone() } @@ -63971,7 +64745,7 @@ impl ::std::fmt::Display for ProjectColumnMovedAction { } } } -impl std::str::FromStr for ProjectColumnMovedAction { +impl ::std::str::FromStr for ProjectColumnMovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -63980,13 +64754,13 @@ impl std::str::FromStr for ProjectColumnMovedAction { } } } -impl std::convert::TryFrom<&str> for ProjectColumnMovedAction { +impl ::std::convert::TryFrom<&str> for ProjectColumnMovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectColumnMovedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectColumnMovedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -63994,7 +64768,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectColumnMovedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectColumnMovedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectColumnMovedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -64056,7 +64830,7 @@ pub struct ProjectCreated { pub repository: Repository, pub sender: User, } -impl From<&ProjectCreated> for ProjectCreated { +impl ::std::convert::From<&ProjectCreated> for ProjectCreated { fn from(value: &ProjectCreated) -> Self { value.clone() } @@ -64090,7 +64864,7 @@ pub enum ProjectCreatedAction { #[serde(rename = "created")] Created, } -impl From<&ProjectCreatedAction> for ProjectCreatedAction { +impl ::std::convert::From<&ProjectCreatedAction> for ProjectCreatedAction { fn from(value: &ProjectCreatedAction) -> Self { value.clone() } @@ -64102,7 +64876,7 @@ impl ::std::fmt::Display for ProjectCreatedAction { } } } -impl std::str::FromStr for ProjectCreatedAction { +impl ::std::str::FromStr for ProjectCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -64111,13 +64885,13 @@ impl std::str::FromStr for ProjectCreatedAction { } } } -impl std::convert::TryFrom<&str> for ProjectCreatedAction { +impl ::std::convert::TryFrom<&str> for ProjectCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -64125,7 +64899,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -64187,7 +64961,7 @@ pub struct ProjectDeleted { pub repository: Repository, pub sender: User, } -impl From<&ProjectDeleted> for ProjectDeleted { +impl ::std::convert::From<&ProjectDeleted> for ProjectDeleted { fn from(value: &ProjectDeleted) -> Self { value.clone() } @@ -64221,7 +64995,7 @@ pub enum ProjectDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&ProjectDeletedAction> for ProjectDeletedAction { +impl ::std::convert::From<&ProjectDeletedAction> for ProjectDeletedAction { fn from(value: &ProjectDeletedAction) -> Self { value.clone() } @@ -64233,7 +65007,7 @@ impl ::std::fmt::Display for ProjectDeletedAction { } } } -impl std::str::FromStr for ProjectDeletedAction { +impl ::std::str::FromStr for ProjectDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -64242,13 +65016,13 @@ impl std::str::FromStr for ProjectDeletedAction { } } } -impl std::convert::TryFrom<&str> for ProjectDeletedAction { +impl ::std::convert::TryFrom<&str> for ProjectDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -64256,7 +65030,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -64353,7 +65127,7 @@ pub struct ProjectEdited { pub repository: Repository, pub sender: User, } -impl From<&ProjectEdited> for ProjectEdited { +impl ::std::convert::From<&ProjectEdited> for ProjectEdited { fn from(value: &ProjectEdited) -> Self { value.clone() } @@ -64387,7 +65161,7 @@ pub enum ProjectEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&ProjectEditedAction> for ProjectEditedAction { +impl ::std::convert::From<&ProjectEditedAction> for ProjectEditedAction { fn from(value: &ProjectEditedAction) -> Self { value.clone() } @@ -64399,7 +65173,7 @@ impl ::std::fmt::Display for ProjectEditedAction { } } } -impl std::str::FromStr for ProjectEditedAction { +impl ::std::str::FromStr for ProjectEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -64408,13 +65182,13 @@ impl std::str::FromStr for ProjectEditedAction { } } } -impl std::convert::TryFrom<&str> for ProjectEditedAction { +impl ::std::convert::TryFrom<&str> for ProjectEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -64422,7 +65196,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -64478,11 +65252,19 @@ pub struct ProjectEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option, } -impl From<&ProjectEditedChanges> for ProjectEditedChanges { +impl ::std::convert::From<&ProjectEditedChanges> for ProjectEditedChanges { fn from(value: &ProjectEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for ProjectEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + name: Default::default(), + } + } +} #[doc = "ProjectEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -64509,7 +65291,7 @@ pub struct ProjectEditedChangesBody { #[doc = "The previous version of the body if the action was `edited`."] pub from: ::std::string::String, } -impl From<&ProjectEditedChangesBody> for ProjectEditedChangesBody { +impl ::std::convert::From<&ProjectEditedChangesBody> for ProjectEditedChangesBody { fn from(value: &ProjectEditedChangesBody) -> Self { value.clone() } @@ -64540,7 +65322,7 @@ pub struct ProjectEditedChangesName { #[doc = "The changes to the project if the action was `edited`."] pub from: ::std::string::String, } -impl From<&ProjectEditedChangesName> for ProjectEditedChangesName { +impl ::std::convert::From<&ProjectEditedChangesName> for ProjectEditedChangesName { fn from(value: &ProjectEditedChangesName) -> Self { value.clone() } @@ -64580,32 +65362,32 @@ pub enum ProjectEvent { Edited(ProjectEdited), Reopened(ProjectReopened), } -impl From<&ProjectEvent> for ProjectEvent { +impl ::std::convert::From<&ProjectEvent> for ProjectEvent { fn from(value: &ProjectEvent) -> Self { value.clone() } } -impl From for ProjectEvent { +impl ::std::convert::From for ProjectEvent { fn from(value: ProjectClosed) -> Self { Self::Closed(value) } } -impl From for ProjectEvent { +impl ::std::convert::From for ProjectEvent { fn from(value: ProjectCreated) -> Self { Self::Created(value) } } -impl From for ProjectEvent { +impl ::std::convert::From for ProjectEvent { fn from(value: ProjectDeleted) -> Self { Self::Deleted(value) } } -impl From for ProjectEvent { +impl ::std::convert::From for ProjectEvent { fn from(value: ProjectEdited) -> Self { Self::Edited(value) } } -impl From for ProjectEvent { +impl ::std::convert::From for ProjectEvent { fn from(value: ProjectReopened) -> Self { Self::Reopened(value) } @@ -64664,7 +65446,7 @@ pub struct ProjectReopened { pub repository: Repository, pub sender: User, } -impl From<&ProjectReopened> for ProjectReopened { +impl ::std::convert::From<&ProjectReopened> for ProjectReopened { fn from(value: &ProjectReopened) -> Self { value.clone() } @@ -64698,7 +65480,7 @@ pub enum ProjectReopenedAction { #[serde(rename = "reopened")] Reopened, } -impl From<&ProjectReopenedAction> for ProjectReopenedAction { +impl ::std::convert::From<&ProjectReopenedAction> for ProjectReopenedAction { fn from(value: &ProjectReopenedAction) -> Self { value.clone() } @@ -64710,7 +65492,7 @@ impl ::std::fmt::Display for ProjectReopenedAction { } } } -impl std::str::FromStr for ProjectReopenedAction { +impl ::std::str::FromStr for ProjectReopenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -64719,13 +65501,13 @@ impl std::str::FromStr for ProjectReopenedAction { } } } -impl std::convert::TryFrom<&str> for ProjectReopenedAction { +impl ::std::convert::TryFrom<&str> for ProjectReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectReopenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectReopenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -64733,7 +65515,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectReopenedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectReopenedAction { +impl ::std::convert::TryFrom<::std::string::String> for ProjectReopenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -64774,7 +65556,7 @@ pub enum ProjectState { #[serde(rename = "closed")] Closed, } -impl From<&ProjectState> for ProjectState { +impl ::std::convert::From<&ProjectState> for ProjectState { fn from(value: &ProjectState) -> Self { value.clone() } @@ -64787,7 +65569,7 @@ impl ::std::fmt::Display for ProjectState { } } } -impl std::str::FromStr for ProjectState { +impl ::std::str::FromStr for ProjectState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -64797,13 +65579,13 @@ impl std::str::FromStr for ProjectState { } } } -impl std::convert::TryFrom<&str> for ProjectState { +impl ::std::convert::TryFrom<&str> for ProjectState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ProjectState { +impl ::std::convert::TryFrom<&::std::string::String> for ProjectState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -64811,7 +65593,7 @@ impl std::convert::TryFrom<&::std::string::String> for ProjectState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ProjectState { +impl ::std::convert::TryFrom<::std::string::String> for ProjectState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -64880,7 +65662,7 @@ pub struct PublicEvent { pub repository: PublicEventRepository, pub sender: User, } -impl From<&PublicEvent> for PublicEvent { +impl ::std::convert::From<&PublicEvent> for PublicEvent { fn from(value: &PublicEvent) -> Self { value.clone() } @@ -65029,7 +65811,7 @@ pub struct PublicEventRepository { pub watchers: i64, pub watchers_count: i64, } -impl From<&PublicEventRepository> for PublicEventRepository { +impl ::std::convert::From<&PublicEventRepository> for PublicEventRepository { fn from(value: &PublicEventRepository) -> Self { value.clone() } @@ -65058,12 +65840,12 @@ pub enum PublicEventRepositoryCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&PublicEventRepositoryCreatedAt> for PublicEventRepositoryCreatedAt { +impl ::std::convert::From<&PublicEventRepositoryCreatedAt> for PublicEventRepositoryCreatedAt { fn from(value: &PublicEventRepositoryCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for PublicEventRepositoryCreatedAt { +impl ::std::str::FromStr for PublicEventRepositoryCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -65075,13 +65857,13 @@ impl std::str::FromStr for PublicEventRepositoryCreatedAt { } } } -impl std::convert::TryFrom<&str> for PublicEventRepositoryCreatedAt { +impl ::std::convert::TryFrom<&str> for PublicEventRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PublicEventRepositoryCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for PublicEventRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -65089,7 +65871,7 @@ impl std::convert::TryFrom<&::std::string::String> for PublicEventRepositoryCrea value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PublicEventRepositoryCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for PublicEventRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -65105,12 +65887,14 @@ impl ::std::fmt::Display for PublicEventRepositoryCreatedAt { } } } -impl From for PublicEventRepositoryCreatedAt { +impl ::std::convert::From for PublicEventRepositoryCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for PublicEventRepositoryCreatedAt { +impl ::std::convert::From> + for PublicEventRepositoryCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -65159,7 +65943,7 @@ pub struct PublicEventRepositoryPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&PublicEventRepositoryPermissions> for PublicEventRepositoryPermissions { +impl ::std::convert::From<&PublicEventRepositoryPermissions> for PublicEventRepositoryPermissions { fn from(value: &PublicEventRepositoryPermissions) -> Self { value.clone() } @@ -65192,17 +65976,17 @@ pub enum PublicEventRepositoryPushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&PublicEventRepositoryPushedAt> for PublicEventRepositoryPushedAt { +impl ::std::convert::From<&PublicEventRepositoryPushedAt> for PublicEventRepositoryPushedAt { fn from(value: &PublicEventRepositoryPushedAt) -> Self { value.clone() } } -impl From for PublicEventRepositoryPushedAt { +impl ::std::convert::From for PublicEventRepositoryPushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for PublicEventRepositoryPushedAt { +impl ::std::convert::From> for PublicEventRepositoryPushedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -65655,7 +66439,7 @@ pub struct PullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequest> for PullRequest { +impl ::std::convert::From<&PullRequest> for PullRequest { fn from(value: &PullRequest) -> Self { value.clone() } @@ -65698,7 +66482,7 @@ pub enum PullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestActiveLockReason> for PullRequestActiveLockReason { +impl ::std::convert::From<&PullRequestActiveLockReason> for PullRequestActiveLockReason { fn from(value: &PullRequestActiveLockReason) -> Self { value.clone() } @@ -65713,7 +66497,7 @@ impl ::std::fmt::Display for PullRequestActiveLockReason { } } } -impl std::str::FromStr for PullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -65725,13 +66509,13 @@ impl std::str::FromStr for PullRequestActiveLockReason { } } } -impl std::convert::TryFrom<&str> for PullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -65739,7 +66523,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestActiveLockReas value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -65813,7 +66597,7 @@ pub struct PullRequestAssigned { pub repository: Repository, pub sender: User, } -impl From<&PullRequestAssigned> for PullRequestAssigned { +impl ::std::convert::From<&PullRequestAssigned> for PullRequestAssigned { fn from(value: &PullRequestAssigned) -> Self { value.clone() } @@ -65847,7 +66631,7 @@ pub enum PullRequestAssignedAction { #[serde(rename = "assigned")] Assigned, } -impl From<&PullRequestAssignedAction> for PullRequestAssignedAction { +impl ::std::convert::From<&PullRequestAssignedAction> for PullRequestAssignedAction { fn from(value: &PullRequestAssignedAction) -> Self { value.clone() } @@ -65859,7 +66643,7 @@ impl ::std::fmt::Display for PullRequestAssignedAction { } } } -impl std::str::FromStr for PullRequestAssignedAction { +impl ::std::str::FromStr for PullRequestAssignedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -65868,13 +66652,13 @@ impl std::str::FromStr for PullRequestAssignedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestAssignedAction { +impl ::std::convert::TryFrom<&str> for PullRequestAssignedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestAssignedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestAssignedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -65882,7 +66666,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestAssignedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestAssignedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestAssignedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -65949,7 +66733,7 @@ pub struct PullRequestAutoMergeDisabled { pub repository: Repository, pub sender: User, } -impl From<&PullRequestAutoMergeDisabled> for PullRequestAutoMergeDisabled { +impl ::std::convert::From<&PullRequestAutoMergeDisabled> for PullRequestAutoMergeDisabled { fn from(value: &PullRequestAutoMergeDisabled) -> Self { value.clone() } @@ -65983,7 +66767,9 @@ pub enum PullRequestAutoMergeDisabledAction { #[serde(rename = "auto_merge_disabled")] AutoMergeDisabled, } -impl From<&PullRequestAutoMergeDisabledAction> for PullRequestAutoMergeDisabledAction { +impl ::std::convert::From<&PullRequestAutoMergeDisabledAction> + for PullRequestAutoMergeDisabledAction +{ fn from(value: &PullRequestAutoMergeDisabledAction) -> Self { value.clone() } @@ -65995,7 +66781,7 @@ impl ::std::fmt::Display for PullRequestAutoMergeDisabledAction { } } } -impl std::str::FromStr for PullRequestAutoMergeDisabledAction { +impl ::std::str::FromStr for PullRequestAutoMergeDisabledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -66004,13 +66790,13 @@ impl std::str::FromStr for PullRequestAutoMergeDisabledAction { } } } -impl std::convert::TryFrom<&str> for PullRequestAutoMergeDisabledAction { +impl ::std::convert::TryFrom<&str> for PullRequestAutoMergeDisabledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestAutoMergeDisabledAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestAutoMergeDisabledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -66018,7 +66804,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestAutoMergeDisab value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestAutoMergeDisabledAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestAutoMergeDisabledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -66085,7 +66871,7 @@ pub struct PullRequestAutoMergeEnabled { pub repository: Repository, pub sender: User, } -impl From<&PullRequestAutoMergeEnabled> for PullRequestAutoMergeEnabled { +impl ::std::convert::From<&PullRequestAutoMergeEnabled> for PullRequestAutoMergeEnabled { fn from(value: &PullRequestAutoMergeEnabled) -> Self { value.clone() } @@ -66119,7 +66905,9 @@ pub enum PullRequestAutoMergeEnabledAction { #[serde(rename = "auto_merge_enabled")] AutoMergeEnabled, } -impl From<&PullRequestAutoMergeEnabledAction> for PullRequestAutoMergeEnabledAction { +impl ::std::convert::From<&PullRequestAutoMergeEnabledAction> + for PullRequestAutoMergeEnabledAction +{ fn from(value: &PullRequestAutoMergeEnabledAction) -> Self { value.clone() } @@ -66131,7 +66919,7 @@ impl ::std::fmt::Display for PullRequestAutoMergeEnabledAction { } } } -impl std::str::FromStr for PullRequestAutoMergeEnabledAction { +impl ::std::str::FromStr for PullRequestAutoMergeEnabledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -66140,13 +66928,13 @@ impl std::str::FromStr for PullRequestAutoMergeEnabledAction { } } } -impl std::convert::TryFrom<&str> for PullRequestAutoMergeEnabledAction { +impl ::std::convert::TryFrom<&str> for PullRequestAutoMergeEnabledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestAutoMergeEnabledAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestAutoMergeEnabledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -66154,7 +66942,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestAutoMergeEnabl value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestAutoMergeEnabledAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestAutoMergeEnabledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -66207,7 +66995,7 @@ pub struct PullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestBase> for PullRequestBase { +impl ::std::convert::From<&PullRequestBase> for PullRequestBase { fn from(value: &PullRequestBase) -> Self { value.clone() } @@ -66302,7 +67090,7 @@ pub struct PullRequestClosed { pub repository: Repository, pub sender: User, } -impl From<&PullRequestClosed> for PullRequestClosed { +impl ::std::convert::From<&PullRequestClosed> for PullRequestClosed { fn from(value: &PullRequestClosed) -> Self { value.clone() } @@ -66336,7 +67124,7 @@ pub enum PullRequestClosedAction { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestClosedAction> for PullRequestClosedAction { +impl ::std::convert::From<&PullRequestClosedAction> for PullRequestClosedAction { fn from(value: &PullRequestClosedAction) -> Self { value.clone() } @@ -66348,7 +67136,7 @@ impl ::std::fmt::Display for PullRequestClosedAction { } } } -impl std::str::FromStr for PullRequestClosedAction { +impl ::std::str::FromStr for PullRequestClosedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -66357,13 +67145,13 @@ impl std::str::FromStr for PullRequestClosedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestClosedAction { +impl ::std::convert::TryFrom<&str> for PullRequestClosedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestClosedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestClosedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -66371,7 +67159,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestClosedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestClosedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestClosedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -66475,7 +67263,7 @@ pub struct PullRequestClosedPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestClosedPullRequest> for PullRequestClosedPullRequest { +impl ::std::convert::From<&PullRequestClosedPullRequest> for PullRequestClosedPullRequest { fn from(value: &PullRequestClosedPullRequest) -> Self { value.clone() } @@ -66518,7 +67306,7 @@ pub enum PullRequestClosedPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestClosedPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestClosedPullRequestActiveLockReason> for PullRequestClosedPullRequestActiveLockReason { fn from(value: &PullRequestClosedPullRequestActiveLockReason) -> Self { @@ -66535,7 +67323,7 @@ impl ::std::fmt::Display for PullRequestClosedPullRequestActiveLockReason { } } } -impl std::str::FromStr for PullRequestClosedPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestClosedPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -66547,13 +67335,13 @@ impl std::str::FromStr for PullRequestClosedPullRequestActiveLockReason { } } } -impl std::convert::TryFrom<&str> for PullRequestClosedPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestClosedPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestClosedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -66563,7 +67351,9 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestClosedPullRequestActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> + for PullRequestClosedPullRequestActiveLockReason +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -66616,7 +67406,7 @@ pub struct PullRequestClosedPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestClosedPullRequestBase> for PullRequestClosedPullRequestBase { +impl ::std::convert::From<&PullRequestClosedPullRequestBase> for PullRequestClosedPullRequestBase { fn from(value: &PullRequestClosedPullRequestBase) -> Self { value.clone() } @@ -66666,7 +67456,7 @@ pub struct PullRequestClosedPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestClosedPullRequestHead> for PullRequestClosedPullRequestHead { +impl ::std::convert::From<&PullRequestClosedPullRequestHead> for PullRequestClosedPullRequestHead { fn from(value: &PullRequestClosedPullRequestHead) -> Self { value.clone() } @@ -66731,7 +67521,9 @@ pub struct PullRequestClosedPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestClosedPullRequestLinks> for PullRequestClosedPullRequestLinks { +impl ::std::convert::From<&PullRequestClosedPullRequestLinks> + for PullRequestClosedPullRequestLinks +{ fn from(value: &PullRequestClosedPullRequestLinks) -> Self { value.clone() } @@ -66759,19 +67551,19 @@ pub enum PullRequestClosedPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestClosedPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestClosedPullRequestRequestedReviewersItem> for PullRequestClosedPullRequestRequestedReviewersItem { fn from(value: &PullRequestClosedPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestClosedPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestClosedPullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestClosedPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestClosedPullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -66805,7 +67597,9 @@ pub enum PullRequestClosedPullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestClosedPullRequestState> for PullRequestClosedPullRequestState { +impl ::std::convert::From<&PullRequestClosedPullRequestState> + for PullRequestClosedPullRequestState +{ fn from(value: &PullRequestClosedPullRequestState) -> Self { value.clone() } @@ -66817,7 +67611,7 @@ impl ::std::fmt::Display for PullRequestClosedPullRequestState { } } } -impl std::str::FromStr for PullRequestClosedPullRequestState { +impl ::std::str::FromStr for PullRequestClosedPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -66826,13 +67620,13 @@ impl std::str::FromStr for PullRequestClosedPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestClosedPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestClosedPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestClosedPullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestClosedPullRequestState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -66840,7 +67634,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestClosedPullRequ value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestClosedPullRequestState { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestClosedPullRequestState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -66948,7 +67742,7 @@ pub struct PullRequestConvertedToDraft { pub repository: Repository, pub sender: User, } -impl From<&PullRequestConvertedToDraft> for PullRequestConvertedToDraft { +impl ::std::convert::From<&PullRequestConvertedToDraft> for PullRequestConvertedToDraft { fn from(value: &PullRequestConvertedToDraft) -> Self { value.clone() } @@ -66982,7 +67776,9 @@ pub enum PullRequestConvertedToDraftAction { #[serde(rename = "converted_to_draft")] ConvertedToDraft, } -impl From<&PullRequestConvertedToDraftAction> for PullRequestConvertedToDraftAction { +impl ::std::convert::From<&PullRequestConvertedToDraftAction> + for PullRequestConvertedToDraftAction +{ fn from(value: &PullRequestConvertedToDraftAction) -> Self { value.clone() } @@ -66994,7 +67790,7 @@ impl ::std::fmt::Display for PullRequestConvertedToDraftAction { } } } -impl std::str::FromStr for PullRequestConvertedToDraftAction { +impl ::std::str::FromStr for PullRequestConvertedToDraftAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -67003,13 +67799,13 @@ impl std::str::FromStr for PullRequestConvertedToDraftAction { } } } -impl std::convert::TryFrom<&str> for PullRequestConvertedToDraftAction { +impl ::std::convert::TryFrom<&str> for PullRequestConvertedToDraftAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestConvertedToDraftAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestConvertedToDraftAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -67017,7 +67813,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestConvertedToDra value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestConvertedToDraftAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestConvertedToDraftAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -67133,7 +67929,9 @@ pub struct PullRequestConvertedToDraftPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestConvertedToDraftPullRequest> for PullRequestConvertedToDraftPullRequest { +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequest> + for PullRequestConvertedToDraftPullRequest +{ fn from(value: &PullRequestConvertedToDraftPullRequest) -> Self { value.clone() } @@ -67176,7 +67974,7 @@ pub enum PullRequestConvertedToDraftPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestConvertedToDraftPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequestActiveLockReason> for PullRequestConvertedToDraftPullRequestActiveLockReason { fn from(value: &PullRequestConvertedToDraftPullRequestActiveLockReason) -> Self { @@ -67193,7 +67991,7 @@ impl ::std::fmt::Display for PullRequestConvertedToDraftPullRequestActiveLockRea } } } -impl std::str::FromStr for PullRequestConvertedToDraftPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestConvertedToDraftPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -67205,13 +68003,13 @@ impl std::str::FromStr for PullRequestConvertedToDraftPullRequestActiveLockReaso } } } -impl std::convert::TryFrom<&str> for PullRequestConvertedToDraftPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestConvertedToDraftPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestConvertedToDraftPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -67221,7 +68019,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestConvertedToDraftPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -67276,7 +68074,7 @@ pub struct PullRequestConvertedToDraftPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestConvertedToDraftPullRequestBase> +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequestBase> for PullRequestConvertedToDraftPullRequestBase { fn from(value: &PullRequestConvertedToDraftPullRequestBase) -> Self { @@ -67328,7 +68126,7 @@ pub struct PullRequestConvertedToDraftPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestConvertedToDraftPullRequestHead> +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequestHead> for PullRequestConvertedToDraftPullRequestHead { fn from(value: &PullRequestConvertedToDraftPullRequestHead) -> Self { @@ -67395,7 +68193,7 @@ pub struct PullRequestConvertedToDraftPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestConvertedToDraftPullRequestLinks> +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequestLinks> for PullRequestConvertedToDraftPullRequestLinks { fn from(value: &PullRequestConvertedToDraftPullRequestLinks) -> Self { @@ -67425,19 +68223,19 @@ pub enum PullRequestConvertedToDraftPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestConvertedToDraftPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequestRequestedReviewersItem> for PullRequestConvertedToDraftPullRequestRequestedReviewersItem { fn from(value: &PullRequestConvertedToDraftPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestConvertedToDraftPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestConvertedToDraftPullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestConvertedToDraftPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestConvertedToDraftPullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -67475,7 +68273,7 @@ pub enum PullRequestConvertedToDraftPullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestConvertedToDraftPullRequestState> +impl ::std::convert::From<&PullRequestConvertedToDraftPullRequestState> for PullRequestConvertedToDraftPullRequestState { fn from(value: &PullRequestConvertedToDraftPullRequestState) -> Self { @@ -67490,7 +68288,7 @@ impl ::std::fmt::Display for PullRequestConvertedToDraftPullRequestState { } } } -impl std::str::FromStr for PullRequestConvertedToDraftPullRequestState { +impl ::std::str::FromStr for PullRequestConvertedToDraftPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -67500,13 +68298,15 @@ impl std::str::FromStr for PullRequestConvertedToDraftPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestConvertedToDraftPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestConvertedToDraftPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestConvertedToDraftPullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> + for PullRequestConvertedToDraftPullRequestState +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -67514,7 +68314,9 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestConvertedToDra value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestConvertedToDraftPullRequestState { +impl ::std::convert::TryFrom<::std::string::String> + for PullRequestConvertedToDraftPullRequestState +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -67618,7 +68420,7 @@ pub struct PullRequestEdited { pub repository: Repository, pub sender: User, } -impl From<&PullRequestEdited> for PullRequestEdited { +impl ::std::convert::From<&PullRequestEdited> for PullRequestEdited { fn from(value: &PullRequestEdited) -> Self { value.clone() } @@ -67652,7 +68454,7 @@ pub enum PullRequestEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&PullRequestEditedAction> for PullRequestEditedAction { +impl ::std::convert::From<&PullRequestEditedAction> for PullRequestEditedAction { fn from(value: &PullRequestEditedAction) -> Self { value.clone() } @@ -67664,7 +68466,7 @@ impl ::std::fmt::Display for PullRequestEditedAction { } } } -impl std::str::FromStr for PullRequestEditedAction { +impl ::std::str::FromStr for PullRequestEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -67673,13 +68475,13 @@ impl std::str::FromStr for PullRequestEditedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestEditedAction { +impl ::std::convert::TryFrom<&str> for PullRequestEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -67687,7 +68489,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -67743,11 +68545,19 @@ pub struct PullRequestEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option, } -impl From<&PullRequestEditedChanges> for PullRequestEditedChanges { +impl ::std::convert::From<&PullRequestEditedChanges> for PullRequestEditedChanges { fn from(value: &PullRequestEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for PullRequestEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + title: Default::default(), + } + } +} #[doc = "PullRequestEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -67774,7 +68584,7 @@ pub struct PullRequestEditedChangesBody { #[doc = "The previous version of the body if the action was `edited`."] pub from: ::std::string::String, } -impl From<&PullRequestEditedChangesBody> for PullRequestEditedChangesBody { +impl ::std::convert::From<&PullRequestEditedChangesBody> for PullRequestEditedChangesBody { fn from(value: &PullRequestEditedChangesBody) -> Self { value.clone() } @@ -67805,7 +68615,7 @@ pub struct PullRequestEditedChangesTitle { #[doc = "The previous version of the title if the action was `edited`."] pub from: ::std::string::String, } -impl From<&PullRequestEditedChangesTitle> for PullRequestEditedChangesTitle { +impl ::std::convert::From<&PullRequestEditedChangesTitle> for PullRequestEditedChangesTitle { fn from(value: &PullRequestEditedChangesTitle) -> Self { value.clone() } @@ -67893,92 +68703,92 @@ pub enum PullRequestEvent { Unlabeled(PullRequestUnlabeled), Unlocked(PullRequestUnlocked), } -impl From<&PullRequestEvent> for PullRequestEvent { +impl ::std::convert::From<&PullRequestEvent> for PullRequestEvent { fn from(value: &PullRequestEvent) -> Self { value.clone() } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestAssigned) -> Self { Self::Assigned(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestAutoMergeDisabled) -> Self { Self::AutoMergeDisabled(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestAutoMergeEnabled) -> Self { Self::AutoMergeEnabled(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestClosed) -> Self { Self::Closed(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestConvertedToDraft) -> Self { Self::ConvertedToDraft(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestEdited) -> Self { Self::Edited(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestLabeled) -> Self { Self::Labeled(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestLocked) -> Self { Self::Locked(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestOpened) -> Self { Self::Opened(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestReadyForReview) -> Self { Self::ReadyForReview(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestReopened) -> Self { Self::Reopened(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestReviewRequestRemoved) -> Self { Self::ReviewRequestRemoved(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestReviewRequested) -> Self { Self::ReviewRequested(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestSynchronize) -> Self { Self::Synchronize(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestUnassigned) -> Self { Self::Unassigned(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestUnlabeled) -> Self { Self::Unlabeled(value) } } -impl From for PullRequestEvent { +impl ::std::convert::From for PullRequestEvent { fn from(value: PullRequestUnlocked) -> Self { Self::Unlocked(value) } @@ -68028,7 +68838,7 @@ pub struct PullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestHead> for PullRequestHead { +impl ::std::convert::From<&PullRequestHead> for PullRequestHead { fn from(value: &PullRequestHead) -> Self { value.clone() } @@ -68099,7 +68909,7 @@ pub struct PullRequestLabeled { pub repository: Repository, pub sender: User, } -impl From<&PullRequestLabeled> for PullRequestLabeled { +impl ::std::convert::From<&PullRequestLabeled> for PullRequestLabeled { fn from(value: &PullRequestLabeled) -> Self { value.clone() } @@ -68133,7 +68943,7 @@ pub enum PullRequestLabeledAction { #[serde(rename = "labeled")] Labeled, } -impl From<&PullRequestLabeledAction> for PullRequestLabeledAction { +impl ::std::convert::From<&PullRequestLabeledAction> for PullRequestLabeledAction { fn from(value: &PullRequestLabeledAction) -> Self { value.clone() } @@ -68145,7 +68955,7 @@ impl ::std::fmt::Display for PullRequestLabeledAction { } } } -impl std::str::FromStr for PullRequestLabeledAction { +impl ::std::str::FromStr for PullRequestLabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -68154,13 +68964,13 @@ impl std::str::FromStr for PullRequestLabeledAction { } } } -impl std::convert::TryFrom<&str> for PullRequestLabeledAction { +impl ::std::convert::TryFrom<&str> for PullRequestLabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestLabeledAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestLabeledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -68168,7 +68978,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestLabeledAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestLabeledAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestLabeledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -68236,7 +69046,7 @@ pub struct PullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestLinks> for PullRequestLinks { +impl ::std::convert::From<&PullRequestLinks> for PullRequestLinks { fn from(value: &PullRequestLinks) -> Self { value.clone() } @@ -68302,7 +69112,7 @@ pub struct PullRequestLocked { pub repository: Repository, pub sender: User, } -impl From<&PullRequestLocked> for PullRequestLocked { +impl ::std::convert::From<&PullRequestLocked> for PullRequestLocked { fn from(value: &PullRequestLocked) -> Self { value.clone() } @@ -68336,7 +69146,7 @@ pub enum PullRequestLockedAction { #[serde(rename = "locked")] Locked, } -impl From<&PullRequestLockedAction> for PullRequestLockedAction { +impl ::std::convert::From<&PullRequestLockedAction> for PullRequestLockedAction { fn from(value: &PullRequestLockedAction) -> Self { value.clone() } @@ -68348,7 +69158,7 @@ impl ::std::fmt::Display for PullRequestLockedAction { } } } -impl std::str::FromStr for PullRequestLockedAction { +impl ::std::str::FromStr for PullRequestLockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -68357,13 +69167,13 @@ impl std::str::FromStr for PullRequestLockedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestLockedAction { +impl ::std::convert::TryFrom<&str> for PullRequestLockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestLockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestLockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -68371,7 +69181,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestLockedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestLockedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestLockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -68479,7 +69289,7 @@ pub struct PullRequestOpened { pub repository: Repository, pub sender: User, } -impl From<&PullRequestOpened> for PullRequestOpened { +impl ::std::convert::From<&PullRequestOpened> for PullRequestOpened { fn from(value: &PullRequestOpened) -> Self { value.clone() } @@ -68513,7 +69323,7 @@ pub enum PullRequestOpenedAction { #[serde(rename = "opened")] Opened, } -impl From<&PullRequestOpenedAction> for PullRequestOpenedAction { +impl ::std::convert::From<&PullRequestOpenedAction> for PullRequestOpenedAction { fn from(value: &PullRequestOpenedAction) -> Self { value.clone() } @@ -68525,7 +69335,7 @@ impl ::std::fmt::Display for PullRequestOpenedAction { } } } -impl std::str::FromStr for PullRequestOpenedAction { +impl ::std::str::FromStr for PullRequestOpenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -68534,13 +69344,13 @@ impl std::str::FromStr for PullRequestOpenedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestOpenedAction { +impl ::std::convert::TryFrom<&str> for PullRequestOpenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestOpenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestOpenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -68548,7 +69358,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestOpenedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestOpenedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestOpenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -68662,7 +69472,7 @@ pub struct PullRequestOpenedPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestOpenedPullRequest> for PullRequestOpenedPullRequest { +impl ::std::convert::From<&PullRequestOpenedPullRequest> for PullRequestOpenedPullRequest { fn from(value: &PullRequestOpenedPullRequest) -> Self { value.clone() } @@ -68688,12 +69498,12 @@ impl ::std::ops::Deref for PullRequestOpenedPullRequestActiveLockReason { &self.0 } } -impl From for () { +impl ::std::convert::From for () { fn from(value: PullRequestOpenedPullRequestActiveLockReason) -> Self { value.0 } } -impl From<&PullRequestOpenedPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestOpenedPullRequestActiveLockReason> for PullRequestOpenedPullRequestActiveLockReason { fn from(value: &PullRequestOpenedPullRequestActiveLockReason) -> Self { @@ -68764,7 +69574,7 @@ pub struct PullRequestOpenedPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestOpenedPullRequestBase> for PullRequestOpenedPullRequestBase { +impl ::std::convert::From<&PullRequestOpenedPullRequestBase> for PullRequestOpenedPullRequestBase { fn from(value: &PullRequestOpenedPullRequestBase) -> Self { value.clone() } @@ -68814,7 +69624,7 @@ pub struct PullRequestOpenedPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestOpenedPullRequestHead> for PullRequestOpenedPullRequestHead { +impl ::std::convert::From<&PullRequestOpenedPullRequestHead> for PullRequestOpenedPullRequestHead { fn from(value: &PullRequestOpenedPullRequestHead) -> Self { value.clone() } @@ -68879,7 +69689,9 @@ pub struct PullRequestOpenedPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestOpenedPullRequestLinks> for PullRequestOpenedPullRequestLinks { +impl ::std::convert::From<&PullRequestOpenedPullRequestLinks> + for PullRequestOpenedPullRequestLinks +{ fn from(value: &PullRequestOpenedPullRequestLinks) -> Self { value.clone() } @@ -68907,19 +69719,19 @@ pub enum PullRequestOpenedPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestOpenedPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestOpenedPullRequestRequestedReviewersItem> for PullRequestOpenedPullRequestRequestedReviewersItem { fn from(value: &PullRequestOpenedPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestOpenedPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestOpenedPullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestOpenedPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestOpenedPullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -68953,7 +69765,9 @@ pub enum PullRequestOpenedPullRequestState { #[serde(rename = "open")] Open, } -impl From<&PullRequestOpenedPullRequestState> for PullRequestOpenedPullRequestState { +impl ::std::convert::From<&PullRequestOpenedPullRequestState> + for PullRequestOpenedPullRequestState +{ fn from(value: &PullRequestOpenedPullRequestState) -> Self { value.clone() } @@ -68965,7 +69779,7 @@ impl ::std::fmt::Display for PullRequestOpenedPullRequestState { } } } -impl std::str::FromStr for PullRequestOpenedPullRequestState { +impl ::std::str::FromStr for PullRequestOpenedPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -68974,13 +69788,13 @@ impl std::str::FromStr for PullRequestOpenedPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestOpenedPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestOpenedPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestOpenedPullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestOpenedPullRequestState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -68988,7 +69802,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestOpenedPullRequ value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestOpenedPullRequestState { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestOpenedPullRequestState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -69100,7 +69914,7 @@ pub struct PullRequestReadyForReview { pub repository: Repository, pub sender: User, } -impl From<&PullRequestReadyForReview> for PullRequestReadyForReview { +impl ::std::convert::From<&PullRequestReadyForReview> for PullRequestReadyForReview { fn from(value: &PullRequestReadyForReview) -> Self { value.clone() } @@ -69134,7 +69948,7 @@ pub enum PullRequestReadyForReviewAction { #[serde(rename = "ready_for_review")] ReadyForReview, } -impl From<&PullRequestReadyForReviewAction> for PullRequestReadyForReviewAction { +impl ::std::convert::From<&PullRequestReadyForReviewAction> for PullRequestReadyForReviewAction { fn from(value: &PullRequestReadyForReviewAction) -> Self { value.clone() } @@ -69146,7 +69960,7 @@ impl ::std::fmt::Display for PullRequestReadyForReviewAction { } } } -impl std::str::FromStr for PullRequestReadyForReviewAction { +impl ::std::str::FromStr for PullRequestReadyForReviewAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -69155,13 +69969,13 @@ impl std::str::FromStr for PullRequestReadyForReviewAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReadyForReviewAction { +impl ::std::convert::TryFrom<&str> for PullRequestReadyForReviewAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReviewAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReviewAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -69169,7 +69983,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReview value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReadyForReviewAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReadyForReviewAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -69288,7 +70102,9 @@ pub struct PullRequestReadyForReviewPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestReadyForReviewPullRequest> for PullRequestReadyForReviewPullRequest { +impl ::std::convert::From<&PullRequestReadyForReviewPullRequest> + for PullRequestReadyForReviewPullRequest +{ fn from(value: &PullRequestReadyForReviewPullRequest) -> Self { value.clone() } @@ -69331,7 +70147,7 @@ pub enum PullRequestReadyForReviewPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestReadyForReviewPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestReadyForReviewPullRequestActiveLockReason> for PullRequestReadyForReviewPullRequestActiveLockReason { fn from(value: &PullRequestReadyForReviewPullRequestActiveLockReason) -> Self { @@ -69348,7 +70164,7 @@ impl ::std::fmt::Display for PullRequestReadyForReviewPullRequestActiveLockReaso } } } -impl std::str::FromStr for PullRequestReadyForReviewPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestReadyForReviewPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -69360,13 +70176,13 @@ impl std::str::FromStr for PullRequestReadyForReviewPullRequestActiveLockReason } } } -impl std::convert::TryFrom<&str> for PullRequestReadyForReviewPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestReadyForReviewPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReviewPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -69376,7 +70192,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReadyForReviewPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -69431,7 +70247,9 @@ pub struct PullRequestReadyForReviewPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReadyForReviewPullRequestBase> for PullRequestReadyForReviewPullRequestBase { +impl ::std::convert::From<&PullRequestReadyForReviewPullRequestBase> + for PullRequestReadyForReviewPullRequestBase +{ fn from(value: &PullRequestReadyForReviewPullRequestBase) -> Self { value.clone() } @@ -69481,7 +70299,9 @@ pub struct PullRequestReadyForReviewPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReadyForReviewPullRequestHead> for PullRequestReadyForReviewPullRequestHead { +impl ::std::convert::From<&PullRequestReadyForReviewPullRequestHead> + for PullRequestReadyForReviewPullRequestHead +{ fn from(value: &PullRequestReadyForReviewPullRequestHead) -> Self { value.clone() } @@ -69546,7 +70366,7 @@ pub struct PullRequestReadyForReviewPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestReadyForReviewPullRequestLinks> +impl ::std::convert::From<&PullRequestReadyForReviewPullRequestLinks> for PullRequestReadyForReviewPullRequestLinks { fn from(value: &PullRequestReadyForReviewPullRequestLinks) -> Self { @@ -69576,19 +70396,19 @@ pub enum PullRequestReadyForReviewPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestReadyForReviewPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestReadyForReviewPullRequestRequestedReviewersItem> for PullRequestReadyForReviewPullRequestRequestedReviewersItem { fn from(value: &PullRequestReadyForReviewPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestReadyForReviewPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestReadyForReviewPullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestReadyForReviewPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestReadyForReviewPullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -69622,7 +70442,7 @@ pub enum PullRequestReadyForReviewPullRequestState { #[serde(rename = "open")] Open, } -impl From<&PullRequestReadyForReviewPullRequestState> +impl ::std::convert::From<&PullRequestReadyForReviewPullRequestState> for PullRequestReadyForReviewPullRequestState { fn from(value: &PullRequestReadyForReviewPullRequestState) -> Self { @@ -69636,7 +70456,7 @@ impl ::std::fmt::Display for PullRequestReadyForReviewPullRequestState { } } } -impl std::str::FromStr for PullRequestReadyForReviewPullRequestState { +impl ::std::str::FromStr for PullRequestReadyForReviewPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -69645,13 +70465,13 @@ impl std::str::FromStr for PullRequestReadyForReviewPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestReadyForReviewPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestReadyForReviewPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReviewPullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReviewPullRequestState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -69659,7 +70479,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReadyForReview value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReadyForReviewPullRequestState { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReadyForReviewPullRequestState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -69767,7 +70587,7 @@ pub struct PullRequestReopened { pub repository: Repository, pub sender: User, } -impl From<&PullRequestReopened> for PullRequestReopened { +impl ::std::convert::From<&PullRequestReopened> for PullRequestReopened { fn from(value: &PullRequestReopened) -> Self { value.clone() } @@ -69801,7 +70621,7 @@ pub enum PullRequestReopenedAction { #[serde(rename = "reopened")] Reopened, } -impl From<&PullRequestReopenedAction> for PullRequestReopenedAction { +impl ::std::convert::From<&PullRequestReopenedAction> for PullRequestReopenedAction { fn from(value: &PullRequestReopenedAction) -> Self { value.clone() } @@ -69813,7 +70633,7 @@ impl ::std::fmt::Display for PullRequestReopenedAction { } } } -impl std::str::FromStr for PullRequestReopenedAction { +impl ::std::str::FromStr for PullRequestReopenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -69822,13 +70642,13 @@ impl std::str::FromStr for PullRequestReopenedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReopenedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReopenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReopenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -69836,7 +70656,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReopenedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReopenedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReopenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -69950,7 +70770,7 @@ pub struct PullRequestReopenedPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestReopenedPullRequest> for PullRequestReopenedPullRequest { +impl ::std::convert::From<&PullRequestReopenedPullRequest> for PullRequestReopenedPullRequest { fn from(value: &PullRequestReopenedPullRequest) -> Self { value.clone() } @@ -69993,7 +70813,7 @@ pub enum PullRequestReopenedPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestReopenedPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestReopenedPullRequestActiveLockReason> for PullRequestReopenedPullRequestActiveLockReason { fn from(value: &PullRequestReopenedPullRequestActiveLockReason) -> Self { @@ -70010,7 +70830,7 @@ impl ::std::fmt::Display for PullRequestReopenedPullRequestActiveLockReason { } } } -impl std::str::FromStr for PullRequestReopenedPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestReopenedPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -70022,13 +70842,13 @@ impl std::str::FromStr for PullRequestReopenedPullRequestActiveLockReason { } } } -impl std::convert::TryFrom<&str> for PullRequestReopenedPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestReopenedPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReopenedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -70038,7 +70858,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReopenedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -70093,7 +70913,9 @@ pub struct PullRequestReopenedPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReopenedPullRequestBase> for PullRequestReopenedPullRequestBase { +impl ::std::convert::From<&PullRequestReopenedPullRequestBase> + for PullRequestReopenedPullRequestBase +{ fn from(value: &PullRequestReopenedPullRequestBase) -> Self { value.clone() } @@ -70143,7 +70965,9 @@ pub struct PullRequestReopenedPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReopenedPullRequestHead> for PullRequestReopenedPullRequestHead { +impl ::std::convert::From<&PullRequestReopenedPullRequestHead> + for PullRequestReopenedPullRequestHead +{ fn from(value: &PullRequestReopenedPullRequestHead) -> Self { value.clone() } @@ -70208,7 +71032,9 @@ pub struct PullRequestReopenedPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestReopenedPullRequestLinks> for PullRequestReopenedPullRequestLinks { +impl ::std::convert::From<&PullRequestReopenedPullRequestLinks> + for PullRequestReopenedPullRequestLinks +{ fn from(value: &PullRequestReopenedPullRequestLinks) -> Self { value.clone() } @@ -70236,19 +71062,19 @@ pub enum PullRequestReopenedPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestReopenedPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestReopenedPullRequestRequestedReviewersItem> for PullRequestReopenedPullRequestRequestedReviewersItem { fn from(value: &PullRequestReopenedPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestReopenedPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestReopenedPullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestReopenedPullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestReopenedPullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -70282,7 +71108,9 @@ pub enum PullRequestReopenedPullRequestState { #[serde(rename = "open")] Open, } -impl From<&PullRequestReopenedPullRequestState> for PullRequestReopenedPullRequestState { +impl ::std::convert::From<&PullRequestReopenedPullRequestState> + for PullRequestReopenedPullRequestState +{ fn from(value: &PullRequestReopenedPullRequestState) -> Self { value.clone() } @@ -70294,7 +71122,7 @@ impl ::std::fmt::Display for PullRequestReopenedPullRequestState { } } } -impl std::str::FromStr for PullRequestReopenedPullRequestState { +impl ::std::str::FromStr for PullRequestReopenedPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -70303,13 +71131,13 @@ impl std::str::FromStr for PullRequestReopenedPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestReopenedPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestReopenedPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReopenedPullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReopenedPullRequestState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -70317,7 +71145,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReopenedPullRe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReopenedPullRequestState { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReopenedPullRequestState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -70348,17 +71176,19 @@ pub enum PullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestRequestedReviewersItem> for PullRequestRequestedReviewersItem { +impl ::std::convert::From<&PullRequestRequestedReviewersItem> + for PullRequestRequestedReviewersItem +{ fn from(value: &PullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestRequestedReviewersItem { +impl ::std::convert::From for PullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -70598,7 +71428,7 @@ pub struct PullRequestReviewComment { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewComment> for PullRequestReviewComment { +impl ::std::convert::From<&PullRequestReviewComment> for PullRequestReviewComment { fn from(value: &PullRequestReviewComment) -> Self { value.clone() } @@ -70962,7 +71792,7 @@ pub struct PullRequestReviewCommentCreated { pub repository: Repository, pub sender: User, } -impl From<&PullRequestReviewCommentCreated> for PullRequestReviewCommentCreated { +impl ::std::convert::From<&PullRequestReviewCommentCreated> for PullRequestReviewCommentCreated { fn from(value: &PullRequestReviewCommentCreated) -> Self { value.clone() } @@ -70996,7 +71826,9 @@ pub enum PullRequestReviewCommentCreatedAction { #[serde(rename = "created")] Created, } -impl From<&PullRequestReviewCommentCreatedAction> for PullRequestReviewCommentCreatedAction { +impl ::std::convert::From<&PullRequestReviewCommentCreatedAction> + for PullRequestReviewCommentCreatedAction +{ fn from(value: &PullRequestReviewCommentCreatedAction) -> Self { value.clone() } @@ -71008,7 +71840,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentCreatedAction { } } } -impl std::str::FromStr for PullRequestReviewCommentCreatedAction { +impl ::std::str::FromStr for PullRequestReviewCommentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -71017,13 +71849,13 @@ impl std::str::FromStr for PullRequestReviewCommentCreatedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentCreatedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -71031,7 +71863,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentC value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -71394,7 +72226,7 @@ pub struct PullRequestReviewCommentCreatedPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentCreatedPullRequest> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequest> for PullRequestReviewCommentCreatedPullRequest { fn from(value: &PullRequestReviewCommentCreatedPullRequest) -> Self { @@ -71439,7 +72271,7 @@ pub enum PullRequestReviewCommentCreatedPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestReviewCommentCreatedPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequestActiveLockReason> for PullRequestReviewCommentCreatedPullRequestActiveLockReason { fn from(value: &PullRequestReviewCommentCreatedPullRequestActiveLockReason) -> Self { @@ -71456,7 +72288,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentCreatedPullRequestActiveLoc } } } -impl std::str::FromStr for PullRequestReviewCommentCreatedPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestReviewCommentCreatedPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -71468,13 +72300,13 @@ impl std::str::FromStr for PullRequestReviewCommentCreatedPullRequestActiveLockR } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentCreatedPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentCreatedPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentCreatedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -71484,7 +72316,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentCreatedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -71539,7 +72371,7 @@ pub struct PullRequestReviewCommentCreatedPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentCreatedPullRequestBase> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequestBase> for PullRequestReviewCommentCreatedPullRequestBase { fn from(value: &PullRequestReviewCommentCreatedPullRequestBase) -> Self { @@ -71591,7 +72423,7 @@ pub struct PullRequestReviewCommentCreatedPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentCreatedPullRequestHead> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequestHead> for PullRequestReviewCommentCreatedPullRequestHead { fn from(value: &PullRequestReviewCommentCreatedPullRequestHead) -> Self { @@ -71658,7 +72490,7 @@ pub struct PullRequestReviewCommentCreatedPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestReviewCommentCreatedPullRequestLinks> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequestLinks> for PullRequestReviewCommentCreatedPullRequestLinks { fn from(value: &PullRequestReviewCommentCreatedPullRequestLinks) -> Self { @@ -71688,19 +72520,23 @@ pub enum PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem> for PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem { fn from(value: &PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem { +impl ::std::convert::From + for PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem +{ fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem { +impl ::std::convert::From + for PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem +{ fn from(value: Team) -> Self { Self::Team(value) } @@ -71737,7 +72573,7 @@ pub enum PullRequestReviewCommentCreatedPullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestReviewCommentCreatedPullRequestState> +impl ::std::convert::From<&PullRequestReviewCommentCreatedPullRequestState> for PullRequestReviewCommentCreatedPullRequestState { fn from(value: &PullRequestReviewCommentCreatedPullRequestState) -> Self { @@ -71752,7 +72588,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentCreatedPullRequestState { } } } -impl std::str::FromStr for PullRequestReviewCommentCreatedPullRequestState { +impl ::std::str::FromStr for PullRequestReviewCommentCreatedPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -71762,13 +72598,13 @@ impl std::str::FromStr for PullRequestReviewCommentCreatedPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentCreatedPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentCreatedPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentCreatedPullRequestState { type Error = self::error::ConversionError; @@ -71778,7 +72614,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentCreatedPullRequestState { type Error = self::error::ConversionError; @@ -72147,7 +72983,7 @@ pub struct PullRequestReviewCommentDeleted { pub repository: Repository, pub sender: User, } -impl From<&PullRequestReviewCommentDeleted> for PullRequestReviewCommentDeleted { +impl ::std::convert::From<&PullRequestReviewCommentDeleted> for PullRequestReviewCommentDeleted { fn from(value: &PullRequestReviewCommentDeleted) -> Self { value.clone() } @@ -72181,7 +73017,9 @@ pub enum PullRequestReviewCommentDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&PullRequestReviewCommentDeletedAction> for PullRequestReviewCommentDeletedAction { +impl ::std::convert::From<&PullRequestReviewCommentDeletedAction> + for PullRequestReviewCommentDeletedAction +{ fn from(value: &PullRequestReviewCommentDeletedAction) -> Self { value.clone() } @@ -72193,7 +73031,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentDeletedAction { } } } -impl std::str::FromStr for PullRequestReviewCommentDeletedAction { +impl ::std::str::FromStr for PullRequestReviewCommentDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -72202,13 +73040,13 @@ impl std::str::FromStr for PullRequestReviewCommentDeletedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentDeletedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -72216,7 +73054,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentD value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -72579,7 +73417,7 @@ pub struct PullRequestReviewCommentDeletedPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentDeletedPullRequest> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequest> for PullRequestReviewCommentDeletedPullRequest { fn from(value: &PullRequestReviewCommentDeletedPullRequest) -> Self { @@ -72624,7 +73462,7 @@ pub enum PullRequestReviewCommentDeletedPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestReviewCommentDeletedPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequestActiveLockReason> for PullRequestReviewCommentDeletedPullRequestActiveLockReason { fn from(value: &PullRequestReviewCommentDeletedPullRequestActiveLockReason) -> Self { @@ -72641,7 +73479,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentDeletedPullRequestActiveLoc } } } -impl std::str::FromStr for PullRequestReviewCommentDeletedPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestReviewCommentDeletedPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -72653,13 +73491,13 @@ impl std::str::FromStr for PullRequestReviewCommentDeletedPullRequestActiveLockR } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentDeletedPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentDeletedPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentDeletedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -72669,7 +73507,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentDeletedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -72724,7 +73562,7 @@ pub struct PullRequestReviewCommentDeletedPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentDeletedPullRequestBase> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequestBase> for PullRequestReviewCommentDeletedPullRequestBase { fn from(value: &PullRequestReviewCommentDeletedPullRequestBase) -> Self { @@ -72776,7 +73614,7 @@ pub struct PullRequestReviewCommentDeletedPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentDeletedPullRequestHead> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequestHead> for PullRequestReviewCommentDeletedPullRequestHead { fn from(value: &PullRequestReviewCommentDeletedPullRequestHead) -> Self { @@ -72843,7 +73681,7 @@ pub struct PullRequestReviewCommentDeletedPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestReviewCommentDeletedPullRequestLinks> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequestLinks> for PullRequestReviewCommentDeletedPullRequestLinks { fn from(value: &PullRequestReviewCommentDeletedPullRequestLinks) -> Self { @@ -72873,19 +73711,23 @@ pub enum PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem> for PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem { fn from(value: &PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem { +impl ::std::convert::From + for PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem +{ fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem { +impl ::std::convert::From + for PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem +{ fn from(value: Team) -> Self { Self::Team(value) } @@ -72922,7 +73764,7 @@ pub enum PullRequestReviewCommentDeletedPullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestReviewCommentDeletedPullRequestState> +impl ::std::convert::From<&PullRequestReviewCommentDeletedPullRequestState> for PullRequestReviewCommentDeletedPullRequestState { fn from(value: &PullRequestReviewCommentDeletedPullRequestState) -> Self { @@ -72937,7 +73779,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentDeletedPullRequestState { } } } -impl std::str::FromStr for PullRequestReviewCommentDeletedPullRequestState { +impl ::std::str::FromStr for PullRequestReviewCommentDeletedPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -72947,13 +73789,13 @@ impl std::str::FromStr for PullRequestReviewCommentDeletedPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentDeletedPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentDeletedPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentDeletedPullRequestState { type Error = self::error::ConversionError; @@ -72963,7 +73805,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentDeletedPullRequestState { type Error = self::error::ConversionError; @@ -73354,7 +74196,7 @@ pub struct PullRequestReviewCommentEdited { pub repository: Repository, pub sender: User, } -impl From<&PullRequestReviewCommentEdited> for PullRequestReviewCommentEdited { +impl ::std::convert::From<&PullRequestReviewCommentEdited> for PullRequestReviewCommentEdited { fn from(value: &PullRequestReviewCommentEdited) -> Self { value.clone() } @@ -73388,7 +74230,9 @@ pub enum PullRequestReviewCommentEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&PullRequestReviewCommentEditedAction> for PullRequestReviewCommentEditedAction { +impl ::std::convert::From<&PullRequestReviewCommentEditedAction> + for PullRequestReviewCommentEditedAction +{ fn from(value: &PullRequestReviewCommentEditedAction) -> Self { value.clone() } @@ -73400,7 +74244,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentEditedAction { } } } -impl std::str::FromStr for PullRequestReviewCommentEditedAction { +impl ::std::str::FromStr for PullRequestReviewCommentEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -73409,13 +74253,13 @@ impl std::str::FromStr for PullRequestReviewCommentEditedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentEditedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -73423,7 +74267,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentE value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -73464,11 +74308,20 @@ pub struct PullRequestReviewCommentEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub body: ::std::option::Option, } -impl From<&PullRequestReviewCommentEditedChanges> for PullRequestReviewCommentEditedChanges { +impl ::std::convert::From<&PullRequestReviewCommentEditedChanges> + for PullRequestReviewCommentEditedChanges +{ fn from(value: &PullRequestReviewCommentEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for PullRequestReviewCommentEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + } + } +} #[doc = "PullRequestReviewCommentEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -73495,7 +74348,7 @@ pub struct PullRequestReviewCommentEditedChangesBody { #[doc = "The previous version of the body."] pub from: ::std::string::String, } -impl From<&PullRequestReviewCommentEditedChangesBody> +impl ::std::convert::From<&PullRequestReviewCommentEditedChangesBody> for PullRequestReviewCommentEditedChangesBody { fn from(value: &PullRequestReviewCommentEditedChangesBody) -> Self { @@ -73857,7 +74710,7 @@ pub struct PullRequestReviewCommentEditedPullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentEditedPullRequest> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequest> for PullRequestReviewCommentEditedPullRequest { fn from(value: &PullRequestReviewCommentEditedPullRequest) -> Self { @@ -73902,7 +74755,7 @@ pub enum PullRequestReviewCommentEditedPullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&PullRequestReviewCommentEditedPullRequestActiveLockReason> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequestActiveLockReason> for PullRequestReviewCommentEditedPullRequestActiveLockReason { fn from(value: &PullRequestReviewCommentEditedPullRequestActiveLockReason) -> Self { @@ -73919,7 +74772,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentEditedPullRequestActiveLock } } } -impl std::str::FromStr for PullRequestReviewCommentEditedPullRequestActiveLockReason { +impl ::std::str::FromStr for PullRequestReviewCommentEditedPullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -73931,13 +74784,13 @@ impl std::str::FromStr for PullRequestReviewCommentEditedPullRequestActiveLockRe } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentEditedPullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentEditedPullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentEditedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -73947,7 +74800,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentEditedPullRequestActiveLockReason { type Error = self::error::ConversionError; @@ -74002,7 +74855,7 @@ pub struct PullRequestReviewCommentEditedPullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentEditedPullRequestBase> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequestBase> for PullRequestReviewCommentEditedPullRequestBase { fn from(value: &PullRequestReviewCommentEditedPullRequestBase) -> Self { @@ -74054,7 +74907,7 @@ pub struct PullRequestReviewCommentEditedPullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&PullRequestReviewCommentEditedPullRequestHead> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequestHead> for PullRequestReviewCommentEditedPullRequestHead { fn from(value: &PullRequestReviewCommentEditedPullRequestHead) -> Self { @@ -74121,7 +74974,7 @@ pub struct PullRequestReviewCommentEditedPullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&PullRequestReviewCommentEditedPullRequestLinks> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequestLinks> for PullRequestReviewCommentEditedPullRequestLinks { fn from(value: &PullRequestReviewCommentEditedPullRequestLinks) -> Self { @@ -74151,19 +75004,23 @@ pub enum PullRequestReviewCommentEditedPullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&PullRequestReviewCommentEditedPullRequestRequestedReviewersItem> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequestRequestedReviewersItem> for PullRequestReviewCommentEditedPullRequestRequestedReviewersItem { fn from(value: &PullRequestReviewCommentEditedPullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for PullRequestReviewCommentEditedPullRequestRequestedReviewersItem { +impl ::std::convert::From + for PullRequestReviewCommentEditedPullRequestRequestedReviewersItem +{ fn from(value: User) -> Self { Self::User(value) } } -impl From for PullRequestReviewCommentEditedPullRequestRequestedReviewersItem { +impl ::std::convert::From + for PullRequestReviewCommentEditedPullRequestRequestedReviewersItem +{ fn from(value: Team) -> Self { Self::Team(value) } @@ -74200,7 +75057,7 @@ pub enum PullRequestReviewCommentEditedPullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestReviewCommentEditedPullRequestState> +impl ::std::convert::From<&PullRequestReviewCommentEditedPullRequestState> for PullRequestReviewCommentEditedPullRequestState { fn from(value: &PullRequestReviewCommentEditedPullRequestState) -> Self { @@ -74215,7 +75072,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentEditedPullRequestState { } } } -impl std::str::FromStr for PullRequestReviewCommentEditedPullRequestState { +impl ::std::str::FromStr for PullRequestReviewCommentEditedPullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -74225,13 +75082,13 @@ impl std::str::FromStr for PullRequestReviewCommentEditedPullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentEditedPullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentEditedPullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentEditedPullRequestState { type Error = self::error::ConversionError; @@ -74241,7 +75098,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentEditedPullRequestState { type Error = self::error::ConversionError; @@ -74278,22 +75135,22 @@ pub enum PullRequestReviewCommentEvent { Deleted(PullRequestReviewCommentDeleted), Edited(PullRequestReviewCommentEdited), } -impl From<&PullRequestReviewCommentEvent> for PullRequestReviewCommentEvent { +impl ::std::convert::From<&PullRequestReviewCommentEvent> for PullRequestReviewCommentEvent { fn from(value: &PullRequestReviewCommentEvent) -> Self { value.clone() } } -impl From for PullRequestReviewCommentEvent { +impl ::std::convert::From for PullRequestReviewCommentEvent { fn from(value: PullRequestReviewCommentCreated) -> Self { Self::Created(value) } } -impl From for PullRequestReviewCommentEvent { +impl ::std::convert::From for PullRequestReviewCommentEvent { fn from(value: PullRequestReviewCommentDeleted) -> Self { Self::Deleted(value) } } -impl From for PullRequestReviewCommentEvent { +impl ::std::convert::From for PullRequestReviewCommentEvent { fn from(value: PullRequestReviewCommentEdited) -> Self { Self::Edited(value) } @@ -74333,7 +75190,7 @@ pub struct PullRequestReviewCommentLinks { #[serde(rename = "self")] pub self_: Link, } -impl From<&PullRequestReviewCommentLinks> for PullRequestReviewCommentLinks { +impl ::std::convert::From<&PullRequestReviewCommentLinks> for PullRequestReviewCommentLinks { fn from(value: &PullRequestReviewCommentLinks) -> Self { value.clone() } @@ -74371,7 +75228,7 @@ pub enum PullRequestReviewCommentSide { #[serde(rename = "RIGHT")] Right, } -impl From<&PullRequestReviewCommentSide> for PullRequestReviewCommentSide { +impl ::std::convert::From<&PullRequestReviewCommentSide> for PullRequestReviewCommentSide { fn from(value: &PullRequestReviewCommentSide) -> Self { value.clone() } @@ -74384,7 +75241,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentSide { } } } -impl std::str::FromStr for PullRequestReviewCommentSide { +impl ::std::str::FromStr for PullRequestReviewCommentSide { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -74394,13 +75251,13 @@ impl std::str::FromStr for PullRequestReviewCommentSide { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentSide { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentSide { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentSide { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentSide { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -74408,7 +75265,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentSide { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentSide { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -74450,7 +75307,9 @@ pub enum PullRequestReviewCommentStartSide { #[serde(rename = "RIGHT")] Right, } -impl From<&PullRequestReviewCommentStartSide> for PullRequestReviewCommentStartSide { +impl ::std::convert::From<&PullRequestReviewCommentStartSide> + for PullRequestReviewCommentStartSide +{ fn from(value: &PullRequestReviewCommentStartSide) -> Self { value.clone() } @@ -74463,7 +75322,7 @@ impl ::std::fmt::Display for PullRequestReviewCommentStartSide { } } } -impl std::str::FromStr for PullRequestReviewCommentStartSide { +impl ::std::str::FromStr for PullRequestReviewCommentStartSide { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -74473,13 +75332,13 @@ impl std::str::FromStr for PullRequestReviewCommentStartSide { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewCommentStartSide { +impl ::std::convert::TryFrom<&str> for PullRequestReviewCommentStartSide { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentStartSide { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentStartSide { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -74487,7 +75346,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewCommentS value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentStartSide { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewCommentStartSide { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -74629,7 +75488,7 @@ pub struct PullRequestReviewDismissed { pub review: PullRequestReviewDismissedReview, pub sender: User, } -impl From<&PullRequestReviewDismissed> for PullRequestReviewDismissed { +impl ::std::convert::From<&PullRequestReviewDismissed> for PullRequestReviewDismissed { fn from(value: &PullRequestReviewDismissed) -> Self { value.clone() } @@ -74663,7 +75522,7 @@ pub enum PullRequestReviewDismissedAction { #[serde(rename = "dismissed")] Dismissed, } -impl From<&PullRequestReviewDismissedAction> for PullRequestReviewDismissedAction { +impl ::std::convert::From<&PullRequestReviewDismissedAction> for PullRequestReviewDismissedAction { fn from(value: &PullRequestReviewDismissedAction) -> Self { value.clone() } @@ -74675,7 +75534,7 @@ impl ::std::fmt::Display for PullRequestReviewDismissedAction { } } } -impl std::str::FromStr for PullRequestReviewDismissedAction { +impl ::std::str::FromStr for PullRequestReviewDismissedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -74684,13 +75543,13 @@ impl std::str::FromStr for PullRequestReviewDismissedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewDismissedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReviewDismissedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewDismissedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewDismissedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -74698,7 +75557,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewDismisse value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewDismissedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewDismissedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -74810,7 +75669,7 @@ pub struct PullRequestReviewDismissedReview { pub submitted_at: chrono::DateTime, pub user: User, } -impl From<&PullRequestReviewDismissedReview> for PullRequestReviewDismissedReview { +impl ::std::convert::From<&PullRequestReviewDismissedReview> for PullRequestReviewDismissedReview { fn from(value: &PullRequestReviewDismissedReview) -> Self { value.clone() } @@ -74844,7 +75703,9 @@ pub struct PullRequestReviewDismissedReviewLinks { pub html: Link, pub pull_request: Link, } -impl From<&PullRequestReviewDismissedReviewLinks> for PullRequestReviewDismissedReviewLinks { +impl ::std::convert::From<&PullRequestReviewDismissedReviewLinks> + for PullRequestReviewDismissedReviewLinks +{ fn from(value: &PullRequestReviewDismissedReviewLinks) -> Self { value.clone() } @@ -74878,7 +75739,9 @@ pub enum PullRequestReviewDismissedReviewState { #[serde(rename = "dismissed")] Dismissed, } -impl From<&PullRequestReviewDismissedReviewState> for PullRequestReviewDismissedReviewState { +impl ::std::convert::From<&PullRequestReviewDismissedReviewState> + for PullRequestReviewDismissedReviewState +{ fn from(value: &PullRequestReviewDismissedReviewState) -> Self { value.clone() } @@ -74890,7 +75753,7 @@ impl ::std::fmt::Display for PullRequestReviewDismissedReviewState { } } } -impl std::str::FromStr for PullRequestReviewDismissedReviewState { +impl ::std::str::FromStr for PullRequestReviewDismissedReviewState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -74899,13 +75762,13 @@ impl std::str::FromStr for PullRequestReviewDismissedReviewState { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewDismissedReviewState { +impl ::std::convert::TryFrom<&str> for PullRequestReviewDismissedReviewState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewDismissedReviewState { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewDismissedReviewState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -74913,7 +75776,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewDismisse value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewDismissedReviewState { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewDismissedReviewState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -75073,7 +75936,7 @@ pub struct PullRequestReviewEdited { pub review: PullRequestReviewEditedReview, pub sender: User, } -impl From<&PullRequestReviewEdited> for PullRequestReviewEdited { +impl ::std::convert::From<&PullRequestReviewEdited> for PullRequestReviewEdited { fn from(value: &PullRequestReviewEdited) -> Self { value.clone() } @@ -75107,7 +75970,7 @@ pub enum PullRequestReviewEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&PullRequestReviewEditedAction> for PullRequestReviewEditedAction { +impl ::std::convert::From<&PullRequestReviewEditedAction> for PullRequestReviewEditedAction { fn from(value: &PullRequestReviewEditedAction) -> Self { value.clone() } @@ -75119,7 +75982,7 @@ impl ::std::fmt::Display for PullRequestReviewEditedAction { } } } -impl std::str::FromStr for PullRequestReviewEditedAction { +impl ::std::str::FromStr for PullRequestReviewEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -75128,13 +75991,13 @@ impl std::str::FromStr for PullRequestReviewEditedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewEditedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReviewEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -75142,7 +76005,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewEditedAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -75182,11 +76045,18 @@ pub struct PullRequestReviewEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub body: ::std::option::Option, } -impl From<&PullRequestReviewEditedChanges> for PullRequestReviewEditedChanges { +impl ::std::convert::From<&PullRequestReviewEditedChanges> for PullRequestReviewEditedChanges { fn from(value: &PullRequestReviewEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for PullRequestReviewEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + } + } +} #[doc = "PullRequestReviewEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -75213,7 +76083,9 @@ pub struct PullRequestReviewEditedChangesBody { #[doc = "The previous version of the body if the action was `edited`."] pub from: ::std::string::String, } -impl From<&PullRequestReviewEditedChangesBody> for PullRequestReviewEditedChangesBody { +impl ::std::convert::From<&PullRequestReviewEditedChangesBody> + for PullRequestReviewEditedChangesBody +{ fn from(value: &PullRequestReviewEditedChangesBody) -> Self { value.clone() } @@ -75319,7 +76191,7 @@ pub struct PullRequestReviewEditedReview { pub submitted_at: chrono::DateTime, pub user: User, } -impl From<&PullRequestReviewEditedReview> for PullRequestReviewEditedReview { +impl ::std::convert::From<&PullRequestReviewEditedReview> for PullRequestReviewEditedReview { fn from(value: &PullRequestReviewEditedReview) -> Self { value.clone() } @@ -75353,7 +76225,9 @@ pub struct PullRequestReviewEditedReviewLinks { pub html: Link, pub pull_request: Link, } -impl From<&PullRequestReviewEditedReviewLinks> for PullRequestReviewEditedReviewLinks { +impl ::std::convert::From<&PullRequestReviewEditedReviewLinks> + for PullRequestReviewEditedReviewLinks +{ fn from(value: &PullRequestReviewEditedReviewLinks) -> Self { value.clone() } @@ -75385,22 +76259,22 @@ pub enum PullRequestReviewEvent { Edited(PullRequestReviewEdited), Submitted(PullRequestReviewSubmitted), } -impl From<&PullRequestReviewEvent> for PullRequestReviewEvent { +impl ::std::convert::From<&PullRequestReviewEvent> for PullRequestReviewEvent { fn from(value: &PullRequestReviewEvent) -> Self { value.clone() } } -impl From for PullRequestReviewEvent { +impl ::std::convert::From for PullRequestReviewEvent { fn from(value: PullRequestReviewDismissed) -> Self { Self::Dismissed(value) } } -impl From for PullRequestReviewEvent { +impl ::std::convert::From for PullRequestReviewEvent { fn from(value: PullRequestReviewEdited) -> Self { Self::Edited(value) } } -impl From for PullRequestReviewEvent { +impl ::std::convert::From for PullRequestReviewEvent { fn from(value: PullRequestReviewSubmitted) -> Self { Self::Submitted(value) } @@ -75532,7 +76406,7 @@ pub enum PullRequestReviewRequestRemoved { sender: User, }, } -impl From<&PullRequestReviewRequestRemoved> for PullRequestReviewRequestRemoved { +impl ::std::convert::From<&PullRequestReviewRequestRemoved> for PullRequestReviewRequestRemoved { fn from(value: &PullRequestReviewRequestRemoved) -> Self { value.clone() } @@ -75566,7 +76440,7 @@ pub enum PullRequestReviewRequestRemovedVariant0Action { #[serde(rename = "review_request_removed")] ReviewRequestRemoved, } -impl From<&PullRequestReviewRequestRemovedVariant0Action> +impl ::std::convert::From<&PullRequestReviewRequestRemovedVariant0Action> for PullRequestReviewRequestRemovedVariant0Action { fn from(value: &PullRequestReviewRequestRemovedVariant0Action) -> Self { @@ -75580,7 +76454,7 @@ impl ::std::fmt::Display for PullRequestReviewRequestRemovedVariant0Action { } } } -impl std::str::FromStr for PullRequestReviewRequestRemovedVariant0Action { +impl ::std::str::FromStr for PullRequestReviewRequestRemovedVariant0Action { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -75589,13 +76463,13 @@ impl std::str::FromStr for PullRequestReviewRequestRemovedVariant0Action { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewRequestRemovedVariant0Action { +impl ::std::convert::TryFrom<&str> for PullRequestReviewRequestRemovedVariant0Action { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequestRemovedVariant0Action { type Error = self::error::ConversionError; @@ -75605,7 +76479,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewRequestRemovedVariant0Action { type Error = self::error::ConversionError; @@ -75644,7 +76518,7 @@ pub enum PullRequestReviewRequestRemovedVariant1Action { #[serde(rename = "review_request_removed")] ReviewRequestRemoved, } -impl From<&PullRequestReviewRequestRemovedVariant1Action> +impl ::std::convert::From<&PullRequestReviewRequestRemovedVariant1Action> for PullRequestReviewRequestRemovedVariant1Action { fn from(value: &PullRequestReviewRequestRemovedVariant1Action) -> Self { @@ -75658,7 +76532,7 @@ impl ::std::fmt::Display for PullRequestReviewRequestRemovedVariant1Action { } } } -impl std::str::FromStr for PullRequestReviewRequestRemovedVariant1Action { +impl ::std::str::FromStr for PullRequestReviewRequestRemovedVariant1Action { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -75667,13 +76541,13 @@ impl std::str::FromStr for PullRequestReviewRequestRemovedVariant1Action { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewRequestRemovedVariant1Action { +impl ::std::convert::TryFrom<&str> for PullRequestReviewRequestRemovedVariant1Action { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequestRemovedVariant1Action { type Error = self::error::ConversionError; @@ -75683,7 +76557,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewRequestRemovedVariant1Action { type Error = self::error::ConversionError; @@ -75820,7 +76694,7 @@ pub enum PullRequestReviewRequested { sender: User, }, } -impl From<&PullRequestReviewRequested> for PullRequestReviewRequested { +impl ::std::convert::From<&PullRequestReviewRequested> for PullRequestReviewRequested { fn from(value: &PullRequestReviewRequested) -> Self { value.clone() } @@ -75854,7 +76728,9 @@ pub enum PullRequestReviewRequestedVariant0Action { #[serde(rename = "review_requested")] ReviewRequested, } -impl From<&PullRequestReviewRequestedVariant0Action> for PullRequestReviewRequestedVariant0Action { +impl ::std::convert::From<&PullRequestReviewRequestedVariant0Action> + for PullRequestReviewRequestedVariant0Action +{ fn from(value: &PullRequestReviewRequestedVariant0Action) -> Self { value.clone() } @@ -75866,7 +76742,7 @@ impl ::std::fmt::Display for PullRequestReviewRequestedVariant0Action { } } } -impl std::str::FromStr for PullRequestReviewRequestedVariant0Action { +impl ::std::str::FromStr for PullRequestReviewRequestedVariant0Action { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -75875,13 +76751,13 @@ impl std::str::FromStr for PullRequestReviewRequestedVariant0Action { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewRequestedVariant0Action { +impl ::std::convert::TryFrom<&str> for PullRequestReviewRequestedVariant0Action { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequestedVariant0Action { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequestedVariant0Action { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -75889,7 +76765,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequeste value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewRequestedVariant0Action { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewRequestedVariant0Action { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -75926,7 +76802,9 @@ pub enum PullRequestReviewRequestedVariant1Action { #[serde(rename = "review_requested")] ReviewRequested, } -impl From<&PullRequestReviewRequestedVariant1Action> for PullRequestReviewRequestedVariant1Action { +impl ::std::convert::From<&PullRequestReviewRequestedVariant1Action> + for PullRequestReviewRequestedVariant1Action +{ fn from(value: &PullRequestReviewRequestedVariant1Action) -> Self { value.clone() } @@ -75938,7 +76816,7 @@ impl ::std::fmt::Display for PullRequestReviewRequestedVariant1Action { } } } -impl std::str::FromStr for PullRequestReviewRequestedVariant1Action { +impl ::std::str::FromStr for PullRequestReviewRequestedVariant1Action { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -75947,13 +76825,13 @@ impl std::str::FromStr for PullRequestReviewRequestedVariant1Action { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewRequestedVariant1Action { +impl ::std::convert::TryFrom<&str> for PullRequestReviewRequestedVariant1Action { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequestedVariant1Action { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequestedVariant1Action { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -75961,7 +76839,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewRequeste value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewRequestedVariant1Action { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewRequestedVariant1Action { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -76100,7 +76978,7 @@ pub struct PullRequestReviewSubmitted { pub review: PullRequestReviewSubmittedReview, pub sender: User, } -impl From<&PullRequestReviewSubmitted> for PullRequestReviewSubmitted { +impl ::std::convert::From<&PullRequestReviewSubmitted> for PullRequestReviewSubmitted { fn from(value: &PullRequestReviewSubmitted) -> Self { value.clone() } @@ -76134,7 +77012,7 @@ pub enum PullRequestReviewSubmittedAction { #[serde(rename = "submitted")] Submitted, } -impl From<&PullRequestReviewSubmittedAction> for PullRequestReviewSubmittedAction { +impl ::std::convert::From<&PullRequestReviewSubmittedAction> for PullRequestReviewSubmittedAction { fn from(value: &PullRequestReviewSubmittedAction) -> Self { value.clone() } @@ -76146,7 +77024,7 @@ impl ::std::fmt::Display for PullRequestReviewSubmittedAction { } } } -impl std::str::FromStr for PullRequestReviewSubmittedAction { +impl ::std::str::FromStr for PullRequestReviewSubmittedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -76155,13 +77033,13 @@ impl std::str::FromStr for PullRequestReviewSubmittedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestReviewSubmittedAction { +impl ::std::convert::TryFrom<&str> for PullRequestReviewSubmittedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewSubmittedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestReviewSubmittedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -76169,7 +77047,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestReviewSubmitte value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestReviewSubmittedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestReviewSubmittedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -76278,7 +77156,7 @@ pub struct PullRequestReviewSubmittedReview { pub submitted_at: chrono::DateTime, pub user: User, } -impl From<&PullRequestReviewSubmittedReview> for PullRequestReviewSubmittedReview { +impl ::std::convert::From<&PullRequestReviewSubmittedReview> for PullRequestReviewSubmittedReview { fn from(value: &PullRequestReviewSubmittedReview) -> Self { value.clone() } @@ -76312,7 +77190,9 @@ pub struct PullRequestReviewSubmittedReviewLinks { pub html: Link, pub pull_request: Link, } -impl From<&PullRequestReviewSubmittedReviewLinks> for PullRequestReviewSubmittedReviewLinks { +impl ::std::convert::From<&PullRequestReviewSubmittedReviewLinks> + for PullRequestReviewSubmittedReviewLinks +{ fn from(value: &PullRequestReviewSubmittedReviewLinks) -> Self { value.clone() } @@ -76350,7 +77230,7 @@ pub enum PullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&PullRequestState> for PullRequestState { +impl ::std::convert::From<&PullRequestState> for PullRequestState { fn from(value: &PullRequestState) -> Self { value.clone() } @@ -76363,7 +77243,7 @@ impl ::std::fmt::Display for PullRequestState { } } } -impl std::str::FromStr for PullRequestState { +impl ::std::str::FromStr for PullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -76373,13 +77253,13 @@ impl std::str::FromStr for PullRequestState { } } } -impl std::convert::TryFrom<&str> for PullRequestState { +impl ::std::convert::TryFrom<&str> for PullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -76387,7 +77267,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestState { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -76466,7 +77346,7 @@ pub struct PullRequestSynchronize { pub repository: Repository, pub sender: User, } -impl From<&PullRequestSynchronize> for PullRequestSynchronize { +impl ::std::convert::From<&PullRequestSynchronize> for PullRequestSynchronize { fn from(value: &PullRequestSynchronize) -> Self { value.clone() } @@ -76500,7 +77380,7 @@ pub enum PullRequestSynchronizeAction { #[serde(rename = "synchronize")] Synchronize, } -impl From<&PullRequestSynchronizeAction> for PullRequestSynchronizeAction { +impl ::std::convert::From<&PullRequestSynchronizeAction> for PullRequestSynchronizeAction { fn from(value: &PullRequestSynchronizeAction) -> Self { value.clone() } @@ -76512,7 +77392,7 @@ impl ::std::fmt::Display for PullRequestSynchronizeAction { } } } -impl std::str::FromStr for PullRequestSynchronizeAction { +impl ::std::str::FromStr for PullRequestSynchronizeAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -76521,13 +77401,13 @@ impl std::str::FromStr for PullRequestSynchronizeAction { } } } -impl std::convert::TryFrom<&str> for PullRequestSynchronizeAction { +impl ::std::convert::TryFrom<&str> for PullRequestSynchronizeAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestSynchronizeAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestSynchronizeAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -76535,7 +77415,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestSynchronizeAct value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestSynchronizeAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestSynchronizeAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -76609,7 +77489,7 @@ pub struct PullRequestUnassigned { pub repository: Repository, pub sender: User, } -impl From<&PullRequestUnassigned> for PullRequestUnassigned { +impl ::std::convert::From<&PullRequestUnassigned> for PullRequestUnassigned { fn from(value: &PullRequestUnassigned) -> Self { value.clone() } @@ -76643,7 +77523,7 @@ pub enum PullRequestUnassignedAction { #[serde(rename = "unassigned")] Unassigned, } -impl From<&PullRequestUnassignedAction> for PullRequestUnassignedAction { +impl ::std::convert::From<&PullRequestUnassignedAction> for PullRequestUnassignedAction { fn from(value: &PullRequestUnassignedAction) -> Self { value.clone() } @@ -76655,7 +77535,7 @@ impl ::std::fmt::Display for PullRequestUnassignedAction { } } } -impl std::str::FromStr for PullRequestUnassignedAction { +impl ::std::str::FromStr for PullRequestUnassignedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -76664,13 +77544,13 @@ impl std::str::FromStr for PullRequestUnassignedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestUnassignedAction { +impl ::std::convert::TryFrom<&str> for PullRequestUnassignedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestUnassignedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestUnassignedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -76678,7 +77558,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestUnassignedActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestUnassignedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestUnassignedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -76752,7 +77632,7 @@ pub struct PullRequestUnlabeled { pub repository: Repository, pub sender: User, } -impl From<&PullRequestUnlabeled> for PullRequestUnlabeled { +impl ::std::convert::From<&PullRequestUnlabeled> for PullRequestUnlabeled { fn from(value: &PullRequestUnlabeled) -> Self { value.clone() } @@ -76786,7 +77666,7 @@ pub enum PullRequestUnlabeledAction { #[serde(rename = "unlabeled")] Unlabeled, } -impl From<&PullRequestUnlabeledAction> for PullRequestUnlabeledAction { +impl ::std::convert::From<&PullRequestUnlabeledAction> for PullRequestUnlabeledAction { fn from(value: &PullRequestUnlabeledAction) -> Self { value.clone() } @@ -76798,7 +77678,7 @@ impl ::std::fmt::Display for PullRequestUnlabeledAction { } } } -impl std::str::FromStr for PullRequestUnlabeledAction { +impl ::std::str::FromStr for PullRequestUnlabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -76807,13 +77687,13 @@ impl std::str::FromStr for PullRequestUnlabeledAction { } } } -impl std::convert::TryFrom<&str> for PullRequestUnlabeledAction { +impl ::std::convert::TryFrom<&str> for PullRequestUnlabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestUnlabeledAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestUnlabeledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -76821,7 +77701,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestUnlabeledActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestUnlabeledAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestUnlabeledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -76890,7 +77770,7 @@ pub struct PullRequestUnlocked { pub repository: Repository, pub sender: User, } -impl From<&PullRequestUnlocked> for PullRequestUnlocked { +impl ::std::convert::From<&PullRequestUnlocked> for PullRequestUnlocked { fn from(value: &PullRequestUnlocked) -> Self { value.clone() } @@ -76924,7 +77804,7 @@ pub enum PullRequestUnlockedAction { #[serde(rename = "unlocked")] Unlocked, } -impl From<&PullRequestUnlockedAction> for PullRequestUnlockedAction { +impl ::std::convert::From<&PullRequestUnlockedAction> for PullRequestUnlockedAction { fn from(value: &PullRequestUnlockedAction) -> Self { value.clone() } @@ -76936,7 +77816,7 @@ impl ::std::fmt::Display for PullRequestUnlockedAction { } } } -impl std::str::FromStr for PullRequestUnlockedAction { +impl ::std::str::FromStr for PullRequestUnlockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -76945,13 +77825,13 @@ impl std::str::FromStr for PullRequestUnlockedAction { } } } -impl std::convert::TryFrom<&str> for PullRequestUnlockedAction { +impl ::std::convert::TryFrom<&str> for PullRequestUnlockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for PullRequestUnlockedAction { +impl ::std::convert::TryFrom<&::std::string::String> for PullRequestUnlockedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -76959,7 +77839,7 @@ impl std::convert::TryFrom<&::std::string::String> for PullRequestUnlockedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for PullRequestUnlockedAction { +impl ::std::convert::TryFrom<::std::string::String> for PullRequestUnlockedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -77085,7 +77965,7 @@ pub struct PushEvent { pub repository: Repository, pub sender: User, } -impl From<&PushEvent> for PushEvent { +impl ::std::convert::From<&PushEvent> for PushEvent { fn from(value: &PushEvent) -> Self { value.clone() } @@ -77233,7 +78113,7 @@ pub struct Release { pub url: ::std::string::String, pub zipball_url: ::std::option::Option<::std::string::String>, } -impl From<&Release> for Release { +impl ::std::convert::From<&Release> for Release { fn from(value: &Release) -> Self { value.clone() } @@ -77339,7 +78219,7 @@ pub struct ReleaseAsset { pub uploader: ::std::option::Option, pub url: ::std::string::String, } -impl From<&ReleaseAsset> for ReleaseAsset { +impl ::std::convert::From<&ReleaseAsset> for ReleaseAsset { fn from(value: &ReleaseAsset) -> Self { value.clone() } @@ -77374,7 +78254,7 @@ pub enum ReleaseAssetState { #[serde(rename = "uploaded")] Uploaded, } -impl From<&ReleaseAssetState> for ReleaseAssetState { +impl ::std::convert::From<&ReleaseAssetState> for ReleaseAssetState { fn from(value: &ReleaseAssetState) -> Self { value.clone() } @@ -77386,7 +78266,7 @@ impl ::std::fmt::Display for ReleaseAssetState { } } } -impl std::str::FromStr for ReleaseAssetState { +impl ::std::str::FromStr for ReleaseAssetState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -77395,13 +78275,13 @@ impl std::str::FromStr for ReleaseAssetState { } } } -impl std::convert::TryFrom<&str> for ReleaseAssetState { +impl ::std::convert::TryFrom<&str> for ReleaseAssetState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleaseAssetState { +impl ::std::convert::TryFrom<&::std::string::String> for ReleaseAssetState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -77409,7 +78289,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleaseAssetState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleaseAssetState { +impl ::std::convert::TryFrom<::std::string::String> for ReleaseAssetState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -77471,7 +78351,7 @@ pub struct ReleaseCreated { pub repository: Repository, pub sender: User, } -impl From<&ReleaseCreated> for ReleaseCreated { +impl ::std::convert::From<&ReleaseCreated> for ReleaseCreated { fn from(value: &ReleaseCreated) -> Self { value.clone() } @@ -77505,7 +78385,7 @@ pub enum ReleaseCreatedAction { #[serde(rename = "created")] Created, } -impl From<&ReleaseCreatedAction> for ReleaseCreatedAction { +impl ::std::convert::From<&ReleaseCreatedAction> for ReleaseCreatedAction { fn from(value: &ReleaseCreatedAction) -> Self { value.clone() } @@ -77517,7 +78397,7 @@ impl ::std::fmt::Display for ReleaseCreatedAction { } } } -impl std::str::FromStr for ReleaseCreatedAction { +impl ::std::str::FromStr for ReleaseCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -77526,13 +78406,13 @@ impl std::str::FromStr for ReleaseCreatedAction { } } } -impl std::convert::TryFrom<&str> for ReleaseCreatedAction { +impl ::std::convert::TryFrom<&str> for ReleaseCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleaseCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleaseCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -77540,7 +78420,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleaseCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleaseCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleaseCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -77602,7 +78482,7 @@ pub struct ReleaseDeleted { pub repository: Repository, pub sender: User, } -impl From<&ReleaseDeleted> for ReleaseDeleted { +impl ::std::convert::From<&ReleaseDeleted> for ReleaseDeleted { fn from(value: &ReleaseDeleted) -> Self { value.clone() } @@ -77636,7 +78516,7 @@ pub enum ReleaseDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&ReleaseDeletedAction> for ReleaseDeletedAction { +impl ::std::convert::From<&ReleaseDeletedAction> for ReleaseDeletedAction { fn from(value: &ReleaseDeletedAction) -> Self { value.clone() } @@ -77648,7 +78528,7 @@ impl ::std::fmt::Display for ReleaseDeletedAction { } } } -impl std::str::FromStr for ReleaseDeletedAction { +impl ::std::str::FromStr for ReleaseDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -77657,13 +78537,13 @@ impl std::str::FromStr for ReleaseDeletedAction { } } } -impl std::convert::TryFrom<&str> for ReleaseDeletedAction { +impl ::std::convert::TryFrom<&str> for ReleaseDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleaseDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleaseDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -77671,7 +78551,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleaseDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleaseDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleaseDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -77767,7 +78647,7 @@ pub struct ReleaseEdited { pub repository: Repository, pub sender: User, } -impl From<&ReleaseEdited> for ReleaseEdited { +impl ::std::convert::From<&ReleaseEdited> for ReleaseEdited { fn from(value: &ReleaseEdited) -> Self { value.clone() } @@ -77801,7 +78681,7 @@ pub enum ReleaseEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&ReleaseEditedAction> for ReleaseEditedAction { +impl ::std::convert::From<&ReleaseEditedAction> for ReleaseEditedAction { fn from(value: &ReleaseEditedAction) -> Self { value.clone() } @@ -77813,7 +78693,7 @@ impl ::std::fmt::Display for ReleaseEditedAction { } } } -impl std::str::FromStr for ReleaseEditedAction { +impl ::std::str::FromStr for ReleaseEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -77822,13 +78702,13 @@ impl std::str::FromStr for ReleaseEditedAction { } } } -impl std::convert::TryFrom<&str> for ReleaseEditedAction { +impl ::std::convert::TryFrom<&str> for ReleaseEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleaseEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleaseEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -77836,7 +78716,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleaseEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleaseEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleaseEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -77891,11 +78771,19 @@ pub struct ReleaseEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option, } -impl From<&ReleaseEditedChanges> for ReleaseEditedChanges { +impl ::std::convert::From<&ReleaseEditedChanges> for ReleaseEditedChanges { fn from(value: &ReleaseEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for ReleaseEditedChanges { + fn default() -> Self { + Self { + body: Default::default(), + name: Default::default(), + } + } +} #[doc = "ReleaseEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] @@ -77922,7 +78810,7 @@ pub struct ReleaseEditedChangesBody { #[doc = "The previous version of the body if the action was `edited`."] pub from: ::std::string::String, } -impl From<&ReleaseEditedChangesBody> for ReleaseEditedChangesBody { +impl ::std::convert::From<&ReleaseEditedChangesBody> for ReleaseEditedChangesBody { fn from(value: &ReleaseEditedChangesBody) -> Self { value.clone() } @@ -77953,7 +78841,7 @@ pub struct ReleaseEditedChangesName { #[doc = "The previous version of the name if the action was `edited`."] pub from: ::std::string::String, } -impl From<&ReleaseEditedChangesName> for ReleaseEditedChangesName { +impl ::std::convert::From<&ReleaseEditedChangesName> for ReleaseEditedChangesName { fn from(value: &ReleaseEditedChangesName) -> Self { value.clone() } @@ -78001,42 +78889,42 @@ pub enum ReleaseEvent { Released(ReleaseReleased), Unpublished(ReleaseUnpublished), } -impl From<&ReleaseEvent> for ReleaseEvent { +impl ::std::convert::From<&ReleaseEvent> for ReleaseEvent { fn from(value: &ReleaseEvent) -> Self { value.clone() } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleaseCreated) -> Self { Self::Created(value) } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleaseDeleted) -> Self { Self::Deleted(value) } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleaseEdited) -> Self { Self::Edited(value) } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleasePrereleased) -> Self { Self::Prereleased(value) } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleasePublished) -> Self { Self::Published(value) } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleaseReleased) -> Self { Self::Released(value) } } -impl From for ReleaseEvent { +impl ::std::convert::From for ReleaseEvent { fn from(value: ReleaseUnpublished) -> Self { Self::Unpublished(value) } @@ -78115,7 +79003,7 @@ pub struct ReleasePrereleased { pub repository: Repository, pub sender: User, } -impl From<&ReleasePrereleased> for ReleasePrereleased { +impl ::std::convert::From<&ReleasePrereleased> for ReleasePrereleased { fn from(value: &ReleasePrereleased) -> Self { value.clone() } @@ -78149,7 +79037,7 @@ pub enum ReleasePrereleasedAction { #[serde(rename = "prereleased")] Prereleased, } -impl From<&ReleasePrereleasedAction> for ReleasePrereleasedAction { +impl ::std::convert::From<&ReleasePrereleasedAction> for ReleasePrereleasedAction { fn from(value: &ReleasePrereleasedAction) -> Self { value.clone() } @@ -78161,7 +79049,7 @@ impl ::std::fmt::Display for ReleasePrereleasedAction { } } } -impl std::str::FromStr for ReleasePrereleasedAction { +impl ::std::str::FromStr for ReleasePrereleasedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -78170,13 +79058,13 @@ impl std::str::FromStr for ReleasePrereleasedAction { } } } -impl std::convert::TryFrom<&str> for ReleasePrereleasedAction { +impl ::std::convert::TryFrom<&str> for ReleasePrereleasedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleasePrereleasedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleasePrereleasedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -78184,7 +79072,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleasePrereleasedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleasePrereleasedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleasePrereleasedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -78247,7 +79135,7 @@ pub struct ReleasePrereleasedRelease { pub url: ::std::string::String, pub zipball_url: ::std::option::Option<::std::string::String>, } -impl From<&ReleasePrereleasedRelease> for ReleasePrereleasedRelease { +impl ::std::convert::From<&ReleasePrereleasedRelease> for ReleasePrereleasedRelease { fn from(value: &ReleasePrereleasedRelease) -> Self { value.clone() } @@ -78323,7 +79211,7 @@ pub struct ReleasePublished { pub repository: Repository, pub sender: User, } -impl From<&ReleasePublished> for ReleasePublished { +impl ::std::convert::From<&ReleasePublished> for ReleasePublished { fn from(value: &ReleasePublished) -> Self { value.clone() } @@ -78357,7 +79245,7 @@ pub enum ReleasePublishedAction { #[serde(rename = "published")] Published, } -impl From<&ReleasePublishedAction> for ReleasePublishedAction { +impl ::std::convert::From<&ReleasePublishedAction> for ReleasePublishedAction { fn from(value: &ReleasePublishedAction) -> Self { value.clone() } @@ -78369,7 +79257,7 @@ impl ::std::fmt::Display for ReleasePublishedAction { } } } -impl std::str::FromStr for ReleasePublishedAction { +impl ::std::str::FromStr for ReleasePublishedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -78378,13 +79266,13 @@ impl std::str::FromStr for ReleasePublishedAction { } } } -impl std::convert::TryFrom<&str> for ReleasePublishedAction { +impl ::std::convert::TryFrom<&str> for ReleasePublishedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleasePublishedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleasePublishedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -78392,7 +79280,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleasePublishedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleasePublishedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleasePublishedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -78453,7 +79341,7 @@ pub struct ReleasePublishedRelease { pub url: ::std::string::String, pub zipball_url: ::std::option::Option<::std::string::String>, } -impl From<&ReleasePublishedRelease> for ReleasePublishedRelease { +impl ::std::convert::From<&ReleasePublishedRelease> for ReleasePublishedRelease { fn from(value: &ReleasePublishedRelease) -> Self { value.clone() } @@ -78512,7 +79400,7 @@ pub struct ReleaseReleased { pub repository: Repository, pub sender: User, } -impl From<&ReleaseReleased> for ReleaseReleased { +impl ::std::convert::From<&ReleaseReleased> for ReleaseReleased { fn from(value: &ReleaseReleased) -> Self { value.clone() } @@ -78546,7 +79434,7 @@ pub enum ReleaseReleasedAction { #[serde(rename = "released")] Released, } -impl From<&ReleaseReleasedAction> for ReleaseReleasedAction { +impl ::std::convert::From<&ReleaseReleasedAction> for ReleaseReleasedAction { fn from(value: &ReleaseReleasedAction) -> Self { value.clone() } @@ -78558,7 +79446,7 @@ impl ::std::fmt::Display for ReleaseReleasedAction { } } } -impl std::str::FromStr for ReleaseReleasedAction { +impl ::std::str::FromStr for ReleaseReleasedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -78567,13 +79455,13 @@ impl std::str::FromStr for ReleaseReleasedAction { } } } -impl std::convert::TryFrom<&str> for ReleaseReleasedAction { +impl ::std::convert::TryFrom<&str> for ReleaseReleasedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleaseReleasedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleaseReleasedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -78581,7 +79469,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleaseReleasedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleaseReleasedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleaseReleasedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -78659,7 +79547,7 @@ pub struct ReleaseUnpublished { pub repository: Repository, pub sender: User, } -impl From<&ReleaseUnpublished> for ReleaseUnpublished { +impl ::std::convert::From<&ReleaseUnpublished> for ReleaseUnpublished { fn from(value: &ReleaseUnpublished) -> Self { value.clone() } @@ -78693,7 +79581,7 @@ pub enum ReleaseUnpublishedAction { #[serde(rename = "unpublished")] Unpublished, } -impl From<&ReleaseUnpublishedAction> for ReleaseUnpublishedAction { +impl ::std::convert::From<&ReleaseUnpublishedAction> for ReleaseUnpublishedAction { fn from(value: &ReleaseUnpublishedAction) -> Self { value.clone() } @@ -78705,7 +79593,7 @@ impl ::std::fmt::Display for ReleaseUnpublishedAction { } } } -impl std::str::FromStr for ReleaseUnpublishedAction { +impl ::std::str::FromStr for ReleaseUnpublishedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -78714,13 +79602,13 @@ impl std::str::FromStr for ReleaseUnpublishedAction { } } } -impl std::convert::TryFrom<&str> for ReleaseUnpublishedAction { +impl ::std::convert::TryFrom<&str> for ReleaseUnpublishedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ReleaseUnpublishedAction { +impl ::std::convert::TryFrom<&::std::string::String> for ReleaseUnpublishedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -78728,7 +79616,7 @@ impl std::convert::TryFrom<&::std::string::String> for ReleaseUnpublishedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ReleaseUnpublishedAction { +impl ::std::convert::TryFrom<::std::string::String> for ReleaseUnpublishedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -78788,7 +79676,7 @@ pub struct ReleaseUnpublishedRelease { pub url: ::std::string::String, pub zipball_url: ::std::option::Option<::std::string::String>, } -impl From<&ReleaseUnpublishedRelease> for ReleaseUnpublishedRelease { +impl ::std::convert::From<&ReleaseUnpublishedRelease> for ReleaseUnpublishedRelease { fn from(value: &ReleaseUnpublishedRelease) -> Self { value.clone() } @@ -78830,7 +79718,7 @@ pub struct RepoRef { pub name: ::std::string::String, pub url: ::std::string::String, } -impl From<&RepoRef> for RepoRef { +impl ::std::convert::From<&RepoRef> for RepoRef { fn from(value: &RepoRef) -> Self { value.clone() } @@ -79423,7 +80311,7 @@ pub struct Repository { pub watchers: i64, pub watchers_count: i64, } -impl From<&Repository> for Repository { +impl ::std::convert::From<&Repository> for Repository { fn from(value: &Repository) -> Self { value.clone() } @@ -79498,7 +80386,7 @@ pub struct RepositoryArchived { pub repository: RepositoryArchivedRepository, pub sender: User, } -impl From<&RepositoryArchived> for RepositoryArchived { +impl ::std::convert::From<&RepositoryArchived> for RepositoryArchived { fn from(value: &RepositoryArchived) -> Self { value.clone() } @@ -79532,7 +80420,7 @@ pub enum RepositoryArchivedAction { #[serde(rename = "archived")] Archived, } -impl From<&RepositoryArchivedAction> for RepositoryArchivedAction { +impl ::std::convert::From<&RepositoryArchivedAction> for RepositoryArchivedAction { fn from(value: &RepositoryArchivedAction) -> Self { value.clone() } @@ -79544,7 +80432,7 @@ impl ::std::fmt::Display for RepositoryArchivedAction { } } } -impl std::str::FromStr for RepositoryArchivedAction { +impl ::std::str::FromStr for RepositoryArchivedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -79553,13 +80441,13 @@ impl std::str::FromStr for RepositoryArchivedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryArchivedAction { +impl ::std::convert::TryFrom<&str> for RepositoryArchivedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryArchivedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryArchivedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -79567,7 +80455,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryArchivedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryArchivedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryArchivedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -79721,7 +80609,7 @@ pub struct RepositoryArchivedRepository { pub watchers: i64, pub watchers_count: i64, } -impl From<&RepositoryArchivedRepository> for RepositoryArchivedRepository { +impl ::std::convert::From<&RepositoryArchivedRepository> for RepositoryArchivedRepository { fn from(value: &RepositoryArchivedRepository) -> Self { value.clone() } @@ -79750,12 +80638,14 @@ pub enum RepositoryArchivedRepositoryCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&RepositoryArchivedRepositoryCreatedAt> for RepositoryArchivedRepositoryCreatedAt { +impl ::std::convert::From<&RepositoryArchivedRepositoryCreatedAt> + for RepositoryArchivedRepositoryCreatedAt +{ fn from(value: &RepositoryArchivedRepositoryCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for RepositoryArchivedRepositoryCreatedAt { +impl ::std::str::FromStr for RepositoryArchivedRepositoryCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -79767,13 +80657,13 @@ impl std::str::FromStr for RepositoryArchivedRepositoryCreatedAt { } } } -impl std::convert::TryFrom<&str> for RepositoryArchivedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&str> for RepositoryArchivedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryArchivedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryArchivedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -79781,7 +80671,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryArchivedReposit value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryArchivedRepositoryCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryArchivedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -79797,12 +80687,14 @@ impl ::std::fmt::Display for RepositoryArchivedRepositoryCreatedAt { } } } -impl From for RepositoryArchivedRepositoryCreatedAt { +impl ::std::convert::From for RepositoryArchivedRepositoryCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryArchivedRepositoryCreatedAt { +impl ::std::convert::From> + for RepositoryArchivedRepositoryCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -79851,7 +80743,9 @@ pub struct RepositoryArchivedRepositoryPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&RepositoryArchivedRepositoryPermissions> for RepositoryArchivedRepositoryPermissions { +impl ::std::convert::From<&RepositoryArchivedRepositoryPermissions> + for RepositoryArchivedRepositoryPermissions +{ fn from(value: &RepositoryArchivedRepositoryPermissions) -> Self { value.clone() } @@ -79884,17 +80778,21 @@ pub enum RepositoryArchivedRepositoryPushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&RepositoryArchivedRepositoryPushedAt> for RepositoryArchivedRepositoryPushedAt { +impl ::std::convert::From<&RepositoryArchivedRepositoryPushedAt> + for RepositoryArchivedRepositoryPushedAt +{ fn from(value: &RepositoryArchivedRepositoryPushedAt) -> Self { value.clone() } } -impl From for RepositoryArchivedRepositoryPushedAt { +impl ::std::convert::From for RepositoryArchivedRepositoryPushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryArchivedRepositoryPushedAt { +impl ::std::convert::From> + for RepositoryArchivedRepositoryPushedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -79948,7 +80846,7 @@ pub struct RepositoryCreated { pub repository: Repository, pub sender: User, } -impl From<&RepositoryCreated> for RepositoryCreated { +impl ::std::convert::From<&RepositoryCreated> for RepositoryCreated { fn from(value: &RepositoryCreated) -> Self { value.clone() } @@ -79982,7 +80880,7 @@ pub enum RepositoryCreatedAction { #[serde(rename = "created")] Created, } -impl From<&RepositoryCreatedAction> for RepositoryCreatedAction { +impl ::std::convert::From<&RepositoryCreatedAction> for RepositoryCreatedAction { fn from(value: &RepositoryCreatedAction) -> Self { value.clone() } @@ -79994,7 +80892,7 @@ impl ::std::fmt::Display for RepositoryCreatedAction { } } } -impl std::str::FromStr for RepositoryCreatedAction { +impl ::std::str::FromStr for RepositoryCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -80003,13 +80901,13 @@ impl std::str::FromStr for RepositoryCreatedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryCreatedAction { +impl ::std::convert::TryFrom<&str> for RepositoryCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -80017,7 +80915,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -80049,12 +80947,12 @@ pub enum RepositoryCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&RepositoryCreatedAt> for RepositoryCreatedAt { +impl ::std::convert::From<&RepositoryCreatedAt> for RepositoryCreatedAt { fn from(value: &RepositoryCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for RepositoryCreatedAt { +impl ::std::str::FromStr for RepositoryCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -80066,13 +80964,13 @@ impl std::str::FromStr for RepositoryCreatedAt { } } } -impl std::convert::TryFrom<&str> for RepositoryCreatedAt { +impl ::std::convert::TryFrom<&str> for RepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -80080,7 +80978,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryCreatedAt { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -80096,12 +80994,12 @@ impl ::std::fmt::Display for RepositoryCreatedAt { } } } -impl From for RepositoryCreatedAt { +impl ::std::convert::From for RepositoryCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryCreatedAt { +impl ::std::convert::From> for RepositoryCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -80155,7 +81053,7 @@ pub struct RepositoryDeleted { pub repository: Repository, pub sender: User, } -impl From<&RepositoryDeleted> for RepositoryDeleted { +impl ::std::convert::From<&RepositoryDeleted> for RepositoryDeleted { fn from(value: &RepositoryDeleted) -> Self { value.clone() } @@ -80189,7 +81087,7 @@ pub enum RepositoryDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&RepositoryDeletedAction> for RepositoryDeletedAction { +impl ::std::convert::From<&RepositoryDeletedAction> for RepositoryDeletedAction { fn from(value: &RepositoryDeletedAction) -> Self { value.clone() } @@ -80201,7 +81099,7 @@ impl ::std::fmt::Display for RepositoryDeletedAction { } } } -impl std::str::FromStr for RepositoryDeletedAction { +impl ::std::str::FromStr for RepositoryDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -80210,13 +81108,13 @@ impl std::str::FromStr for RepositoryDeletedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryDeletedAction { +impl ::std::convert::TryFrom<&str> for RepositoryDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -80224,7 +81122,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -80254,17 +81152,17 @@ impl ::std::ops::Deref for RepositoryDispatchEvent { &self.0 } } -impl From for RepositoryDispatchOnDemandTest { +impl ::std::convert::From for RepositoryDispatchOnDemandTest { fn from(value: RepositoryDispatchEvent) -> Self { value.0 } } -impl From<&RepositoryDispatchEvent> for RepositoryDispatchEvent { +impl ::std::convert::From<&RepositoryDispatchEvent> for RepositoryDispatchEvent { fn from(value: &RepositoryDispatchEvent) -> Self { value.clone() } } -impl From for RepositoryDispatchEvent { +impl ::std::convert::From for RepositoryDispatchEvent { fn from(value: RepositoryDispatchOnDemandTest) -> Self { Self(value) } @@ -80329,7 +81227,7 @@ pub struct RepositoryDispatchOnDemandTest { pub repository: Repository, pub sender: User, } -impl From<&RepositoryDispatchOnDemandTest> for RepositoryDispatchOnDemandTest { +impl ::std::convert::From<&RepositoryDispatchOnDemandTest> for RepositoryDispatchOnDemandTest { fn from(value: &RepositoryDispatchOnDemandTest) -> Self { value.clone() } @@ -80363,7 +81261,9 @@ pub enum RepositoryDispatchOnDemandTestAction { #[serde(rename = "on-demand-test")] OnDemandTest, } -impl From<&RepositoryDispatchOnDemandTestAction> for RepositoryDispatchOnDemandTestAction { +impl ::std::convert::From<&RepositoryDispatchOnDemandTestAction> + for RepositoryDispatchOnDemandTestAction +{ fn from(value: &RepositoryDispatchOnDemandTestAction) -> Self { value.clone() } @@ -80375,7 +81275,7 @@ impl ::std::fmt::Display for RepositoryDispatchOnDemandTestAction { } } } -impl std::str::FromStr for RepositoryDispatchOnDemandTestAction { +impl ::std::str::FromStr for RepositoryDispatchOnDemandTestAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -80384,13 +81284,13 @@ impl std::str::FromStr for RepositoryDispatchOnDemandTestAction { } } } -impl std::convert::TryFrom<&str> for RepositoryDispatchOnDemandTestAction { +impl ::std::convert::TryFrom<&str> for RepositoryDispatchOnDemandTestAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryDispatchOnDemandTestAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryDispatchOnDemandTestAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -80398,7 +81298,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryDispatchOnDeman value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryDispatchOnDemandTestAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryDispatchOnDemandTestAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -80505,7 +81405,7 @@ pub struct RepositoryEdited { pub repository: Repository, pub sender: User, } -impl From<&RepositoryEdited> for RepositoryEdited { +impl ::std::convert::From<&RepositoryEdited> for RepositoryEdited { fn from(value: &RepositoryEdited) -> Self { value.clone() } @@ -80539,7 +81439,7 @@ pub enum RepositoryEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&RepositoryEditedAction> for RepositoryEditedAction { +impl ::std::convert::From<&RepositoryEditedAction> for RepositoryEditedAction { fn from(value: &RepositoryEditedAction) -> Self { value.clone() } @@ -80551,7 +81451,7 @@ impl ::std::fmt::Display for RepositoryEditedAction { } } } -impl std::str::FromStr for RepositoryEditedAction { +impl ::std::str::FromStr for RepositoryEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -80560,13 +81460,13 @@ impl std::str::FromStr for RepositoryEditedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryEditedAction { +impl ::std::convert::TryFrom<&str> for RepositoryEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -80574,7 +81474,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -80647,11 +81547,20 @@ pub struct RepositoryEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub homepage: ::std::option::Option, } -impl From<&RepositoryEditedChanges> for RepositoryEditedChanges { +impl ::std::convert::From<&RepositoryEditedChanges> for RepositoryEditedChanges { fn from(value: &RepositoryEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for RepositoryEditedChanges { + fn default() -> Self { + Self { + default_branch: Default::default(), + description: Default::default(), + homepage: Default::default(), + } + } +} #[doc = "RepositoryEditedChangesDefaultBranch"] #[doc = r""] #[doc = r"
JSON schema"] @@ -80676,7 +81585,9 @@ impl From<&RepositoryEditedChanges> for RepositoryEditedChanges { pub struct RepositoryEditedChangesDefaultBranch { pub from: ::std::string::String, } -impl From<&RepositoryEditedChangesDefaultBranch> for RepositoryEditedChangesDefaultBranch { +impl ::std::convert::From<&RepositoryEditedChangesDefaultBranch> + for RepositoryEditedChangesDefaultBranch +{ fn from(value: &RepositoryEditedChangesDefaultBranch) -> Self { value.clone() } @@ -80708,7 +81619,9 @@ impl From<&RepositoryEditedChangesDefaultBranch> for RepositoryEditedChangesDefa pub struct RepositoryEditedChangesDescription { pub from: ::std::option::Option<::std::string::String>, } -impl From<&RepositoryEditedChangesDescription> for RepositoryEditedChangesDescription { +impl ::std::convert::From<&RepositoryEditedChangesDescription> + for RepositoryEditedChangesDescription +{ fn from(value: &RepositoryEditedChangesDescription) -> Self { value.clone() } @@ -80740,7 +81653,7 @@ impl From<&RepositoryEditedChangesDescription> for RepositoryEditedChangesDescri pub struct RepositoryEditedChangesHomepage { pub from: ::std::option::Option<::std::string::String>, } -impl From<&RepositoryEditedChangesHomepage> for RepositoryEditedChangesHomepage { +impl ::std::convert::From<&RepositoryEditedChangesHomepage> for RepositoryEditedChangesHomepage { fn from(value: &RepositoryEditedChangesHomepage) -> Self { value.clone() } @@ -80796,52 +81709,52 @@ pub enum RepositoryEvent { Transferred(RepositoryTransferred), Unarchived(RepositoryUnarchived), } -impl From<&RepositoryEvent> for RepositoryEvent { +impl ::std::convert::From<&RepositoryEvent> for RepositoryEvent { fn from(value: &RepositoryEvent) -> Self { value.clone() } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryArchived) -> Self { Self::Archived(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryCreated) -> Self { Self::Created(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryDeleted) -> Self { Self::Deleted(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryEdited) -> Self { Self::Edited(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryPrivatized) -> Self { Self::Privatized(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryPublicized) -> Self { Self::Publicized(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryRenamed) -> Self { Self::Renamed(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryTransferred) -> Self { Self::Transferred(value) } } -impl From for RepositoryEvent { +impl ::std::convert::From for RepositoryEvent { fn from(value: RepositoryUnarchived) -> Self { Self::Unarchived(value) } @@ -80897,7 +81810,7 @@ pub struct RepositoryImportEvent { pub sender: User, pub status: RepositoryImportEventStatus, } -impl From<&RepositoryImportEvent> for RepositoryImportEvent { +impl ::std::convert::From<&RepositoryImportEvent> for RepositoryImportEvent { fn from(value: &RepositoryImportEvent) -> Self { value.clone() } @@ -80937,7 +81850,7 @@ pub enum RepositoryImportEventStatus { #[serde(rename = "failure")] Failure, } -impl From<&RepositoryImportEventStatus> for RepositoryImportEventStatus { +impl ::std::convert::From<&RepositoryImportEventStatus> for RepositoryImportEventStatus { fn from(value: &RepositoryImportEventStatus) -> Self { value.clone() } @@ -80951,7 +81864,7 @@ impl ::std::fmt::Display for RepositoryImportEventStatus { } } } -impl std::str::FromStr for RepositoryImportEventStatus { +impl ::std::str::FromStr for RepositoryImportEventStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -80962,13 +81875,13 @@ impl std::str::FromStr for RepositoryImportEventStatus { } } } -impl std::convert::TryFrom<&str> for RepositoryImportEventStatus { +impl ::std::convert::TryFrom<&str> for RepositoryImportEventStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryImportEventStatus { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryImportEventStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -80976,7 +81889,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryImportEventStat value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryImportEventStatus { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryImportEventStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -81282,7 +82195,7 @@ pub struct RepositoryLite { pub trees_url: ::std::string::String, pub url: ::std::string::String, } -impl From<&RepositoryLite> for RepositoryLite { +impl ::std::convert::From<&RepositoryLite> for RepositoryLite { fn from(value: &RepositoryLite) -> Self { value.clone() } @@ -81331,7 +82244,7 @@ pub struct RepositoryPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&RepositoryPermissions> for RepositoryPermissions { +impl ::std::convert::From<&RepositoryPermissions> for RepositoryPermissions { fn from(value: &RepositoryPermissions) -> Self { value.clone() } @@ -81405,7 +82318,7 @@ pub struct RepositoryPrivatized { pub repository: RepositoryPrivatizedRepository, pub sender: User, } -impl From<&RepositoryPrivatized> for RepositoryPrivatized { +impl ::std::convert::From<&RepositoryPrivatized> for RepositoryPrivatized { fn from(value: &RepositoryPrivatized) -> Self { value.clone() } @@ -81439,7 +82352,7 @@ pub enum RepositoryPrivatizedAction { #[serde(rename = "privatized")] Privatized, } -impl From<&RepositoryPrivatizedAction> for RepositoryPrivatizedAction { +impl ::std::convert::From<&RepositoryPrivatizedAction> for RepositoryPrivatizedAction { fn from(value: &RepositoryPrivatizedAction) -> Self { value.clone() } @@ -81451,7 +82364,7 @@ impl ::std::fmt::Display for RepositoryPrivatizedAction { } } } -impl std::str::FromStr for RepositoryPrivatizedAction { +impl ::std::str::FromStr for RepositoryPrivatizedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -81460,13 +82373,13 @@ impl std::str::FromStr for RepositoryPrivatizedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryPrivatizedAction { +impl ::std::convert::TryFrom<&str> for RepositoryPrivatizedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryPrivatizedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryPrivatizedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -81474,7 +82387,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryPrivatizedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryPrivatizedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryPrivatizedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -81627,7 +82540,7 @@ pub struct RepositoryPrivatizedRepository { pub watchers: i64, pub watchers_count: i64, } -impl From<&RepositoryPrivatizedRepository> for RepositoryPrivatizedRepository { +impl ::std::convert::From<&RepositoryPrivatizedRepository> for RepositoryPrivatizedRepository { fn from(value: &RepositoryPrivatizedRepository) -> Self { value.clone() } @@ -81656,12 +82569,14 @@ pub enum RepositoryPrivatizedRepositoryCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&RepositoryPrivatizedRepositoryCreatedAt> for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::convert::From<&RepositoryPrivatizedRepositoryCreatedAt> + for RepositoryPrivatizedRepositoryCreatedAt +{ fn from(value: &RepositoryPrivatizedRepositoryCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::str::FromStr for RepositoryPrivatizedRepositoryCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -81673,13 +82588,13 @@ impl std::str::FromStr for RepositoryPrivatizedRepositoryCreatedAt { } } } -impl std::convert::TryFrom<&str> for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&str> for RepositoryPrivatizedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryPrivatizedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -81687,7 +82602,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryPrivatizedRepos value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryPrivatizedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -81703,12 +82618,14 @@ impl ::std::fmt::Display for RepositoryPrivatizedRepositoryCreatedAt { } } } -impl From for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::convert::From for RepositoryPrivatizedRepositoryCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryPrivatizedRepositoryCreatedAt { +impl ::std::convert::From> + for RepositoryPrivatizedRepositoryCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -81757,7 +82674,7 @@ pub struct RepositoryPrivatizedRepositoryPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&RepositoryPrivatizedRepositoryPermissions> +impl ::std::convert::From<&RepositoryPrivatizedRepositoryPermissions> for RepositoryPrivatizedRepositoryPermissions { fn from(value: &RepositoryPrivatizedRepositoryPermissions) -> Self { @@ -81792,17 +82709,21 @@ pub enum RepositoryPrivatizedRepositoryPushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&RepositoryPrivatizedRepositoryPushedAt> for RepositoryPrivatizedRepositoryPushedAt { +impl ::std::convert::From<&RepositoryPrivatizedRepositoryPushedAt> + for RepositoryPrivatizedRepositoryPushedAt +{ fn from(value: &RepositoryPrivatizedRepositoryPushedAt) -> Self { value.clone() } } -impl From for RepositoryPrivatizedRepositoryPushedAt { +impl ::std::convert::From for RepositoryPrivatizedRepositoryPushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryPrivatizedRepositoryPushedAt { +impl ::std::convert::From> + for RepositoryPrivatizedRepositoryPushedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -81876,7 +82797,7 @@ pub struct RepositoryPublicized { pub repository: RepositoryPublicizedRepository, pub sender: User, } -impl From<&RepositoryPublicized> for RepositoryPublicized { +impl ::std::convert::From<&RepositoryPublicized> for RepositoryPublicized { fn from(value: &RepositoryPublicized) -> Self { value.clone() } @@ -81910,7 +82831,7 @@ pub enum RepositoryPublicizedAction { #[serde(rename = "publicized")] Publicized, } -impl From<&RepositoryPublicizedAction> for RepositoryPublicizedAction { +impl ::std::convert::From<&RepositoryPublicizedAction> for RepositoryPublicizedAction { fn from(value: &RepositoryPublicizedAction) -> Self { value.clone() } @@ -81922,7 +82843,7 @@ impl ::std::fmt::Display for RepositoryPublicizedAction { } } } -impl std::str::FromStr for RepositoryPublicizedAction { +impl ::std::str::FromStr for RepositoryPublicizedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -81931,13 +82852,13 @@ impl std::str::FromStr for RepositoryPublicizedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryPublicizedAction { +impl ::std::convert::TryFrom<&str> for RepositoryPublicizedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryPublicizedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryPublicizedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -81945,7 +82866,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryPublicizedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryPublicizedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryPublicizedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -82098,7 +83019,7 @@ pub struct RepositoryPublicizedRepository { pub watchers: i64, pub watchers_count: i64, } -impl From<&RepositoryPublicizedRepository> for RepositoryPublicizedRepository { +impl ::std::convert::From<&RepositoryPublicizedRepository> for RepositoryPublicizedRepository { fn from(value: &RepositoryPublicizedRepository) -> Self { value.clone() } @@ -82127,12 +83048,14 @@ pub enum RepositoryPublicizedRepositoryCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&RepositoryPublicizedRepositoryCreatedAt> for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::convert::From<&RepositoryPublicizedRepositoryCreatedAt> + for RepositoryPublicizedRepositoryCreatedAt +{ fn from(value: &RepositoryPublicizedRepositoryCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::str::FromStr for RepositoryPublicizedRepositoryCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -82144,13 +83067,13 @@ impl std::str::FromStr for RepositoryPublicizedRepositoryCreatedAt { } } } -impl std::convert::TryFrom<&str> for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&str> for RepositoryPublicizedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryPublicizedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -82158,7 +83081,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryPublicizedRepos value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryPublicizedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -82174,12 +83097,14 @@ impl ::std::fmt::Display for RepositoryPublicizedRepositoryCreatedAt { } } } -impl From for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::convert::From for RepositoryPublicizedRepositoryCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryPublicizedRepositoryCreatedAt { +impl ::std::convert::From> + for RepositoryPublicizedRepositoryCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -82228,7 +83153,7 @@ pub struct RepositoryPublicizedRepositoryPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&RepositoryPublicizedRepositoryPermissions> +impl ::std::convert::From<&RepositoryPublicizedRepositoryPermissions> for RepositoryPublicizedRepositoryPermissions { fn from(value: &RepositoryPublicizedRepositoryPermissions) -> Self { @@ -82263,17 +83188,21 @@ pub enum RepositoryPublicizedRepositoryPushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&RepositoryPublicizedRepositoryPushedAt> for RepositoryPublicizedRepositoryPushedAt { +impl ::std::convert::From<&RepositoryPublicizedRepositoryPushedAt> + for RepositoryPublicizedRepositoryPushedAt +{ fn from(value: &RepositoryPublicizedRepositoryPushedAt) -> Self { value.clone() } } -impl From for RepositoryPublicizedRepositoryPushedAt { +impl ::std::convert::From for RepositoryPublicizedRepositoryPushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryPublicizedRepositoryPushedAt { +impl ::std::convert::From> + for RepositoryPublicizedRepositoryPushedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -82306,17 +83235,17 @@ pub enum RepositoryPushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&RepositoryPushedAt> for RepositoryPushedAt { +impl ::std::convert::From<&RepositoryPushedAt> for RepositoryPushedAt { fn from(value: &RepositoryPushedAt) -> Self { value.clone() } } -impl From for RepositoryPushedAt { +impl ::std::convert::From for RepositoryPushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryPushedAt { +impl ::std::convert::From> for RepositoryPushedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -82402,7 +83331,7 @@ pub struct RepositoryRenamed { pub repository: Repository, pub sender: User, } -impl From<&RepositoryRenamed> for RepositoryRenamed { +impl ::std::convert::From<&RepositoryRenamed> for RepositoryRenamed { fn from(value: &RepositoryRenamed) -> Self { value.clone() } @@ -82436,7 +83365,7 @@ pub enum RepositoryRenamedAction { #[serde(rename = "renamed")] Renamed, } -impl From<&RepositoryRenamedAction> for RepositoryRenamedAction { +impl ::std::convert::From<&RepositoryRenamedAction> for RepositoryRenamedAction { fn from(value: &RepositoryRenamedAction) -> Self { value.clone() } @@ -82448,7 +83377,7 @@ impl ::std::fmt::Display for RepositoryRenamedAction { } } } -impl std::str::FromStr for RepositoryRenamedAction { +impl ::std::str::FromStr for RepositoryRenamedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -82457,13 +83386,13 @@ impl std::str::FromStr for RepositoryRenamedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryRenamedAction { +impl ::std::convert::TryFrom<&str> for RepositoryRenamedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryRenamedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryRenamedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -82471,7 +83400,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryRenamedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryRenamedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryRenamedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -82521,7 +83450,7 @@ impl std::convert::TryFrom<::std::string::String> for RepositoryRenamedAction { pub struct RepositoryRenamedChanges { pub repository: RepositoryRenamedChangesRepository, } -impl From<&RepositoryRenamedChanges> for RepositoryRenamedChanges { +impl ::std::convert::From<&RepositoryRenamedChanges> for RepositoryRenamedChanges { fn from(value: &RepositoryRenamedChanges) -> Self { value.clone() } @@ -82559,7 +83488,9 @@ impl From<&RepositoryRenamedChanges> for RepositoryRenamedChanges { pub struct RepositoryRenamedChangesRepository { pub name: RepositoryRenamedChangesRepositoryName, } -impl From<&RepositoryRenamedChangesRepository> for RepositoryRenamedChangesRepository { +impl ::std::convert::From<&RepositoryRenamedChangesRepository> + for RepositoryRenamedChangesRepository +{ fn from(value: &RepositoryRenamedChangesRepository) -> Self { value.clone() } @@ -82588,7 +83519,9 @@ impl From<&RepositoryRenamedChangesRepository> for RepositoryRenamedChangesRepos pub struct RepositoryRenamedChangesRepositoryName { pub from: ::std::string::String, } -impl From<&RepositoryRenamedChangesRepositoryName> for RepositoryRenamedChangesRepositoryName { +impl ::std::convert::From<&RepositoryRenamedChangesRepositoryName> + for RepositoryRenamedChangesRepositoryName +{ fn from(value: &RepositoryRenamedChangesRepositoryName) -> Self { value.clone() } @@ -82671,7 +83604,7 @@ pub struct RepositoryTransferred { pub repository: Repository, pub sender: User, } -impl From<&RepositoryTransferred> for RepositoryTransferred { +impl ::std::convert::From<&RepositoryTransferred> for RepositoryTransferred { fn from(value: &RepositoryTransferred) -> Self { value.clone() } @@ -82705,7 +83638,7 @@ pub enum RepositoryTransferredAction { #[serde(rename = "transferred")] Transferred, } -impl From<&RepositoryTransferredAction> for RepositoryTransferredAction { +impl ::std::convert::From<&RepositoryTransferredAction> for RepositoryTransferredAction { fn from(value: &RepositoryTransferredAction) -> Self { value.clone() } @@ -82717,7 +83650,7 @@ impl ::std::fmt::Display for RepositoryTransferredAction { } } } -impl std::str::FromStr for RepositoryTransferredAction { +impl ::std::str::FromStr for RepositoryTransferredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -82726,13 +83659,13 @@ impl std::str::FromStr for RepositoryTransferredAction { } } } -impl std::convert::TryFrom<&str> for RepositoryTransferredAction { +impl ::std::convert::TryFrom<&str> for RepositoryTransferredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryTransferredAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryTransferredAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -82740,7 +83673,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryTransferredActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryTransferredAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryTransferredAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -82787,7 +83720,7 @@ impl std::convert::TryFrom<::std::string::String> for RepositoryTransferredActio pub struct RepositoryTransferredChanges { pub owner: RepositoryTransferredChangesOwner, } -impl From<&RepositoryTransferredChanges> for RepositoryTransferredChanges { +impl ::std::convert::From<&RepositoryTransferredChanges> for RepositoryTransferredChanges { fn from(value: &RepositoryTransferredChanges) -> Self { value.clone() } @@ -82822,7 +83755,9 @@ impl From<&RepositoryTransferredChanges> for RepositoryTransferredChanges { pub struct RepositoryTransferredChangesOwner { pub from: RepositoryTransferredChangesOwnerFrom, } -impl From<&RepositoryTransferredChangesOwner> for RepositoryTransferredChangesOwner { +impl ::std::convert::From<&RepositoryTransferredChangesOwner> + for RepositoryTransferredChangesOwner +{ fn from(value: &RepositoryTransferredChangesOwner) -> Self { value.clone() } @@ -82849,11 +83784,20 @@ pub struct RepositoryTransferredChangesOwnerFrom { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub user: ::std::option::Option, } -impl From<&RepositoryTransferredChangesOwnerFrom> for RepositoryTransferredChangesOwnerFrom { +impl ::std::convert::From<&RepositoryTransferredChangesOwnerFrom> + for RepositoryTransferredChangesOwnerFrom +{ fn from(value: &RepositoryTransferredChangesOwnerFrom) -> Self { value.clone() } } +impl ::std::default::Default for RepositoryTransferredChangesOwnerFrom { + fn default() -> Self { + Self { + user: Default::default(), + } + } +} #[doc = "RepositoryUnarchived"] #[doc = r""] #[doc = r"
JSON schema"] @@ -82924,7 +83868,7 @@ pub struct RepositoryUnarchived { pub repository: RepositoryUnarchivedRepository, pub sender: User, } -impl From<&RepositoryUnarchived> for RepositoryUnarchived { +impl ::std::convert::From<&RepositoryUnarchived> for RepositoryUnarchived { fn from(value: &RepositoryUnarchived) -> Self { value.clone() } @@ -82958,7 +83902,7 @@ pub enum RepositoryUnarchivedAction { #[serde(rename = "unarchived")] Unarchived, } -impl From<&RepositoryUnarchivedAction> for RepositoryUnarchivedAction { +impl ::std::convert::From<&RepositoryUnarchivedAction> for RepositoryUnarchivedAction { fn from(value: &RepositoryUnarchivedAction) -> Self { value.clone() } @@ -82970,7 +83914,7 @@ impl ::std::fmt::Display for RepositoryUnarchivedAction { } } } -impl std::str::FromStr for RepositoryUnarchivedAction { +impl ::std::str::FromStr for RepositoryUnarchivedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -82979,13 +83923,13 @@ impl std::str::FromStr for RepositoryUnarchivedAction { } } } -impl std::convert::TryFrom<&str> for RepositoryUnarchivedAction { +impl ::std::convert::TryFrom<&str> for RepositoryUnarchivedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryUnarchivedAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryUnarchivedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -82993,7 +83937,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryUnarchivedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryUnarchivedAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryUnarchivedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -83147,7 +84091,7 @@ pub struct RepositoryUnarchivedRepository { pub watchers: i64, pub watchers_count: i64, } -impl From<&RepositoryUnarchivedRepository> for RepositoryUnarchivedRepository { +impl ::std::convert::From<&RepositoryUnarchivedRepository> for RepositoryUnarchivedRepository { fn from(value: &RepositoryUnarchivedRepository) -> Self { value.clone() } @@ -83176,12 +84120,14 @@ pub enum RepositoryUnarchivedRepositoryCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } -impl From<&RepositoryUnarchivedRepositoryCreatedAt> for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::convert::From<&RepositoryUnarchivedRepositoryCreatedAt> + for RepositoryUnarchivedRepositoryCreatedAt +{ fn from(value: &RepositoryUnarchivedRepositoryCreatedAt) -> Self { value.clone() } } -impl std::str::FromStr for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::str::FromStr for RepositoryUnarchivedRepositoryCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -83193,13 +84139,13 @@ impl std::str::FromStr for RepositoryUnarchivedRepositoryCreatedAt { } } } -impl std::convert::TryFrom<&str> for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&str> for RepositoryUnarchivedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryUnarchivedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -83207,7 +84153,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryUnarchivedRepos value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryUnarchivedRepositoryCreatedAt { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -83223,12 +84169,14 @@ impl ::std::fmt::Display for RepositoryUnarchivedRepositoryCreatedAt { } } } -impl From for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::convert::From for RepositoryUnarchivedRepositoryCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryUnarchivedRepositoryCreatedAt { +impl ::std::convert::From> + for RepositoryUnarchivedRepositoryCreatedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -83277,7 +84225,7 @@ pub struct RepositoryUnarchivedRepositoryPermissions { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } -impl From<&RepositoryUnarchivedRepositoryPermissions> +impl ::std::convert::From<&RepositoryUnarchivedRepositoryPermissions> for RepositoryUnarchivedRepositoryPermissions { fn from(value: &RepositoryUnarchivedRepositoryPermissions) -> Self { @@ -83312,17 +84260,21 @@ pub enum RepositoryUnarchivedRepositoryPushedAt { Variant1(chrono::DateTime), Variant2, } -impl From<&RepositoryUnarchivedRepositoryPushedAt> for RepositoryUnarchivedRepositoryPushedAt { +impl ::std::convert::From<&RepositoryUnarchivedRepositoryPushedAt> + for RepositoryUnarchivedRepositoryPushedAt +{ fn from(value: &RepositoryUnarchivedRepositoryPushedAt) -> Self { value.clone() } } -impl From for RepositoryUnarchivedRepositoryPushedAt { +impl ::std::convert::From for RepositoryUnarchivedRepositoryPushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } -impl From> for RepositoryUnarchivedRepositoryPushedAt { +impl ::std::convert::From> + for RepositoryUnarchivedRepositoryPushedAt +{ fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } @@ -83425,7 +84377,9 @@ pub struct RepositoryVulnerabilityAlertCreate { pub repository: Repository, pub sender: User, } -impl From<&RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertCreate { +impl ::std::convert::From<&RepositoryVulnerabilityAlertCreate> + for RepositoryVulnerabilityAlertCreate +{ fn from(value: &RepositoryVulnerabilityAlertCreate) -> Self { value.clone() } @@ -83459,7 +84413,9 @@ pub enum RepositoryVulnerabilityAlertCreateAction { #[serde(rename = "create")] Create, } -impl From<&RepositoryVulnerabilityAlertCreateAction> for RepositoryVulnerabilityAlertCreateAction { +impl ::std::convert::From<&RepositoryVulnerabilityAlertCreateAction> + for RepositoryVulnerabilityAlertCreateAction +{ fn from(value: &RepositoryVulnerabilityAlertCreateAction) -> Self { value.clone() } @@ -83471,7 +84427,7 @@ impl ::std::fmt::Display for RepositoryVulnerabilityAlertCreateAction { } } } -impl std::str::FromStr for RepositoryVulnerabilityAlertCreateAction { +impl ::std::str::FromStr for RepositoryVulnerabilityAlertCreateAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -83480,13 +84436,13 @@ impl std::str::FromStr for RepositoryVulnerabilityAlertCreateAction { } } } -impl std::convert::TryFrom<&str> for RepositoryVulnerabilityAlertCreateAction { +impl ::std::convert::TryFrom<&str> for RepositoryVulnerabilityAlertCreateAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAlertCreateAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAlertCreateAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -83494,7 +84450,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAl value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryVulnerabilityAlertCreateAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryVulnerabilityAlertCreateAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -83583,7 +84539,9 @@ pub struct RepositoryVulnerabilityAlertCreateAlert { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub severity: ::std::option::Option<::std::string::String>, } -impl From<&RepositoryVulnerabilityAlertCreateAlert> for RepositoryVulnerabilityAlertCreateAlert { +impl ::std::convert::From<&RepositoryVulnerabilityAlertCreateAlert> + for RepositoryVulnerabilityAlertCreateAlert +{ fn from(value: &RepositoryVulnerabilityAlertCreateAlert) -> Self { value.clone() } @@ -83689,7 +84647,9 @@ pub struct RepositoryVulnerabilityAlertDismiss { pub repository: Repository, pub sender: User, } -impl From<&RepositoryVulnerabilityAlertDismiss> for RepositoryVulnerabilityAlertDismiss { +impl ::std::convert::From<&RepositoryVulnerabilityAlertDismiss> + for RepositoryVulnerabilityAlertDismiss +{ fn from(value: &RepositoryVulnerabilityAlertDismiss) -> Self { value.clone() } @@ -83723,7 +84683,7 @@ pub enum RepositoryVulnerabilityAlertDismissAction { #[serde(rename = "dismiss")] Dismiss, } -impl From<&RepositoryVulnerabilityAlertDismissAction> +impl ::std::convert::From<&RepositoryVulnerabilityAlertDismissAction> for RepositoryVulnerabilityAlertDismissAction { fn from(value: &RepositoryVulnerabilityAlertDismissAction) -> Self { @@ -83737,7 +84697,7 @@ impl ::std::fmt::Display for RepositoryVulnerabilityAlertDismissAction { } } } -impl std::str::FromStr for RepositoryVulnerabilityAlertDismissAction { +impl ::std::str::FromStr for RepositoryVulnerabilityAlertDismissAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -83746,13 +84706,13 @@ impl std::str::FromStr for RepositoryVulnerabilityAlertDismissAction { } } } -impl std::convert::TryFrom<&str> for RepositoryVulnerabilityAlertDismissAction { +impl ::std::convert::TryFrom<&str> for RepositoryVulnerabilityAlertDismissAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAlertDismissAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAlertDismissAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -83760,7 +84720,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAl value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryVulnerabilityAlertDismissAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryVulnerabilityAlertDismissAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -83849,7 +84809,9 @@ pub struct RepositoryVulnerabilityAlertDismissAlert { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub severity: ::std::option::Option<::std::string::String>, } -impl From<&RepositoryVulnerabilityAlertDismissAlert> for RepositoryVulnerabilityAlertDismissAlert { +impl ::std::convert::From<&RepositoryVulnerabilityAlertDismissAlert> + for RepositoryVulnerabilityAlertDismissAlert +{ fn from(value: &RepositoryVulnerabilityAlertDismissAlert) -> Self { value.clone() } @@ -83881,22 +84843,30 @@ pub enum RepositoryVulnerabilityAlertEvent { Dismiss(RepositoryVulnerabilityAlertDismiss), Resolve(RepositoryVulnerabilityAlertResolve), } -impl From<&RepositoryVulnerabilityAlertEvent> for RepositoryVulnerabilityAlertEvent { +impl ::std::convert::From<&RepositoryVulnerabilityAlertEvent> + for RepositoryVulnerabilityAlertEvent +{ fn from(value: &RepositoryVulnerabilityAlertEvent) -> Self { value.clone() } } -impl From for RepositoryVulnerabilityAlertEvent { +impl ::std::convert::From + for RepositoryVulnerabilityAlertEvent +{ fn from(value: RepositoryVulnerabilityAlertCreate) -> Self { Self::Create(value) } } -impl From for RepositoryVulnerabilityAlertEvent { +impl ::std::convert::From + for RepositoryVulnerabilityAlertEvent +{ fn from(value: RepositoryVulnerabilityAlertDismiss) -> Self { Self::Dismiss(value) } } -impl From for RepositoryVulnerabilityAlertEvent { +impl ::std::convert::From + for RepositoryVulnerabilityAlertEvent +{ fn from(value: RepositoryVulnerabilityAlertResolve) -> Self { Self::Resolve(value) } @@ -83999,7 +84969,9 @@ pub struct RepositoryVulnerabilityAlertResolve { pub repository: Repository, pub sender: User, } -impl From<&RepositoryVulnerabilityAlertResolve> for RepositoryVulnerabilityAlertResolve { +impl ::std::convert::From<&RepositoryVulnerabilityAlertResolve> + for RepositoryVulnerabilityAlertResolve +{ fn from(value: &RepositoryVulnerabilityAlertResolve) -> Self { value.clone() } @@ -84033,7 +85005,7 @@ pub enum RepositoryVulnerabilityAlertResolveAction { #[serde(rename = "resolve")] Resolve, } -impl From<&RepositoryVulnerabilityAlertResolveAction> +impl ::std::convert::From<&RepositoryVulnerabilityAlertResolveAction> for RepositoryVulnerabilityAlertResolveAction { fn from(value: &RepositoryVulnerabilityAlertResolveAction) -> Self { @@ -84047,7 +85019,7 @@ impl ::std::fmt::Display for RepositoryVulnerabilityAlertResolveAction { } } } -impl std::str::FromStr for RepositoryVulnerabilityAlertResolveAction { +impl ::std::str::FromStr for RepositoryVulnerabilityAlertResolveAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -84056,13 +85028,13 @@ impl std::str::FromStr for RepositoryVulnerabilityAlertResolveAction { } } } -impl std::convert::TryFrom<&str> for RepositoryVulnerabilityAlertResolveAction { +impl ::std::convert::TryFrom<&str> for RepositoryVulnerabilityAlertResolveAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAlertResolveAction { +impl ::std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAlertResolveAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -84070,7 +85042,7 @@ impl std::convert::TryFrom<&::std::string::String> for RepositoryVulnerabilityAl value.parse() } } -impl std::convert::TryFrom<::std::string::String> for RepositoryVulnerabilityAlertResolveAction { +impl ::std::convert::TryFrom<::std::string::String> for RepositoryVulnerabilityAlertResolveAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -84159,7 +85131,9 @@ pub struct RepositoryVulnerabilityAlertResolveAlert { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub severity: ::std::option::Option<::std::string::String>, } -impl From<&RepositoryVulnerabilityAlertResolveAlert> for RepositoryVulnerabilityAlertResolveAlert { +impl ::std::convert::From<&RepositoryVulnerabilityAlertResolveAlert> + for RepositoryVulnerabilityAlertResolveAlert +{ fn from(value: &RepositoryVulnerabilityAlertResolveAlert) -> Self { value.clone() } @@ -84239,7 +85213,7 @@ pub struct SecretScanningAlertCreated { pub organization: ::std::option::Option, pub repository: Repository, } -impl From<&SecretScanningAlertCreated> for SecretScanningAlertCreated { +impl ::std::convert::From<&SecretScanningAlertCreated> for SecretScanningAlertCreated { fn from(value: &SecretScanningAlertCreated) -> Self { value.clone() } @@ -84273,7 +85247,7 @@ pub enum SecretScanningAlertCreatedAction { #[serde(rename = "created")] Created, } -impl From<&SecretScanningAlertCreatedAction> for SecretScanningAlertCreatedAction { +impl ::std::convert::From<&SecretScanningAlertCreatedAction> for SecretScanningAlertCreatedAction { fn from(value: &SecretScanningAlertCreatedAction) -> Self { value.clone() } @@ -84285,7 +85259,7 @@ impl ::std::fmt::Display for SecretScanningAlertCreatedAction { } } } -impl std::str::FromStr for SecretScanningAlertCreatedAction { +impl ::std::str::FromStr for SecretScanningAlertCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -84294,13 +85268,13 @@ impl std::str::FromStr for SecretScanningAlertCreatedAction { } } } -impl std::convert::TryFrom<&str> for SecretScanningAlertCreatedAction { +impl ::std::convert::TryFrom<&str> for SecretScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecretScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -84308,7 +85282,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertCreate value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecretScanningAlertCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for SecretScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -84361,7 +85335,7 @@ pub struct SecretScanningAlertCreatedAlert { pub resolved_by: (), pub secret_type: ::std::string::String, } -impl From<&SecretScanningAlertCreatedAlert> for SecretScanningAlertCreatedAlert { +impl ::std::convert::From<&SecretScanningAlertCreatedAlert> for SecretScanningAlertCreatedAlert { fn from(value: &SecretScanningAlertCreatedAlert) -> Self { value.clone() } @@ -84393,22 +85367,22 @@ pub enum SecretScanningAlertEvent { Reopened(SecretScanningAlertReopened), Resolved(SecretScanningAlertResolved), } -impl From<&SecretScanningAlertEvent> for SecretScanningAlertEvent { +impl ::std::convert::From<&SecretScanningAlertEvent> for SecretScanningAlertEvent { fn from(value: &SecretScanningAlertEvent) -> Self { value.clone() } } -impl From for SecretScanningAlertEvent { +impl ::std::convert::From for SecretScanningAlertEvent { fn from(value: SecretScanningAlertCreated) -> Self { Self::Created(value) } } -impl From for SecretScanningAlertEvent { +impl ::std::convert::From for SecretScanningAlertEvent { fn from(value: SecretScanningAlertReopened) -> Self { Self::Reopened(value) } } -impl From for SecretScanningAlertEvent { +impl ::std::convert::From for SecretScanningAlertEvent { fn from(value: SecretScanningAlertResolved) -> Self { Self::Resolved(value) } @@ -84493,7 +85467,7 @@ pub struct SecretScanningAlertReopened { pub repository: Repository, pub sender: User, } -impl From<&SecretScanningAlertReopened> for SecretScanningAlertReopened { +impl ::std::convert::From<&SecretScanningAlertReopened> for SecretScanningAlertReopened { fn from(value: &SecretScanningAlertReopened) -> Self { value.clone() } @@ -84527,7 +85501,9 @@ pub enum SecretScanningAlertReopenedAction { #[serde(rename = "reopened")] Reopened, } -impl From<&SecretScanningAlertReopenedAction> for SecretScanningAlertReopenedAction { +impl ::std::convert::From<&SecretScanningAlertReopenedAction> + for SecretScanningAlertReopenedAction +{ fn from(value: &SecretScanningAlertReopenedAction) -> Self { value.clone() } @@ -84539,7 +85515,7 @@ impl ::std::fmt::Display for SecretScanningAlertReopenedAction { } } } -impl std::str::FromStr for SecretScanningAlertReopenedAction { +impl ::std::str::FromStr for SecretScanningAlertReopenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -84548,13 +85524,13 @@ impl std::str::FromStr for SecretScanningAlertReopenedAction { } } } -impl std::convert::TryFrom<&str> for SecretScanningAlertReopenedAction { +impl ::std::convert::TryFrom<&str> for SecretScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertReopenedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecretScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -84562,7 +85538,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertReopen value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecretScanningAlertReopenedAction { +impl ::std::convert::TryFrom<::std::string::String> for SecretScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -84615,7 +85591,7 @@ pub struct SecretScanningAlertReopenedAlert { pub resolved_by: (), pub secret_type: ::std::string::String, } -impl From<&SecretScanningAlertReopenedAlert> for SecretScanningAlertReopenedAlert { +impl ::std::convert::From<&SecretScanningAlertReopenedAlert> for SecretScanningAlertReopenedAlert { fn from(value: &SecretScanningAlertReopenedAlert) -> Self { value.clone() } @@ -84706,7 +85682,7 @@ pub struct SecretScanningAlertResolved { pub repository: Repository, pub sender: User, } -impl From<&SecretScanningAlertResolved> for SecretScanningAlertResolved { +impl ::std::convert::From<&SecretScanningAlertResolved> for SecretScanningAlertResolved { fn from(value: &SecretScanningAlertResolved) -> Self { value.clone() } @@ -84740,7 +85716,9 @@ pub enum SecretScanningAlertResolvedAction { #[serde(rename = "resolved")] Resolved, } -impl From<&SecretScanningAlertResolvedAction> for SecretScanningAlertResolvedAction { +impl ::std::convert::From<&SecretScanningAlertResolvedAction> + for SecretScanningAlertResolvedAction +{ fn from(value: &SecretScanningAlertResolvedAction) -> Self { value.clone() } @@ -84752,7 +85730,7 @@ impl ::std::fmt::Display for SecretScanningAlertResolvedAction { } } } -impl std::str::FromStr for SecretScanningAlertResolvedAction { +impl ::std::str::FromStr for SecretScanningAlertResolvedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -84761,13 +85739,13 @@ impl std::str::FromStr for SecretScanningAlertResolvedAction { } } } -impl std::convert::TryFrom<&str> for SecretScanningAlertResolvedAction { +impl ::std::convert::TryFrom<&str> for SecretScanningAlertResolvedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertResolvedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecretScanningAlertResolvedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -84775,7 +85753,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertResolv value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecretScanningAlertResolvedAction { +impl ::std::convert::TryFrom<::std::string::String> for SecretScanningAlertResolvedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -84834,7 +85812,7 @@ pub struct SecretScanningAlertResolvedAlert { pub resolved_by: User, pub secret_type: ::std::string::String, } -impl From<&SecretScanningAlertResolvedAlert> for SecretScanningAlertResolvedAlert { +impl ::std::convert::From<&SecretScanningAlertResolvedAlert> for SecretScanningAlertResolvedAlert { fn from(value: &SecretScanningAlertResolvedAlert) -> Self { value.clone() } @@ -84877,7 +85855,7 @@ pub enum SecretScanningAlertResolvedAlertResolution { #[serde(rename = "used_in_tests")] UsedInTests, } -impl From<&SecretScanningAlertResolvedAlertResolution> +impl ::std::convert::From<&SecretScanningAlertResolvedAlertResolution> for SecretScanningAlertResolvedAlertResolution { fn from(value: &SecretScanningAlertResolvedAlertResolution) -> Self { @@ -84894,7 +85872,7 @@ impl ::std::fmt::Display for SecretScanningAlertResolvedAlertResolution { } } } -impl std::str::FromStr for SecretScanningAlertResolvedAlertResolution { +impl ::std::str::FromStr for SecretScanningAlertResolvedAlertResolution { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -84906,13 +85884,15 @@ impl std::str::FromStr for SecretScanningAlertResolvedAlertResolution { } } } -impl std::convert::TryFrom<&str> for SecretScanningAlertResolvedAlertResolution { +impl ::std::convert::TryFrom<&str> for SecretScanningAlertResolvedAlertResolution { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertResolvedAlertResolution { +impl ::std::convert::TryFrom<&::std::string::String> + for SecretScanningAlertResolvedAlertResolution +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -84920,7 +85900,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecretScanningAlertResolv value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecretScanningAlertResolvedAlertResolution { +impl ::std::convert::TryFrom<::std::string::String> for SecretScanningAlertResolvedAlertResolution { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -84959,27 +85939,27 @@ pub enum SecurityAdvisoryEvent { Updated(SecurityAdvisoryUpdated), Withdrawn(SecurityAdvisoryWithdrawn), } -impl From<&SecurityAdvisoryEvent> for SecurityAdvisoryEvent { +impl ::std::convert::From<&SecurityAdvisoryEvent> for SecurityAdvisoryEvent { fn from(value: &SecurityAdvisoryEvent) -> Self { value.clone() } } -impl From for SecurityAdvisoryEvent { +impl ::std::convert::From for SecurityAdvisoryEvent { fn from(value: SecurityAdvisoryPerformed) -> Self { Self::Performed(value) } } -impl From for SecurityAdvisoryEvent { +impl ::std::convert::From for SecurityAdvisoryEvent { fn from(value: SecurityAdvisoryPublished) -> Self { Self::Published(value) } } -impl From for SecurityAdvisoryEvent { +impl ::std::convert::From for SecurityAdvisoryEvent { fn from(value: SecurityAdvisoryUpdated) -> Self { Self::Updated(value) } } -impl From for SecurityAdvisoryEvent { +impl ::std::convert::From for SecurityAdvisoryEvent { fn from(value: SecurityAdvisoryWithdrawn) -> Self { Self::Withdrawn(value) } @@ -85185,7 +86165,7 @@ pub struct SecurityAdvisoryPerformed { pub action: SecurityAdvisoryPerformedAction, pub security_advisory: SecurityAdvisoryPerformedSecurityAdvisory, } -impl From<&SecurityAdvisoryPerformed> for SecurityAdvisoryPerformed { +impl ::std::convert::From<&SecurityAdvisoryPerformed> for SecurityAdvisoryPerformed { fn from(value: &SecurityAdvisoryPerformed) -> Self { value.clone() } @@ -85219,7 +86199,7 @@ pub enum SecurityAdvisoryPerformedAction { #[serde(rename = "performed")] Performed, } -impl From<&SecurityAdvisoryPerformedAction> for SecurityAdvisoryPerformedAction { +impl ::std::convert::From<&SecurityAdvisoryPerformedAction> for SecurityAdvisoryPerformedAction { fn from(value: &SecurityAdvisoryPerformedAction) -> Self { value.clone() } @@ -85231,7 +86211,7 @@ impl ::std::fmt::Display for SecurityAdvisoryPerformedAction { } } } -impl std::str::FromStr for SecurityAdvisoryPerformedAction { +impl ::std::str::FromStr for SecurityAdvisoryPerformedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -85240,13 +86220,13 @@ impl std::str::FromStr for SecurityAdvisoryPerformedAction { } } } -impl std::convert::TryFrom<&str> for SecurityAdvisoryPerformedAction { +impl ::std::convert::TryFrom<&str> for SecurityAdvisoryPerformedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryPerformedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryPerformedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -85254,7 +86234,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryPerformed value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecurityAdvisoryPerformedAction { +impl ::std::convert::TryFrom<::std::string::String> for SecurityAdvisoryPerformedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -85456,7 +86436,7 @@ pub struct SecurityAdvisoryPerformedSecurityAdvisory { ::std::vec::Vec, pub withdrawn_at: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisory> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisory> for SecurityAdvisoryPerformedSecurityAdvisory { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisory) -> Self { @@ -85495,7 +86475,7 @@ pub struct SecurityAdvisoryPerformedSecurityAdvisoryCvss { pub score: f64, pub vector_string: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryCvss> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisoryCvss> for SecurityAdvisoryPerformedSecurityAdvisoryCvss { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisoryCvss) -> Self { @@ -85531,7 +86511,7 @@ pub struct SecurityAdvisoryPerformedSecurityAdvisoryCwesItem { pub cwe_id: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryCwesItem> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisoryCwesItem> for SecurityAdvisoryPerformedSecurityAdvisoryCwesItem { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisoryCwesItem) -> Self { @@ -85568,7 +86548,7 @@ pub struct SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem { pub type_: ::std::string::String, pub value: ::std::string::String, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem> for SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem) -> Self { @@ -85600,7 +86580,7 @@ impl From<&SecurityAdvisoryPerformedSecurityAdvisoryIdentifiersItem> pub struct SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem { pub url: ::std::string::String, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem> for SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisoryReferencesItem) -> Self { @@ -85673,7 +86653,7 @@ pub struct SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem { pub severity: ::std::string::String, pub vulnerable_version_range: ::std::string::String, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem> for SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem) -> Self { @@ -85704,8 +86684,10 @@ impl From<&SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItem> pub struct SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { pub identifier: ::std::string::String, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion> - for SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion +impl + ::std::convert::From< + &SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, + > for SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { fn from( value: &SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, @@ -85742,7 +86724,7 @@ pub struct SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemPackage { pub ecosystem: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemPackage> +impl ::std::convert::From<&SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemPackage> for SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemPackage { fn from(value: &SecurityAdvisoryPerformedSecurityAdvisoryVulnerabilitiesItemPackage) -> Self { @@ -85950,7 +86932,7 @@ pub struct SecurityAdvisoryPublished { pub action: SecurityAdvisoryPublishedAction, pub security_advisory: SecurityAdvisoryPublishedSecurityAdvisory, } -impl From<&SecurityAdvisoryPublished> for SecurityAdvisoryPublished { +impl ::std::convert::From<&SecurityAdvisoryPublished> for SecurityAdvisoryPublished { fn from(value: &SecurityAdvisoryPublished) -> Self { value.clone() } @@ -85984,7 +86966,7 @@ pub enum SecurityAdvisoryPublishedAction { #[serde(rename = "published")] Published, } -impl From<&SecurityAdvisoryPublishedAction> for SecurityAdvisoryPublishedAction { +impl ::std::convert::From<&SecurityAdvisoryPublishedAction> for SecurityAdvisoryPublishedAction { fn from(value: &SecurityAdvisoryPublishedAction) -> Self { value.clone() } @@ -85996,7 +86978,7 @@ impl ::std::fmt::Display for SecurityAdvisoryPublishedAction { } } } -impl std::str::FromStr for SecurityAdvisoryPublishedAction { +impl ::std::str::FromStr for SecurityAdvisoryPublishedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -86005,13 +86987,13 @@ impl std::str::FromStr for SecurityAdvisoryPublishedAction { } } } -impl std::convert::TryFrom<&str> for SecurityAdvisoryPublishedAction { +impl ::std::convert::TryFrom<&str> for SecurityAdvisoryPublishedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryPublishedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryPublishedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -86019,7 +87001,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryPublished value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecurityAdvisoryPublishedAction { +impl ::std::convert::TryFrom<::std::string::String> for SecurityAdvisoryPublishedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -86221,7 +87203,7 @@ pub struct SecurityAdvisoryPublishedSecurityAdvisory { ::std::vec::Vec, pub withdrawn_at: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisory> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisory> for SecurityAdvisoryPublishedSecurityAdvisory { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisory) -> Self { @@ -86260,7 +87242,7 @@ pub struct SecurityAdvisoryPublishedSecurityAdvisoryCvss { pub score: f64, pub vector_string: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryCvss> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisoryCvss> for SecurityAdvisoryPublishedSecurityAdvisoryCvss { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisoryCvss) -> Self { @@ -86296,7 +87278,7 @@ pub struct SecurityAdvisoryPublishedSecurityAdvisoryCwesItem { pub cwe_id: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryCwesItem> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisoryCwesItem> for SecurityAdvisoryPublishedSecurityAdvisoryCwesItem { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisoryCwesItem) -> Self { @@ -86333,7 +87315,7 @@ pub struct SecurityAdvisoryPublishedSecurityAdvisoryIdentifiersItem { pub type_: ::std::string::String, pub value: ::std::string::String, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryIdentifiersItem> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisoryIdentifiersItem> for SecurityAdvisoryPublishedSecurityAdvisoryIdentifiersItem { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisoryIdentifiersItem) -> Self { @@ -86365,7 +87347,7 @@ impl From<&SecurityAdvisoryPublishedSecurityAdvisoryIdentifiersItem> pub struct SecurityAdvisoryPublishedSecurityAdvisoryReferencesItem { pub url: ::std::string::String, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryReferencesItem> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisoryReferencesItem> for SecurityAdvisoryPublishedSecurityAdvisoryReferencesItem { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisoryReferencesItem) -> Self { @@ -86438,7 +87420,7 @@ pub struct SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItem { pub severity: ::std::string::String, pub vulnerable_version_range: ::std::string::String, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItem> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItem> for SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItem { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItem) -> Self { @@ -86469,8 +87451,10 @@ impl From<&SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItem> pub struct SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { pub identifier: ::std::string::String, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion> - for SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion +impl + ::std::convert::From< + &SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, + > for SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { fn from( value: &SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, @@ -86507,7 +87491,7 @@ pub struct SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemPackage { pub ecosystem: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemPackage> +impl ::std::convert::From<&SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemPackage> for SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemPackage { fn from(value: &SecurityAdvisoryPublishedSecurityAdvisoryVulnerabilitiesItemPackage) -> Self { @@ -86715,7 +87699,7 @@ pub struct SecurityAdvisoryUpdated { pub action: SecurityAdvisoryUpdatedAction, pub security_advisory: SecurityAdvisoryUpdatedSecurityAdvisory, } -impl From<&SecurityAdvisoryUpdated> for SecurityAdvisoryUpdated { +impl ::std::convert::From<&SecurityAdvisoryUpdated> for SecurityAdvisoryUpdated { fn from(value: &SecurityAdvisoryUpdated) -> Self { value.clone() } @@ -86749,7 +87733,7 @@ pub enum SecurityAdvisoryUpdatedAction { #[serde(rename = "updated")] Updated, } -impl From<&SecurityAdvisoryUpdatedAction> for SecurityAdvisoryUpdatedAction { +impl ::std::convert::From<&SecurityAdvisoryUpdatedAction> for SecurityAdvisoryUpdatedAction { fn from(value: &SecurityAdvisoryUpdatedAction) -> Self { value.clone() } @@ -86761,7 +87745,7 @@ impl ::std::fmt::Display for SecurityAdvisoryUpdatedAction { } } } -impl std::str::FromStr for SecurityAdvisoryUpdatedAction { +impl ::std::str::FromStr for SecurityAdvisoryUpdatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -86770,13 +87754,13 @@ impl std::str::FromStr for SecurityAdvisoryUpdatedAction { } } } -impl std::convert::TryFrom<&str> for SecurityAdvisoryUpdatedAction { +impl ::std::convert::TryFrom<&str> for SecurityAdvisoryUpdatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryUpdatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryUpdatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -86784,7 +87768,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryUpdatedAc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecurityAdvisoryUpdatedAction { +impl ::std::convert::TryFrom<::std::string::String> for SecurityAdvisoryUpdatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -86986,7 +87970,9 @@ pub struct SecurityAdvisoryUpdatedSecurityAdvisory { ::std::vec::Vec, pub withdrawn_at: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisory> for SecurityAdvisoryUpdatedSecurityAdvisory { +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisory> + for SecurityAdvisoryUpdatedSecurityAdvisory +{ fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisory) -> Self { value.clone() } @@ -87023,7 +88009,7 @@ pub struct SecurityAdvisoryUpdatedSecurityAdvisoryCvss { pub score: f64, pub vector_string: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryCvss> +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisoryCvss> for SecurityAdvisoryUpdatedSecurityAdvisoryCvss { fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisoryCvss) -> Self { @@ -87059,7 +88045,7 @@ pub struct SecurityAdvisoryUpdatedSecurityAdvisoryCwesItem { pub cwe_id: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryCwesItem> +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisoryCwesItem> for SecurityAdvisoryUpdatedSecurityAdvisoryCwesItem { fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisoryCwesItem) -> Self { @@ -87096,7 +88082,7 @@ pub struct SecurityAdvisoryUpdatedSecurityAdvisoryIdentifiersItem { pub type_: ::std::string::String, pub value: ::std::string::String, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryIdentifiersItem> +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisoryIdentifiersItem> for SecurityAdvisoryUpdatedSecurityAdvisoryIdentifiersItem { fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisoryIdentifiersItem) -> Self { @@ -87128,7 +88114,7 @@ impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryIdentifiersItem> pub struct SecurityAdvisoryUpdatedSecurityAdvisoryReferencesItem { pub url: ::std::string::String, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryReferencesItem> +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisoryReferencesItem> for SecurityAdvisoryUpdatedSecurityAdvisoryReferencesItem { fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisoryReferencesItem) -> Self { @@ -87201,7 +88187,7 @@ pub struct SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItem { pub severity: ::std::string::String, pub vulnerable_version_range: ::std::string::String, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItem> +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItem> for SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItem { fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItem) -> Self { @@ -87232,8 +88218,10 @@ impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItem> pub struct SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { pub identifier: ::std::string::String, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion> - for SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion +impl + ::std::convert::From< + &SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, + > for SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { fn from( value: &SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, @@ -87270,7 +88258,7 @@ pub struct SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemPackage { pub ecosystem: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemPackage> +impl ::std::convert::From<&SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemPackage> for SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemPackage { fn from(value: &SecurityAdvisoryUpdatedSecurityAdvisoryVulnerabilitiesItemPackage) -> Self { @@ -87475,7 +88463,7 @@ pub struct SecurityAdvisoryWithdrawn { pub action: SecurityAdvisoryWithdrawnAction, pub security_advisory: SecurityAdvisoryWithdrawnSecurityAdvisory, } -impl From<&SecurityAdvisoryWithdrawn> for SecurityAdvisoryWithdrawn { +impl ::std::convert::From<&SecurityAdvisoryWithdrawn> for SecurityAdvisoryWithdrawn { fn from(value: &SecurityAdvisoryWithdrawn) -> Self { value.clone() } @@ -87509,7 +88497,7 @@ pub enum SecurityAdvisoryWithdrawnAction { #[serde(rename = "withdrawn")] Withdrawn, } -impl From<&SecurityAdvisoryWithdrawnAction> for SecurityAdvisoryWithdrawnAction { +impl ::std::convert::From<&SecurityAdvisoryWithdrawnAction> for SecurityAdvisoryWithdrawnAction { fn from(value: &SecurityAdvisoryWithdrawnAction) -> Self { value.clone() } @@ -87521,7 +88509,7 @@ impl ::std::fmt::Display for SecurityAdvisoryWithdrawnAction { } } } -impl std::str::FromStr for SecurityAdvisoryWithdrawnAction { +impl ::std::str::FromStr for SecurityAdvisoryWithdrawnAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -87530,13 +88518,13 @@ impl std::str::FromStr for SecurityAdvisoryWithdrawnAction { } } } -impl std::convert::TryFrom<&str> for SecurityAdvisoryWithdrawnAction { +impl ::std::convert::TryFrom<&str> for SecurityAdvisoryWithdrawnAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryWithdrawnAction { +impl ::std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryWithdrawnAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -87544,7 +88532,7 @@ impl std::convert::TryFrom<&::std::string::String> for SecurityAdvisoryWithdrawn value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SecurityAdvisoryWithdrawnAction { +impl ::std::convert::TryFrom<::std::string::String> for SecurityAdvisoryWithdrawnAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -87743,7 +88731,7 @@ pub struct SecurityAdvisoryWithdrawnSecurityAdvisory { ::std::vec::Vec, pub withdrawn_at: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisory> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisory> for SecurityAdvisoryWithdrawnSecurityAdvisory { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisory) -> Self { @@ -87782,7 +88770,7 @@ pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryCvss { pub score: f64, pub vector_string: ::std::option::Option<::std::string::String>, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryCvss> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisoryCvss> for SecurityAdvisoryWithdrawnSecurityAdvisoryCvss { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisoryCvss) -> Self { @@ -87818,7 +88806,7 @@ pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryCwesItem { pub cwe_id: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryCwesItem> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisoryCwesItem> for SecurityAdvisoryWithdrawnSecurityAdvisoryCwesItem { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisoryCwesItem) -> Self { @@ -87855,7 +88843,7 @@ pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryIdentifiersItem { pub type_: ::std::string::String, pub value: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryIdentifiersItem> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisoryIdentifiersItem> for SecurityAdvisoryWithdrawnSecurityAdvisoryIdentifiersItem { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisoryIdentifiersItem) -> Self { @@ -87887,7 +88875,7 @@ impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryIdentifiersItem> pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryReferencesItem { pub url: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryReferencesItem> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisoryReferencesItem> for SecurityAdvisoryWithdrawnSecurityAdvisoryReferencesItem { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisoryReferencesItem) -> Self { @@ -87960,7 +88948,7 @@ pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItem { pub severity: ::std::string::String, pub vulnerable_version_range: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItem> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItem> for SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItem { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItem) -> Self { @@ -87991,8 +88979,10 @@ impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItem> pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { pub identifier: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion> - for SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion +impl + ::std::convert::From< + &SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, + > for SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion { fn from( value: &SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemFirstPatchedVersion, @@ -88029,7 +89019,7 @@ pub struct SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemPackage { pub ecosystem: ::std::string::String, pub name: ::std::string::String, } -impl From<&SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemPackage> +impl ::std::convert::From<&SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemPackage> for SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemPackage { fn from(value: &SecurityAdvisoryWithdrawnSecurityAdvisoryVulnerabilitiesItemPackage) -> Self { @@ -88391,7 +89381,7 @@ pub struct SimplePullRequest { pub url: ::std::string::String, pub user: User, } -impl From<&SimplePullRequest> for SimplePullRequest { +impl ::std::convert::From<&SimplePullRequest> for SimplePullRequest { fn from(value: &SimplePullRequest) -> Self { value.clone() } @@ -88434,7 +89424,9 @@ pub enum SimplePullRequestActiveLockReason { #[serde(rename = "spam")] Spam, } -impl From<&SimplePullRequestActiveLockReason> for SimplePullRequestActiveLockReason { +impl ::std::convert::From<&SimplePullRequestActiveLockReason> + for SimplePullRequestActiveLockReason +{ fn from(value: &SimplePullRequestActiveLockReason) -> Self { value.clone() } @@ -88449,7 +89441,7 @@ impl ::std::fmt::Display for SimplePullRequestActiveLockReason { } } } -impl std::str::FromStr for SimplePullRequestActiveLockReason { +impl ::std::str::FromStr for SimplePullRequestActiveLockReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -88461,13 +89453,13 @@ impl std::str::FromStr for SimplePullRequestActiveLockReason { } } } -impl std::convert::TryFrom<&str> for SimplePullRequestActiveLockReason { +impl ::std::convert::TryFrom<&str> for SimplePullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SimplePullRequestActiveLockReason { +impl ::std::convert::TryFrom<&::std::string::String> for SimplePullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -88475,7 +89467,7 @@ impl std::convert::TryFrom<&::std::string::String> for SimplePullRequestActiveLo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SimplePullRequestActiveLockReason { +impl ::std::convert::TryFrom<::std::string::String> for SimplePullRequestActiveLockReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -88528,7 +89520,7 @@ pub struct SimplePullRequestBase { pub sha: ::std::string::String, pub user: User, } -impl From<&SimplePullRequestBase> for SimplePullRequestBase { +impl ::std::convert::From<&SimplePullRequestBase> for SimplePullRequestBase { fn from(value: &SimplePullRequestBase) -> Self { value.clone() } @@ -88578,7 +89570,7 @@ pub struct SimplePullRequestHead { pub sha: ::std::string::String, pub user: User, } -impl From<&SimplePullRequestHead> for SimplePullRequestHead { +impl ::std::convert::From<&SimplePullRequestHead> for SimplePullRequestHead { fn from(value: &SimplePullRequestHead) -> Self { value.clone() } @@ -88643,7 +89635,7 @@ pub struct SimplePullRequestLinks { pub self_: Link, pub statuses: Link, } -impl From<&SimplePullRequestLinks> for SimplePullRequestLinks { +impl ::std::convert::From<&SimplePullRequestLinks> for SimplePullRequestLinks { fn from(value: &SimplePullRequestLinks) -> Self { value.clone() } @@ -88671,17 +89663,19 @@ pub enum SimplePullRequestRequestedReviewersItem { User(User), Team(Team), } -impl From<&SimplePullRequestRequestedReviewersItem> for SimplePullRequestRequestedReviewersItem { +impl ::std::convert::From<&SimplePullRequestRequestedReviewersItem> + for SimplePullRequestRequestedReviewersItem +{ fn from(value: &SimplePullRequestRequestedReviewersItem) -> Self { value.clone() } } -impl From for SimplePullRequestRequestedReviewersItem { +impl ::std::convert::From for SimplePullRequestRequestedReviewersItem { fn from(value: User) -> Self { Self::User(value) } } -impl From for SimplePullRequestRequestedReviewersItem { +impl ::std::convert::From for SimplePullRequestRequestedReviewersItem { fn from(value: Team) -> Self { Self::Team(value) } @@ -88718,7 +89712,7 @@ pub enum SimplePullRequestState { #[serde(rename = "closed")] Closed, } -impl From<&SimplePullRequestState> for SimplePullRequestState { +impl ::std::convert::From<&SimplePullRequestState> for SimplePullRequestState { fn from(value: &SimplePullRequestState) -> Self { value.clone() } @@ -88731,7 +89725,7 @@ impl ::std::fmt::Display for SimplePullRequestState { } } } -impl std::str::FromStr for SimplePullRequestState { +impl ::std::str::FromStr for SimplePullRequestState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -88741,13 +89735,13 @@ impl std::str::FromStr for SimplePullRequestState { } } } -impl std::convert::TryFrom<&str> for SimplePullRequestState { +impl ::std::convert::TryFrom<&str> for SimplePullRequestState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SimplePullRequestState { +impl ::std::convert::TryFrom<&::std::string::String> for SimplePullRequestState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -88755,7 +89749,7 @@ impl std::convert::TryFrom<&::std::string::String> for SimplePullRequestState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SimplePullRequestState { +impl ::std::convert::TryFrom<::std::string::String> for SimplePullRequestState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -88831,7 +89825,7 @@ pub struct SponsorshipCancelled { pub sender: User, pub sponsorship: SponsorshipCancelledSponsorship, } -impl From<&SponsorshipCancelled> for SponsorshipCancelled { +impl ::std::convert::From<&SponsorshipCancelled> for SponsorshipCancelled { fn from(value: &SponsorshipCancelled) -> Self { value.clone() } @@ -88865,7 +89859,7 @@ pub enum SponsorshipCancelledAction { #[serde(rename = "cancelled")] Cancelled, } -impl From<&SponsorshipCancelledAction> for SponsorshipCancelledAction { +impl ::std::convert::From<&SponsorshipCancelledAction> for SponsorshipCancelledAction { fn from(value: &SponsorshipCancelledAction) -> Self { value.clone() } @@ -88877,7 +89871,7 @@ impl ::std::fmt::Display for SponsorshipCancelledAction { } } } -impl std::str::FromStr for SponsorshipCancelledAction { +impl ::std::str::FromStr for SponsorshipCancelledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -88886,13 +89880,13 @@ impl std::str::FromStr for SponsorshipCancelledAction { } } } -impl std::convert::TryFrom<&str> for SponsorshipCancelledAction { +impl ::std::convert::TryFrom<&str> for SponsorshipCancelledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SponsorshipCancelledAction { +impl ::std::convert::TryFrom<&::std::string::String> for SponsorshipCancelledAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -88900,7 +89894,7 @@ impl std::convert::TryFrom<&::std::string::String> for SponsorshipCancelledActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SponsorshipCancelledAction { +impl ::std::convert::TryFrom<::std::string::String> for SponsorshipCancelledAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -88957,7 +89951,7 @@ pub struct SponsorshipCancelledSponsorship { pub sponsorable: User, pub tier: SponsorshipTier, } -impl From<&SponsorshipCancelledSponsorship> for SponsorshipCancelledSponsorship { +impl ::std::convert::From<&SponsorshipCancelledSponsorship> for SponsorshipCancelledSponsorship { fn from(value: &SponsorshipCancelledSponsorship) -> Self { value.clone() } @@ -89030,7 +90024,7 @@ pub struct SponsorshipCreated { pub sender: User, pub sponsorship: SponsorshipCreatedSponsorship, } -impl From<&SponsorshipCreated> for SponsorshipCreated { +impl ::std::convert::From<&SponsorshipCreated> for SponsorshipCreated { fn from(value: &SponsorshipCreated) -> Self { value.clone() } @@ -89064,7 +90058,7 @@ pub enum SponsorshipCreatedAction { #[serde(rename = "created")] Created, } -impl From<&SponsorshipCreatedAction> for SponsorshipCreatedAction { +impl ::std::convert::From<&SponsorshipCreatedAction> for SponsorshipCreatedAction { fn from(value: &SponsorshipCreatedAction) -> Self { value.clone() } @@ -89076,7 +90070,7 @@ impl ::std::fmt::Display for SponsorshipCreatedAction { } } } -impl std::str::FromStr for SponsorshipCreatedAction { +impl ::std::str::FromStr for SponsorshipCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -89085,13 +90079,13 @@ impl std::str::FromStr for SponsorshipCreatedAction { } } } -impl std::convert::TryFrom<&str> for SponsorshipCreatedAction { +impl ::std::convert::TryFrom<&str> for SponsorshipCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SponsorshipCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SponsorshipCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -89099,7 +90093,7 @@ impl std::convert::TryFrom<&::std::string::String> for SponsorshipCreatedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SponsorshipCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for SponsorshipCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -89156,7 +90150,7 @@ pub struct SponsorshipCreatedSponsorship { pub sponsorable: User, pub tier: SponsorshipTier, } -impl From<&SponsorshipCreatedSponsorship> for SponsorshipCreatedSponsorship { +impl ::std::convert::From<&SponsorshipCreatedSponsorship> for SponsorshipCreatedSponsorship { fn from(value: &SponsorshipCreatedSponsorship) -> Self { value.clone() } @@ -89250,7 +90244,7 @@ pub struct SponsorshipEdited { pub sender: User, pub sponsorship: SponsorshipEditedSponsorship, } -impl From<&SponsorshipEdited> for SponsorshipEdited { +impl ::std::convert::From<&SponsorshipEdited> for SponsorshipEdited { fn from(value: &SponsorshipEdited) -> Self { value.clone() } @@ -89284,7 +90278,7 @@ pub enum SponsorshipEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&SponsorshipEditedAction> for SponsorshipEditedAction { +impl ::std::convert::From<&SponsorshipEditedAction> for SponsorshipEditedAction { fn from(value: &SponsorshipEditedAction) -> Self { value.clone() } @@ -89296,7 +90290,7 @@ impl ::std::fmt::Display for SponsorshipEditedAction { } } } -impl std::str::FromStr for SponsorshipEditedAction { +impl ::std::str::FromStr for SponsorshipEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -89305,13 +90299,13 @@ impl std::str::FromStr for SponsorshipEditedAction { } } } -impl std::convert::TryFrom<&str> for SponsorshipEditedAction { +impl ::std::convert::TryFrom<&str> for SponsorshipEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SponsorshipEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SponsorshipEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -89319,7 +90313,7 @@ impl std::convert::TryFrom<&::std::string::String> for SponsorshipEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SponsorshipEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for SponsorshipEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -89359,11 +90353,18 @@ pub struct SponsorshipEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub privacy_level: ::std::option::Option, } -impl From<&SponsorshipEditedChanges> for SponsorshipEditedChanges { +impl ::std::convert::From<&SponsorshipEditedChanges> for SponsorshipEditedChanges { fn from(value: &SponsorshipEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for SponsorshipEditedChanges { + fn default() -> Self { + Self { + privacy_level: Default::default(), + } + } +} #[doc = "SponsorshipEditedChangesPrivacyLevel"] #[doc = r""] #[doc = r"
JSON schema"] @@ -89390,7 +90391,9 @@ pub struct SponsorshipEditedChangesPrivacyLevel { #[doc = "The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy."] pub from: ::std::string::String, } -impl From<&SponsorshipEditedChangesPrivacyLevel> for SponsorshipEditedChangesPrivacyLevel { +impl ::std::convert::From<&SponsorshipEditedChangesPrivacyLevel> + for SponsorshipEditedChangesPrivacyLevel +{ fn from(value: &SponsorshipEditedChangesPrivacyLevel) -> Self { value.clone() } @@ -89444,7 +90447,7 @@ pub struct SponsorshipEditedSponsorship { pub sponsorable: User, pub tier: SponsorshipTier, } -impl From<&SponsorshipEditedSponsorship> for SponsorshipEditedSponsorship { +impl ::std::convert::From<&SponsorshipEditedSponsorship> for SponsorshipEditedSponsorship { fn from(value: &SponsorshipEditedSponsorship) -> Self { value.clone() } @@ -89488,37 +90491,37 @@ pub enum SponsorshipEvent { PendingTierChange(SponsorshipPendingTierChange), TierChanged(SponsorshipTierChanged), } -impl From<&SponsorshipEvent> for SponsorshipEvent { +impl ::std::convert::From<&SponsorshipEvent> for SponsorshipEvent { fn from(value: &SponsorshipEvent) -> Self { value.clone() } } -impl From for SponsorshipEvent { +impl ::std::convert::From for SponsorshipEvent { fn from(value: SponsorshipCancelled) -> Self { Self::Cancelled(value) } } -impl From for SponsorshipEvent { +impl ::std::convert::From for SponsorshipEvent { fn from(value: SponsorshipCreated) -> Self { Self::Created(value) } } -impl From for SponsorshipEvent { +impl ::std::convert::From for SponsorshipEvent { fn from(value: SponsorshipEdited) -> Self { Self::Edited(value) } } -impl From for SponsorshipEvent { +impl ::std::convert::From for SponsorshipEvent { fn from(value: SponsorshipPendingCancellation) -> Self { Self::PendingCancellation(value) } } -impl From for SponsorshipEvent { +impl ::std::convert::From for SponsorshipEvent { fn from(value: SponsorshipPendingTierChange) -> Self { Self::PendingTierChange(value) } } -impl From for SponsorshipEvent { +impl ::std::convert::From for SponsorshipEvent { fn from(value: SponsorshipTierChanged) -> Self { Self::TierChanged(value) } @@ -89598,7 +90601,7 @@ pub struct SponsorshipPendingCancellation { pub sender: User, pub sponsorship: SponsorshipPendingCancellationSponsorship, } -impl From<&SponsorshipPendingCancellation> for SponsorshipPendingCancellation { +impl ::std::convert::From<&SponsorshipPendingCancellation> for SponsorshipPendingCancellation { fn from(value: &SponsorshipPendingCancellation) -> Self { value.clone() } @@ -89632,7 +90635,9 @@ pub enum SponsorshipPendingCancellationAction { #[serde(rename = "pending_cancellation")] PendingCancellation, } -impl From<&SponsorshipPendingCancellationAction> for SponsorshipPendingCancellationAction { +impl ::std::convert::From<&SponsorshipPendingCancellationAction> + for SponsorshipPendingCancellationAction +{ fn from(value: &SponsorshipPendingCancellationAction) -> Self { value.clone() } @@ -89644,7 +90649,7 @@ impl ::std::fmt::Display for SponsorshipPendingCancellationAction { } } } -impl std::str::FromStr for SponsorshipPendingCancellationAction { +impl ::std::str::FromStr for SponsorshipPendingCancellationAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -89653,13 +90658,13 @@ impl std::str::FromStr for SponsorshipPendingCancellationAction { } } } -impl std::convert::TryFrom<&str> for SponsorshipPendingCancellationAction { +impl ::std::convert::TryFrom<&str> for SponsorshipPendingCancellationAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SponsorshipPendingCancellationAction { +impl ::std::convert::TryFrom<&::std::string::String> for SponsorshipPendingCancellationAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -89667,7 +90672,7 @@ impl std::convert::TryFrom<&::std::string::String> for SponsorshipPendingCancell value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SponsorshipPendingCancellationAction { +impl ::std::convert::TryFrom<::std::string::String> for SponsorshipPendingCancellationAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -89724,7 +90729,7 @@ pub struct SponsorshipPendingCancellationSponsorship { pub sponsorable: User, pub tier: SponsorshipTier, } -impl From<&SponsorshipPendingCancellationSponsorship> +impl ::std::convert::From<&SponsorshipPendingCancellationSponsorship> for SponsorshipPendingCancellationSponsorship { fn from(value: &SponsorshipPendingCancellationSponsorship) -> Self { @@ -89829,7 +90834,7 @@ pub struct SponsorshipPendingTierChange { pub sender: User, pub sponsorship: SponsorshipPendingTierChangeSponsorship, } -impl From<&SponsorshipPendingTierChange> for SponsorshipPendingTierChange { +impl ::std::convert::From<&SponsorshipPendingTierChange> for SponsorshipPendingTierChange { fn from(value: &SponsorshipPendingTierChange) -> Self { value.clone() } @@ -89863,7 +90868,9 @@ pub enum SponsorshipPendingTierChangeAction { #[serde(rename = "pending_tier_change")] PendingTierChange, } -impl From<&SponsorshipPendingTierChangeAction> for SponsorshipPendingTierChangeAction { +impl ::std::convert::From<&SponsorshipPendingTierChangeAction> + for SponsorshipPendingTierChangeAction +{ fn from(value: &SponsorshipPendingTierChangeAction) -> Self { value.clone() } @@ -89875,7 +90882,7 @@ impl ::std::fmt::Display for SponsorshipPendingTierChangeAction { } } } -impl std::str::FromStr for SponsorshipPendingTierChangeAction { +impl ::std::str::FromStr for SponsorshipPendingTierChangeAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -89884,13 +90891,13 @@ impl std::str::FromStr for SponsorshipPendingTierChangeAction { } } } -impl std::convert::TryFrom<&str> for SponsorshipPendingTierChangeAction { +impl ::std::convert::TryFrom<&str> for SponsorshipPendingTierChangeAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SponsorshipPendingTierChangeAction { +impl ::std::convert::TryFrom<&::std::string::String> for SponsorshipPendingTierChangeAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -89898,7 +90905,7 @@ impl std::convert::TryFrom<&::std::string::String> for SponsorshipPendingTierCha value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SponsorshipPendingTierChangeAction { +impl ::std::convert::TryFrom<::std::string::String> for SponsorshipPendingTierChangeAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -89939,7 +90946,9 @@ impl std::convert::TryFrom<::std::string::String> for SponsorshipPendingTierChan pub struct SponsorshipPendingTierChangeChanges { pub tier: SponsorshipPendingTierChangeChangesTier, } -impl From<&SponsorshipPendingTierChangeChanges> for SponsorshipPendingTierChangeChanges { +impl ::std::convert::From<&SponsorshipPendingTierChangeChanges> + for SponsorshipPendingTierChangeChanges +{ fn from(value: &SponsorshipPendingTierChangeChanges) -> Self { value.clone() } @@ -89968,7 +90977,9 @@ impl From<&SponsorshipPendingTierChangeChanges> for SponsorshipPendingTierChange pub struct SponsorshipPendingTierChangeChangesTier { pub from: SponsorshipTier, } -impl From<&SponsorshipPendingTierChangeChangesTier> for SponsorshipPendingTierChangeChangesTier { +impl ::std::convert::From<&SponsorshipPendingTierChangeChangesTier> + for SponsorshipPendingTierChangeChangesTier +{ fn from(value: &SponsorshipPendingTierChangeChangesTier) -> Self { value.clone() } @@ -90022,7 +91033,9 @@ pub struct SponsorshipPendingTierChangeSponsorship { pub sponsorable: User, pub tier: SponsorshipTier, } -impl From<&SponsorshipPendingTierChangeSponsorship> for SponsorshipPendingTierChangeSponsorship { +impl ::std::convert::From<&SponsorshipPendingTierChangeSponsorship> + for SponsorshipPendingTierChangeSponsorship +{ fn from(value: &SponsorshipPendingTierChangeSponsorship) -> Self { value.clone() } @@ -90089,7 +91102,7 @@ pub struct SponsorshipTier { pub name: ::std::string::String, pub node_id: ::std::string::String, } -impl From<&SponsorshipTier> for SponsorshipTier { +impl ::std::convert::From<&SponsorshipTier> for SponsorshipTier { fn from(value: &SponsorshipTier) -> Self { value.clone() } @@ -90185,7 +91198,7 @@ pub struct SponsorshipTierChanged { pub sender: User, pub sponsorship: SponsorshipTierChangedSponsorship, } -impl From<&SponsorshipTierChanged> for SponsorshipTierChanged { +impl ::std::convert::From<&SponsorshipTierChanged> for SponsorshipTierChanged { fn from(value: &SponsorshipTierChanged) -> Self { value.clone() } @@ -90219,7 +91232,7 @@ pub enum SponsorshipTierChangedAction { #[serde(rename = "tier_changed")] TierChanged, } -impl From<&SponsorshipTierChangedAction> for SponsorshipTierChangedAction { +impl ::std::convert::From<&SponsorshipTierChangedAction> for SponsorshipTierChangedAction { fn from(value: &SponsorshipTierChangedAction) -> Self { value.clone() } @@ -90231,7 +91244,7 @@ impl ::std::fmt::Display for SponsorshipTierChangedAction { } } } -impl std::str::FromStr for SponsorshipTierChangedAction { +impl ::std::str::FromStr for SponsorshipTierChangedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -90240,13 +91253,13 @@ impl std::str::FromStr for SponsorshipTierChangedAction { } } } -impl std::convert::TryFrom<&str> for SponsorshipTierChangedAction { +impl ::std::convert::TryFrom<&str> for SponsorshipTierChangedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for SponsorshipTierChangedAction { +impl ::std::convert::TryFrom<&::std::string::String> for SponsorshipTierChangedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -90254,7 +91267,7 @@ impl std::convert::TryFrom<&::std::string::String> for SponsorshipTierChangedAct value.parse() } } -impl std::convert::TryFrom<::std::string::String> for SponsorshipTierChangedAction { +impl ::std::convert::TryFrom<::std::string::String> for SponsorshipTierChangedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -90295,7 +91308,7 @@ impl std::convert::TryFrom<::std::string::String> for SponsorshipTierChangedActi pub struct SponsorshipTierChangedChanges { pub tier: SponsorshipTierChangedChangesTier, } -impl From<&SponsorshipTierChangedChanges> for SponsorshipTierChangedChanges { +impl ::std::convert::From<&SponsorshipTierChangedChanges> for SponsorshipTierChangedChanges { fn from(value: &SponsorshipTierChangedChanges) -> Self { value.clone() } @@ -90324,7 +91337,9 @@ impl From<&SponsorshipTierChangedChanges> for SponsorshipTierChangedChanges { pub struct SponsorshipTierChangedChangesTier { pub from: SponsorshipTier, } -impl From<&SponsorshipTierChangedChangesTier> for SponsorshipTierChangedChangesTier { +impl ::std::convert::From<&SponsorshipTierChangedChangesTier> + for SponsorshipTierChangedChangesTier +{ fn from(value: &SponsorshipTierChangedChangesTier) -> Self { value.clone() } @@ -90378,7 +91393,9 @@ pub struct SponsorshipTierChangedSponsorship { pub sponsorable: User, pub tier: SponsorshipTier, } -impl From<&SponsorshipTierChangedSponsorship> for SponsorshipTierChangedSponsorship { +impl ::std::convert::From<&SponsorshipTierChangedSponsorship> + for SponsorshipTierChangedSponsorship +{ fn from(value: &SponsorshipTierChangedSponsorship) -> Self { value.clone() } @@ -90439,7 +91456,7 @@ pub struct StarCreated { #[doc = "The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action."] pub starred_at: ::std::string::String, } -impl From<&StarCreated> for StarCreated { +impl ::std::convert::From<&StarCreated> for StarCreated { fn from(value: &StarCreated) -> Self { value.clone() } @@ -90473,7 +91490,7 @@ pub enum StarCreatedAction { #[serde(rename = "created")] Created, } -impl From<&StarCreatedAction> for StarCreatedAction { +impl ::std::convert::From<&StarCreatedAction> for StarCreatedAction { fn from(value: &StarCreatedAction) -> Self { value.clone() } @@ -90485,7 +91502,7 @@ impl ::std::fmt::Display for StarCreatedAction { } } } -impl std::str::FromStr for StarCreatedAction { +impl ::std::str::FromStr for StarCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -90494,13 +91511,13 @@ impl std::str::FromStr for StarCreatedAction { } } } -impl std::convert::TryFrom<&str> for StarCreatedAction { +impl ::std::convert::TryFrom<&str> for StarCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for StarCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for StarCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -90508,7 +91525,7 @@ impl std::convert::TryFrom<&::std::string::String> for StarCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for StarCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for StarCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -90572,7 +91589,7 @@ pub struct StarDeleted { #[doc = "The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action."] pub starred_at: (), } -impl From<&StarDeleted> for StarDeleted { +impl ::std::convert::From<&StarDeleted> for StarDeleted { fn from(value: &StarDeleted) -> Self { value.clone() } @@ -90606,7 +91623,7 @@ pub enum StarDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&StarDeletedAction> for StarDeletedAction { +impl ::std::convert::From<&StarDeletedAction> for StarDeletedAction { fn from(value: &StarDeletedAction) -> Self { value.clone() } @@ -90618,7 +91635,7 @@ impl ::std::fmt::Display for StarDeletedAction { } } } -impl std::str::FromStr for StarDeletedAction { +impl ::std::str::FromStr for StarDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -90627,13 +91644,13 @@ impl std::str::FromStr for StarDeletedAction { } } } -impl std::convert::TryFrom<&str> for StarDeletedAction { +impl ::std::convert::TryFrom<&str> for StarDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for StarDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for StarDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -90641,7 +91658,7 @@ impl std::convert::TryFrom<&::std::string::String> for StarDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for StarDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for StarDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -90672,17 +91689,17 @@ pub enum StarEvent { Created(StarCreated), Deleted(StarDeleted), } -impl From<&StarEvent> for StarEvent { +impl ::std::convert::From<&StarEvent> for StarEvent { fn from(value: &StarEvent) -> Self { value.clone() } } -impl From for StarEvent { +impl ::std::convert::From for StarEvent { fn from(value: StarCreated) -> Self { Self::Created(value) } } -impl From for StarEvent { +impl ::std::convert::From for StarEvent { fn from(value: StarDeleted) -> Self { Self::Deleted(value) } @@ -91052,7 +92069,7 @@ pub struct StatusEvent { pub target_url: ::std::option::Option<::std::string::String>, pub updated_at: ::std::string::String, } -impl From<&StatusEvent> for StatusEvent { +impl ::std::convert::From<&StatusEvent> for StatusEvent { fn from(value: &StatusEvent) -> Self { value.clone() } @@ -91105,7 +92122,7 @@ pub struct StatusEventBranchesItem { pub name: ::std::string::String, pub protected: bool, } -impl From<&StatusEventBranchesItem> for StatusEventBranchesItem { +impl ::std::convert::From<&StatusEventBranchesItem> for StatusEventBranchesItem { fn from(value: &StatusEventBranchesItem) -> Self { value.clone() } @@ -91140,7 +92157,7 @@ pub struct StatusEventBranchesItemCommit { pub sha: ::std::string::String, pub url: ::std::string::String, } -impl From<&StatusEventBranchesItemCommit> for StatusEventBranchesItemCommit { +impl ::std::convert::From<&StatusEventBranchesItemCommit> for StatusEventBranchesItemCommit { fn from(value: &StatusEventBranchesItemCommit) -> Self { value.clone() } @@ -91370,7 +92387,7 @@ pub struct StatusEventCommit { pub sha: ::std::string::String, pub url: ::std::string::String, } -impl From<&StatusEventCommit> for StatusEventCommit { +impl ::std::convert::From<&StatusEventCommit> for StatusEventCommit { fn from(value: &StatusEventCommit) -> Self { value.clone() } @@ -91518,7 +92535,7 @@ pub struct StatusEventCommitCommit { pub url: ::std::string::String, pub verification: StatusEventCommitCommitVerification, } -impl From<&StatusEventCommitCommit> for StatusEventCommitCommit { +impl ::std::convert::From<&StatusEventCommitCommit> for StatusEventCommitCommit { fn from(value: &StatusEventCommitCommit) -> Self { value.clone() } @@ -91560,7 +92577,7 @@ pub struct StatusEventCommitCommitAuthor { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub username: ::std::option::Option<::std::string::String>, } -impl From<&StatusEventCommitCommitAuthor> for StatusEventCommitCommitAuthor { +impl ::std::convert::From<&StatusEventCommitCommitAuthor> for StatusEventCommitCommitAuthor { fn from(value: &StatusEventCommitCommitAuthor) -> Self { value.clone() } @@ -91602,7 +92619,7 @@ pub struct StatusEventCommitCommitCommitter { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub username: ::std::option::Option<::std::string::String>, } -impl From<&StatusEventCommitCommitCommitter> for StatusEventCommitCommitCommitter { +impl ::std::convert::From<&StatusEventCommitCommitCommitter> for StatusEventCommitCommitCommitter { fn from(value: &StatusEventCommitCommitCommitter) -> Self { value.clone() } @@ -91637,7 +92654,7 @@ pub struct StatusEventCommitCommitTree { pub sha: ::std::string::String, pub url: ::std::string::String, } -impl From<&StatusEventCommitCommitTree> for StatusEventCommitCommitTree { +impl ::std::convert::From<&StatusEventCommitCommitTree> for StatusEventCommitCommitTree { fn from(value: &StatusEventCommitCommitTree) -> Self { value.clone() } @@ -91702,7 +92719,9 @@ pub struct StatusEventCommitCommitVerification { pub signature: ::std::option::Option<::std::string::String>, pub verified: bool, } -impl From<&StatusEventCommitCommitVerification> for StatusEventCommitCommitVerification { +impl ::std::convert::From<&StatusEventCommitCommitVerification> + for StatusEventCommitCommitVerification +{ fn from(value: &StatusEventCommitCommitVerification) -> Self { value.clone() } @@ -91772,7 +92791,7 @@ pub enum StatusEventCommitCommitVerificationReason { #[serde(rename = "valid")] Valid, } -impl From<&StatusEventCommitCommitVerificationReason> +impl ::std::convert::From<&StatusEventCommitCommitVerificationReason> for StatusEventCommitCommitVerificationReason { fn from(value: &StatusEventCommitCommitVerificationReason) -> Self { @@ -91798,7 +92817,7 @@ impl ::std::fmt::Display for StatusEventCommitCommitVerificationReason { } } } -impl std::str::FromStr for StatusEventCommitCommitVerificationReason { +impl ::std::str::FromStr for StatusEventCommitCommitVerificationReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -91819,13 +92838,13 @@ impl std::str::FromStr for StatusEventCommitCommitVerificationReason { } } } -impl std::convert::TryFrom<&str> for StatusEventCommitCommitVerificationReason { +impl ::std::convert::TryFrom<&str> for StatusEventCommitCommitVerificationReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for StatusEventCommitCommitVerificationReason { +impl ::std::convert::TryFrom<&::std::string::String> for StatusEventCommitCommitVerificationReason { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -91833,7 +92852,7 @@ impl std::convert::TryFrom<&::std::string::String> for StatusEventCommitCommitVe value.parse() } } -impl std::convert::TryFrom<::std::string::String> for StatusEventCommitCommitVerificationReason { +impl ::std::convert::TryFrom<::std::string::String> for StatusEventCommitCommitVerificationReason { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -91877,7 +92896,7 @@ pub struct StatusEventCommitParentsItem { pub sha: ::std::string::String, pub url: ::std::string::String, } -impl From<&StatusEventCommitParentsItem> for StatusEventCommitParentsItem { +impl ::std::convert::From<&StatusEventCommitParentsItem> for StatusEventCommitParentsItem { fn from(value: &StatusEventCommitParentsItem) -> Self { value.clone() } @@ -91921,7 +92940,7 @@ pub enum StatusEventState { #[serde(rename = "error")] Error, } -impl From<&StatusEventState> for StatusEventState { +impl ::std::convert::From<&StatusEventState> for StatusEventState { fn from(value: &StatusEventState) -> Self { value.clone() } @@ -91936,7 +92955,7 @@ impl ::std::fmt::Display for StatusEventState { } } } -impl std::str::FromStr for StatusEventState { +impl ::std::str::FromStr for StatusEventState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -91948,13 +92967,13 @@ impl std::str::FromStr for StatusEventState { } } } -impl std::convert::TryFrom<&str> for StatusEventState { +impl ::std::convert::TryFrom<&str> for StatusEventState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for StatusEventState { +impl ::std::convert::TryFrom<&::std::string::String> for StatusEventState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -91962,7 +92981,7 @@ impl std::convert::TryFrom<&::std::string::String> for StatusEventState { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for StatusEventState { +impl ::std::convert::TryFrom<::std::string::String> for StatusEventState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -92143,7 +93162,7 @@ pub struct Team { #[doc = "URL for the team"] pub url: ::std::string::String, } -impl From<&Team> for Team { +impl ::std::convert::From<&Team> for Team { fn from(value: &Team) -> Self { value.clone() } @@ -92194,7 +93213,7 @@ pub struct TeamAddEvent { pub sender: User, pub team: Team, } -impl From<&TeamAddEvent> for TeamAddEvent { +impl ::std::convert::From<&TeamAddEvent> for TeamAddEvent { fn from(value: &TeamAddEvent) -> Self { value.clone() } @@ -92253,7 +93272,7 @@ pub struct TeamAddedToRepository { pub sender: User, pub team: Team, } -impl From<&TeamAddedToRepository> for TeamAddedToRepository { +impl ::std::convert::From<&TeamAddedToRepository> for TeamAddedToRepository { fn from(value: &TeamAddedToRepository) -> Self { value.clone() } @@ -92287,7 +93306,7 @@ pub enum TeamAddedToRepositoryAction { #[serde(rename = "added_to_repository")] AddedToRepository, } -impl From<&TeamAddedToRepositoryAction> for TeamAddedToRepositoryAction { +impl ::std::convert::From<&TeamAddedToRepositoryAction> for TeamAddedToRepositoryAction { fn from(value: &TeamAddedToRepositoryAction) -> Self { value.clone() } @@ -92299,7 +93318,7 @@ impl ::std::fmt::Display for TeamAddedToRepositoryAction { } } } -impl std::str::FromStr for TeamAddedToRepositoryAction { +impl ::std::str::FromStr for TeamAddedToRepositoryAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -92308,13 +93327,13 @@ impl std::str::FromStr for TeamAddedToRepositoryAction { } } } -impl std::convert::TryFrom<&str> for TeamAddedToRepositoryAction { +impl ::std::convert::TryFrom<&str> for TeamAddedToRepositoryAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamAddedToRepositoryAction { +impl ::std::convert::TryFrom<&::std::string::String> for TeamAddedToRepositoryAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -92322,7 +93341,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamAddedToRepositoryActi value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamAddedToRepositoryAction { +impl ::std::convert::TryFrom<::std::string::String> for TeamAddedToRepositoryAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -92384,7 +93403,7 @@ pub struct TeamCreated { pub sender: User, pub team: Team, } -impl From<&TeamCreated> for TeamCreated { +impl ::std::convert::From<&TeamCreated> for TeamCreated { fn from(value: &TeamCreated) -> Self { value.clone() } @@ -92418,7 +93437,7 @@ pub enum TeamCreatedAction { #[serde(rename = "created")] Created, } -impl From<&TeamCreatedAction> for TeamCreatedAction { +impl ::std::convert::From<&TeamCreatedAction> for TeamCreatedAction { fn from(value: &TeamCreatedAction) -> Self { value.clone() } @@ -92430,7 +93449,7 @@ impl ::std::fmt::Display for TeamCreatedAction { } } } -impl std::str::FromStr for TeamCreatedAction { +impl ::std::str::FromStr for TeamCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -92439,13 +93458,13 @@ impl std::str::FromStr for TeamCreatedAction { } } } -impl std::convert::TryFrom<&str> for TeamCreatedAction { +impl ::std::convert::TryFrom<&str> for TeamCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamCreatedAction { +impl ::std::convert::TryFrom<&::std::string::String> for TeamCreatedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -92453,7 +93472,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamCreatedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamCreatedAction { +impl ::std::convert::TryFrom<::std::string::String> for TeamCreatedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -92515,7 +93534,7 @@ pub struct TeamDeleted { pub sender: User, pub team: Team, } -impl From<&TeamDeleted> for TeamDeleted { +impl ::std::convert::From<&TeamDeleted> for TeamDeleted { fn from(value: &TeamDeleted) -> Self { value.clone() } @@ -92549,7 +93568,7 @@ pub enum TeamDeletedAction { #[serde(rename = "deleted")] Deleted, } -impl From<&TeamDeletedAction> for TeamDeletedAction { +impl ::std::convert::From<&TeamDeletedAction> for TeamDeletedAction { fn from(value: &TeamDeletedAction) -> Self { value.clone() } @@ -92561,7 +93580,7 @@ impl ::std::fmt::Display for TeamDeletedAction { } } } -impl std::str::FromStr for TeamDeletedAction { +impl ::std::str::FromStr for TeamDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -92570,13 +93589,13 @@ impl std::str::FromStr for TeamDeletedAction { } } } -impl std::convert::TryFrom<&str> for TeamDeletedAction { +impl ::std::convert::TryFrom<&str> for TeamDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamDeletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for TeamDeletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -92584,7 +93603,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamDeletedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamDeletedAction { +impl ::std::convert::TryFrom<::std::string::String> for TeamDeletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -92730,7 +93749,7 @@ pub struct TeamEdited { pub sender: User, pub team: Team, } -impl From<&TeamEdited> for TeamEdited { +impl ::std::convert::From<&TeamEdited> for TeamEdited { fn from(value: &TeamEdited) -> Self { value.clone() } @@ -92764,7 +93783,7 @@ pub enum TeamEditedAction { #[serde(rename = "edited")] Edited, } -impl From<&TeamEditedAction> for TeamEditedAction { +impl ::std::convert::From<&TeamEditedAction> for TeamEditedAction { fn from(value: &TeamEditedAction) -> Self { value.clone() } @@ -92776,7 +93795,7 @@ impl ::std::fmt::Display for TeamEditedAction { } } } -impl std::str::FromStr for TeamEditedAction { +impl ::std::str::FromStr for TeamEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -92785,13 +93804,13 @@ impl std::str::FromStr for TeamEditedAction { } } } -impl std::convert::TryFrom<&str> for TeamEditedAction { +impl ::std::convert::TryFrom<&str> for TeamEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamEditedAction { +impl ::std::convert::TryFrom<&::std::string::String> for TeamEditedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -92799,7 +93818,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamEditedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamEditedAction { +impl ::std::convert::TryFrom<::std::string::String> for TeamEditedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -92908,11 +93927,21 @@ pub struct TeamEditedChanges { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository: ::std::option::Option, } -impl From<&TeamEditedChanges> for TeamEditedChanges { +impl ::std::convert::From<&TeamEditedChanges> for TeamEditedChanges { fn from(value: &TeamEditedChanges) -> Self { value.clone() } } +impl ::std::default::Default for TeamEditedChanges { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + privacy: Default::default(), + repository: Default::default(), + } + } +} #[doc = "TeamEditedChangesDescription"] #[doc = r""] #[doc = r"
JSON schema"] @@ -92939,7 +93968,7 @@ pub struct TeamEditedChangesDescription { #[doc = "The previous version of the description if the action was `edited`."] pub from: ::std::string::String, } -impl From<&TeamEditedChangesDescription> for TeamEditedChangesDescription { +impl ::std::convert::From<&TeamEditedChangesDescription> for TeamEditedChangesDescription { fn from(value: &TeamEditedChangesDescription) -> Self { value.clone() } @@ -92970,7 +93999,7 @@ pub struct TeamEditedChangesName { #[doc = "The previous version of the name if the action was `edited`."] pub from: ::std::string::String, } -impl From<&TeamEditedChangesName> for TeamEditedChangesName { +impl ::std::convert::From<&TeamEditedChangesName> for TeamEditedChangesName { fn from(value: &TeamEditedChangesName) -> Self { value.clone() } @@ -93001,7 +94030,7 @@ pub struct TeamEditedChangesPrivacy { #[doc = "The previous version of the team's privacy if the action was `edited`."] pub from: ::std::string::String, } -impl From<&TeamEditedChangesPrivacy> for TeamEditedChangesPrivacy { +impl ::std::convert::From<&TeamEditedChangesPrivacy> for TeamEditedChangesPrivacy { fn from(value: &TeamEditedChangesPrivacy) -> Self { value.clone() } @@ -93054,7 +94083,7 @@ impl From<&TeamEditedChangesPrivacy> for TeamEditedChangesPrivacy { pub struct TeamEditedChangesRepository { pub permissions: TeamEditedChangesRepositoryPermissions, } -impl From<&TeamEditedChangesRepository> for TeamEditedChangesRepository { +impl ::std::convert::From<&TeamEditedChangesRepository> for TeamEditedChangesRepository { fn from(value: &TeamEditedChangesRepository) -> Self { value.clone() } @@ -93098,7 +94127,9 @@ impl From<&TeamEditedChangesRepository> for TeamEditedChangesRepository { pub struct TeamEditedChangesRepositoryPermissions { pub from: TeamEditedChangesRepositoryPermissionsFrom, } -impl From<&TeamEditedChangesRepositoryPermissions> for TeamEditedChangesRepositoryPermissions { +impl ::std::convert::From<&TeamEditedChangesRepositoryPermissions> + for TeamEditedChangesRepositoryPermissions +{ fn from(value: &TeamEditedChangesRepositoryPermissions) -> Self { value.clone() } @@ -93141,13 +94172,22 @@ pub struct TeamEditedChangesRepositoryPermissionsFrom { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub push: ::std::option::Option, } -impl From<&TeamEditedChangesRepositoryPermissionsFrom> +impl ::std::convert::From<&TeamEditedChangesRepositoryPermissionsFrom> for TeamEditedChangesRepositoryPermissionsFrom { fn from(value: &TeamEditedChangesRepositoryPermissionsFrom) -> Self { value.clone() } } +impl ::std::default::Default for TeamEditedChangesRepositoryPermissionsFrom { + fn default() -> Self { + Self { + admin: Default::default(), + pull: Default::default(), + push: Default::default(), + } + } +} #[doc = "TeamEvent"] #[doc = r""] #[doc = r"
JSON schema"] @@ -93183,32 +94223,32 @@ pub enum TeamEvent { Edited(TeamEdited), RemovedFromRepository(TeamRemovedFromRepository), } -impl From<&TeamEvent> for TeamEvent { +impl ::std::convert::From<&TeamEvent> for TeamEvent { fn from(value: &TeamEvent) -> Self { value.clone() } } -impl From for TeamEvent { +impl ::std::convert::From for TeamEvent { fn from(value: TeamAddedToRepository) -> Self { Self::AddedToRepository(value) } } -impl From for TeamEvent { +impl ::std::convert::From for TeamEvent { fn from(value: TeamCreated) -> Self { Self::Created(value) } } -impl From for TeamEvent { +impl ::std::convert::From for TeamEvent { fn from(value: TeamDeleted) -> Self { Self::Deleted(value) } } -impl From for TeamEvent { +impl ::std::convert::From for TeamEvent { fn from(value: TeamEdited) -> Self { Self::Edited(value) } } -impl From for TeamEvent { +impl ::std::convert::From for TeamEvent { fn from(value: TeamRemovedFromRepository) -> Self { Self::RemovedFromRepository(value) } @@ -93309,7 +94349,7 @@ pub struct TeamParent { #[doc = "URL for the team"] pub url: ::std::string::String, } -impl From<&TeamParent> for TeamParent { +impl ::std::convert::From<&TeamParent> for TeamParent { fn from(value: &TeamParent) -> Self { value.clone() } @@ -93349,7 +94389,7 @@ pub enum TeamParentPrivacy { #[serde(rename = "secret")] Secret, } -impl From<&TeamParentPrivacy> for TeamParentPrivacy { +impl ::std::convert::From<&TeamParentPrivacy> for TeamParentPrivacy { fn from(value: &TeamParentPrivacy) -> Self { value.clone() } @@ -93363,7 +94403,7 @@ impl ::std::fmt::Display for TeamParentPrivacy { } } } -impl std::str::FromStr for TeamParentPrivacy { +impl ::std::str::FromStr for TeamParentPrivacy { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -93374,13 +94414,13 @@ impl std::str::FromStr for TeamParentPrivacy { } } } -impl std::convert::TryFrom<&str> for TeamParentPrivacy { +impl ::std::convert::TryFrom<&str> for TeamParentPrivacy { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamParentPrivacy { +impl ::std::convert::TryFrom<&::std::string::String> for TeamParentPrivacy { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -93388,7 +94428,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamParentPrivacy { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamParentPrivacy { +impl ::std::convert::TryFrom<::std::string::String> for TeamParentPrivacy { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -93431,7 +94471,7 @@ pub enum TeamPrivacy { #[serde(rename = "secret")] Secret, } -impl From<&TeamPrivacy> for TeamPrivacy { +impl ::std::convert::From<&TeamPrivacy> for TeamPrivacy { fn from(value: &TeamPrivacy) -> Self { value.clone() } @@ -93445,7 +94485,7 @@ impl ::std::fmt::Display for TeamPrivacy { } } } -impl std::str::FromStr for TeamPrivacy { +impl ::std::str::FromStr for TeamPrivacy { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -93456,13 +94496,13 @@ impl std::str::FromStr for TeamPrivacy { } } } -impl std::convert::TryFrom<&str> for TeamPrivacy { +impl ::std::convert::TryFrom<&str> for TeamPrivacy { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamPrivacy { +impl ::std::convert::TryFrom<&::std::string::String> for TeamPrivacy { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -93470,7 +94510,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamPrivacy { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamPrivacy { +impl ::std::convert::TryFrom<::std::string::String> for TeamPrivacy { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -93532,7 +94572,7 @@ pub struct TeamRemovedFromRepository { pub sender: User, pub team: Team, } -impl From<&TeamRemovedFromRepository> for TeamRemovedFromRepository { +impl ::std::convert::From<&TeamRemovedFromRepository> for TeamRemovedFromRepository { fn from(value: &TeamRemovedFromRepository) -> Self { value.clone() } @@ -93566,7 +94606,7 @@ pub enum TeamRemovedFromRepositoryAction { #[serde(rename = "removed_from_repository")] RemovedFromRepository, } -impl From<&TeamRemovedFromRepositoryAction> for TeamRemovedFromRepositoryAction { +impl ::std::convert::From<&TeamRemovedFromRepositoryAction> for TeamRemovedFromRepositoryAction { fn from(value: &TeamRemovedFromRepositoryAction) -> Self { value.clone() } @@ -93578,7 +94618,7 @@ impl ::std::fmt::Display for TeamRemovedFromRepositoryAction { } } } -impl std::str::FromStr for TeamRemovedFromRepositoryAction { +impl ::std::str::FromStr for TeamRemovedFromRepositoryAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -93587,13 +94627,13 @@ impl std::str::FromStr for TeamRemovedFromRepositoryAction { } } } -impl std::convert::TryFrom<&str> for TeamRemovedFromRepositoryAction { +impl ::std::convert::TryFrom<&str> for TeamRemovedFromRepositoryAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for TeamRemovedFromRepositoryAction { +impl ::std::convert::TryFrom<&::std::string::String> for TeamRemovedFromRepositoryAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -93601,7 +94641,7 @@ impl std::convert::TryFrom<&::std::string::String> for TeamRemovedFromRepository value.parse() } } -impl std::convert::TryFrom<::std::string::String> for TeamRemovedFromRepositoryAction { +impl ::std::convert::TryFrom<::std::string::String> for TeamRemovedFromRepositoryAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -93751,7 +94791,7 @@ pub struct User { pub type_: UserType, pub url: ::std::string::String, } -impl From<&User> for User { +impl ::std::convert::From<&User> for User { fn from(value: &User) -> Self { value.clone() } @@ -93788,7 +94828,7 @@ pub enum UserType { User, Organization, } -impl From<&UserType> for UserType { +impl ::std::convert::From<&UserType> for UserType { fn from(value: &UserType) -> Self { value.clone() } @@ -93802,7 +94842,7 @@ impl ::std::fmt::Display for UserType { } } } -impl std::str::FromStr for UserType { +impl ::std::str::FromStr for UserType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -93813,13 +94853,13 @@ impl std::str::FromStr for UserType { } } } -impl std::convert::TryFrom<&str> for UserType { +impl ::std::convert::TryFrom<&str> for UserType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for UserType { +impl ::std::convert::TryFrom<&::std::string::String> for UserType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -93827,7 +94867,7 @@ impl std::convert::TryFrom<&::std::string::String> for UserType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for UserType { +impl ::std::convert::TryFrom<::std::string::String> for UserType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -93857,17 +94897,17 @@ impl ::std::ops::Deref for WatchEvent { &self.0 } } -impl From for WatchStarted { +impl ::std::convert::From for WatchStarted { fn from(value: WatchEvent) -> Self { value.0 } } -impl From<&WatchEvent> for WatchEvent { +impl ::std::convert::From<&WatchEvent> for WatchEvent { fn from(value: &WatchEvent) -> Self { value.clone() } } -impl From for WatchEvent { +impl ::std::convert::From for WatchEvent { fn from(value: WatchStarted) -> Self { Self(value) } @@ -93921,7 +94961,7 @@ pub struct WatchStarted { pub repository: Repository, pub sender: User, } -impl From<&WatchStarted> for WatchStarted { +impl ::std::convert::From<&WatchStarted> for WatchStarted { fn from(value: &WatchStarted) -> Self { value.clone() } @@ -93955,7 +94995,7 @@ pub enum WatchStartedAction { #[serde(rename = "started")] Started, } -impl From<&WatchStartedAction> for WatchStartedAction { +impl ::std::convert::From<&WatchStartedAction> for WatchStartedAction { fn from(value: &WatchStartedAction) -> Self { value.clone() } @@ -93967,7 +95007,7 @@ impl ::std::fmt::Display for WatchStartedAction { } } } -impl std::str::FromStr for WatchStartedAction { +impl ::std::str::FromStr for WatchStartedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -93976,13 +95016,13 @@ impl std::str::FromStr for WatchStartedAction { } } } -impl std::convert::TryFrom<&str> for WatchStartedAction { +impl ::std::convert::TryFrom<&str> for WatchStartedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WatchStartedAction { +impl ::std::convert::TryFrom<&::std::string::String> for WatchStartedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -93990,7 +95030,7 @@ impl std::convert::TryFrom<&::std::string::String> for WatchStartedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WatchStartedAction { +impl ::std::convert::TryFrom<::std::string::String> for WatchStartedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -94081,17 +95121,17 @@ pub enum WebhookEvents { Variant0(::std::vec::Vec), Variant1([::std::string::String; 1usize]), } -impl From<&WebhookEvents> for WebhookEvents { +impl ::std::convert::From<&WebhookEvents> for WebhookEvents { fn from(value: &WebhookEvents) -> Self { value.clone() } } -impl From<::std::vec::Vec> for WebhookEvents { +impl ::std::convert::From<::std::vec::Vec> for WebhookEvents { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From<[::std::string::String; 1usize]> for WebhookEvents { +impl ::std::convert::From<[::std::string::String; 1usize]> for WebhookEvents { fn from(value: [::std::string::String; 1usize]) -> Self { Self::Variant1(value) } @@ -94263,7 +95303,7 @@ pub enum WebhookEventsVariant0Item { #[serde(rename = "workflow_run")] WorkflowRun, } -impl From<&WebhookEventsVariant0Item> for WebhookEventsVariant0Item { +impl ::std::convert::From<&WebhookEventsVariant0Item> for WebhookEventsVariant0Item { fn from(value: &WebhookEventsVariant0Item) -> Self { value.clone() } @@ -94321,7 +95361,7 @@ impl ::std::fmt::Display for WebhookEventsVariant0Item { } } } -impl std::str::FromStr for WebhookEventsVariant0Item { +impl ::std::str::FromStr for WebhookEventsVariant0Item { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -94376,13 +95416,13 @@ impl std::str::FromStr for WebhookEventsVariant0Item { } } } -impl std::convert::TryFrom<&str> for WebhookEventsVariant0Item { +impl ::std::convert::TryFrom<&str> for WebhookEventsVariant0Item { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WebhookEventsVariant0Item { +impl ::std::convert::TryFrom<&::std::string::String> for WebhookEventsVariant0Item { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -94390,7 +95430,7 @@ impl std::convert::TryFrom<&::std::string::String> for WebhookEventsVariant0Item value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WebhookEventsVariant0Item { +impl ::std::convert::TryFrom<::std::string::String> for WebhookEventsVariant0Item { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -94472,7 +95512,7 @@ pub struct Workflow { pub updated_at: ::std::string::String, pub url: ::std::string::String, } -impl From<&Workflow> for Workflow { +impl ::std::convert::From<&Workflow> for Workflow { fn from(value: &Workflow) -> Self { value.clone() } @@ -94543,7 +95583,7 @@ pub struct WorkflowDispatchEvent { pub sender: User, pub workflow: ::std::string::String, } -impl From<&WorkflowDispatchEvent> for WorkflowDispatchEvent { +impl ::std::convert::From<&WorkflowDispatchEvent> for WorkflowDispatchEvent { fn from(value: &WorkflowDispatchEvent) -> Self { value.clone() } @@ -94671,7 +95711,7 @@ pub struct WorkflowJob { pub steps: ::std::vec::Vec, pub url: ::std::string::String, } -impl From<&WorkflowJob> for WorkflowJob { +impl ::std::convert::From<&WorkflowJob> for WorkflowJob { fn from(value: &WorkflowJob) -> Self { value.clone() } @@ -94750,7 +95790,7 @@ pub struct WorkflowJobCompleted { pub sender: User, pub workflow_job: WorkflowJobCompletedWorkflowJob, } -impl From<&WorkflowJobCompleted> for WorkflowJobCompleted { +impl ::std::convert::From<&WorkflowJobCompleted> for WorkflowJobCompleted { fn from(value: &WorkflowJobCompleted) -> Self { value.clone() } @@ -94784,7 +95824,7 @@ pub enum WorkflowJobCompletedAction { #[serde(rename = "completed")] Completed, } -impl From<&WorkflowJobCompletedAction> for WorkflowJobCompletedAction { +impl ::std::convert::From<&WorkflowJobCompletedAction> for WorkflowJobCompletedAction { fn from(value: &WorkflowJobCompletedAction) -> Self { value.clone() } @@ -94796,7 +95836,7 @@ impl ::std::fmt::Display for WorkflowJobCompletedAction { } } } -impl std::str::FromStr for WorkflowJobCompletedAction { +impl ::std::str::FromStr for WorkflowJobCompletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -94805,13 +95845,13 @@ impl std::str::FromStr for WorkflowJobCompletedAction { } } } -impl std::convert::TryFrom<&str> for WorkflowJobCompletedAction { +impl ::std::convert::TryFrom<&str> for WorkflowJobCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -94819,7 +95859,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobCompletedAction { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobCompletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -94876,7 +95916,7 @@ pub struct WorkflowJobCompletedWorkflowJob { pub steps: ::std::vec::Vec, pub url: ::std::string::String, } -impl From<&WorkflowJobCompletedWorkflowJob> for WorkflowJobCompletedWorkflowJob { +impl ::std::convert::From<&WorkflowJobCompletedWorkflowJob> for WorkflowJobCompletedWorkflowJob { fn from(value: &WorkflowJobCompletedWorkflowJob) -> Self { value.clone() } @@ -94913,7 +95953,7 @@ pub enum WorkflowJobCompletedWorkflowJobConclusion { #[serde(rename = "failure")] Failure, } -impl From<&WorkflowJobCompletedWorkflowJobConclusion> +impl ::std::convert::From<&WorkflowJobCompletedWorkflowJobConclusion> for WorkflowJobCompletedWorkflowJobConclusion { fn from(value: &WorkflowJobCompletedWorkflowJobConclusion) -> Self { @@ -94928,7 +95968,7 @@ impl ::std::fmt::Display for WorkflowJobCompletedWorkflowJobConclusion { } } } -impl std::str::FromStr for WorkflowJobCompletedWorkflowJobConclusion { +impl ::std::str::FromStr for WorkflowJobCompletedWorkflowJobConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -94938,13 +95978,13 @@ impl std::str::FromStr for WorkflowJobCompletedWorkflowJobConclusion { } } } -impl std::convert::TryFrom<&str> for WorkflowJobCompletedWorkflowJobConclusion { +impl ::std::convert::TryFrom<&str> for WorkflowJobCompletedWorkflowJobConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedWorkflowJobConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedWorkflowJobConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -94952,7 +95992,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedWorkf value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobCompletedWorkflowJobConclusion { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobCompletedWorkflowJobConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -94995,7 +96035,9 @@ pub enum WorkflowJobCompletedWorkflowJobStatus { #[serde(rename = "completed")] Completed, } -impl From<&WorkflowJobCompletedWorkflowJobStatus> for WorkflowJobCompletedWorkflowJobStatus { +impl ::std::convert::From<&WorkflowJobCompletedWorkflowJobStatus> + for WorkflowJobCompletedWorkflowJobStatus +{ fn from(value: &WorkflowJobCompletedWorkflowJobStatus) -> Self { value.clone() } @@ -95009,7 +96051,7 @@ impl ::std::fmt::Display for WorkflowJobCompletedWorkflowJobStatus { } } } -impl std::str::FromStr for WorkflowJobCompletedWorkflowJobStatus { +impl ::std::str::FromStr for WorkflowJobCompletedWorkflowJobStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95020,13 +96062,13 @@ impl std::str::FromStr for WorkflowJobCompletedWorkflowJobStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowJobCompletedWorkflowJobStatus { +impl ::std::convert::TryFrom<&str> for WorkflowJobCompletedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedWorkflowJobStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95034,7 +96076,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobCompletedWorkf value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobCompletedWorkflowJobStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobCompletedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -95074,7 +96116,7 @@ pub enum WorkflowJobConclusion { #[serde(rename = "failure")] Failure, } -impl From<&WorkflowJobConclusion> for WorkflowJobConclusion { +impl ::std::convert::From<&WorkflowJobConclusion> for WorkflowJobConclusion { fn from(value: &WorkflowJobConclusion) -> Self { value.clone() } @@ -95087,7 +96129,7 @@ impl ::std::fmt::Display for WorkflowJobConclusion { } } } -impl std::str::FromStr for WorkflowJobConclusion { +impl ::std::str::FromStr for WorkflowJobConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95097,13 +96139,13 @@ impl std::str::FromStr for WorkflowJobConclusion { } } } -impl std::convert::TryFrom<&str> for WorkflowJobConclusion { +impl ::std::convert::TryFrom<&str> for WorkflowJobConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95111,7 +96153,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobConclusion { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobConclusion { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -95146,22 +96188,22 @@ pub enum WorkflowJobEvent { Queued(WorkflowJobQueued), Started(WorkflowJobStarted), } -impl From<&WorkflowJobEvent> for WorkflowJobEvent { +impl ::std::convert::From<&WorkflowJobEvent> for WorkflowJobEvent { fn from(value: &WorkflowJobEvent) -> Self { value.clone() } } -impl From for WorkflowJobEvent { +impl ::std::convert::From for WorkflowJobEvent { fn from(value: WorkflowJobCompleted) -> Self { Self::Completed(value) } } -impl From for WorkflowJobEvent { +impl ::std::convert::From for WorkflowJobEvent { fn from(value: WorkflowJobQueued) -> Self { Self::Queued(value) } } -impl From for WorkflowJobEvent { +impl ::std::convert::From for WorkflowJobEvent { fn from(value: WorkflowJobStarted) -> Self { Self::Started(value) } @@ -95299,7 +96341,7 @@ pub struct WorkflowJobQueued { pub sender: User, pub workflow_job: WorkflowJobQueuedWorkflowJob, } -impl From<&WorkflowJobQueued> for WorkflowJobQueued { +impl ::std::convert::From<&WorkflowJobQueued> for WorkflowJobQueued { fn from(value: &WorkflowJobQueued) -> Self { value.clone() } @@ -95333,7 +96375,7 @@ pub enum WorkflowJobQueuedAction { #[serde(rename = "queued")] Queued, } -impl From<&WorkflowJobQueuedAction> for WorkflowJobQueuedAction { +impl ::std::convert::From<&WorkflowJobQueuedAction> for WorkflowJobQueuedAction { fn from(value: &WorkflowJobQueuedAction) -> Self { value.clone() } @@ -95345,7 +96387,7 @@ impl ::std::fmt::Display for WorkflowJobQueuedAction { } } } -impl std::str::FromStr for WorkflowJobQueuedAction { +impl ::std::str::FromStr for WorkflowJobQueuedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95354,13 +96396,13 @@ impl std::str::FromStr for WorkflowJobQueuedAction { } } } -impl std::convert::TryFrom<&str> for WorkflowJobQueuedAction { +impl ::std::convert::TryFrom<&str> for WorkflowJobQueuedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobQueuedAction { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobQueuedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95368,7 +96410,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobQueuedAction { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobQueuedAction { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobQueuedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -95484,7 +96526,7 @@ pub struct WorkflowJobQueuedWorkflowJob { pub steps: ::std::vec::Vec, pub url: ::std::string::String, } -impl From<&WorkflowJobQueuedWorkflowJob> for WorkflowJobQueuedWorkflowJob { +impl ::std::convert::From<&WorkflowJobQueuedWorkflowJob> for WorkflowJobQueuedWorkflowJob { fn from(value: &WorkflowJobQueuedWorkflowJob) -> Self { value.clone() } @@ -95518,7 +96560,9 @@ pub enum WorkflowJobQueuedWorkflowJobStatus { #[serde(rename = "queued")] Queued, } -impl From<&WorkflowJobQueuedWorkflowJobStatus> for WorkflowJobQueuedWorkflowJobStatus { +impl ::std::convert::From<&WorkflowJobQueuedWorkflowJobStatus> + for WorkflowJobQueuedWorkflowJobStatus +{ fn from(value: &WorkflowJobQueuedWorkflowJobStatus) -> Self { value.clone() } @@ -95530,7 +96574,7 @@ impl ::std::fmt::Display for WorkflowJobQueuedWorkflowJobStatus { } } } -impl std::str::FromStr for WorkflowJobQueuedWorkflowJobStatus { +impl ::std::str::FromStr for WorkflowJobQueuedWorkflowJobStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95539,13 +96583,13 @@ impl std::str::FromStr for WorkflowJobQueuedWorkflowJobStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowJobQueuedWorkflowJobStatus { +impl ::std::convert::TryFrom<&str> for WorkflowJobQueuedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobQueuedWorkflowJobStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobQueuedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95553,7 +96597,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobQueuedWorkflow value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobQueuedWorkflowJobStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobQueuedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -95644,7 +96688,7 @@ pub struct WorkflowJobStarted { pub sender: User, pub workflow_job: WorkflowJobStartedWorkflowJob, } -impl From<&WorkflowJobStarted> for WorkflowJobStarted { +impl ::std::convert::From<&WorkflowJobStarted> for WorkflowJobStarted { fn from(value: &WorkflowJobStarted) -> Self { value.clone() } @@ -95678,7 +96722,7 @@ pub enum WorkflowJobStartedAction { #[serde(rename = "started")] Started, } -impl From<&WorkflowJobStartedAction> for WorkflowJobStartedAction { +impl ::std::convert::From<&WorkflowJobStartedAction> for WorkflowJobStartedAction { fn from(value: &WorkflowJobStartedAction) -> Self { value.clone() } @@ -95690,7 +96734,7 @@ impl ::std::fmt::Display for WorkflowJobStartedAction { } } } -impl std::str::FromStr for WorkflowJobStartedAction { +impl ::std::str::FromStr for WorkflowJobStartedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95699,13 +96743,13 @@ impl std::str::FromStr for WorkflowJobStartedAction { } } } -impl std::convert::TryFrom<&str> for WorkflowJobStartedAction { +impl ::std::convert::TryFrom<&str> for WorkflowJobStartedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobStartedAction { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobStartedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95713,7 +96757,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobStartedAction value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobStartedAction { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobStartedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -95779,7 +96823,7 @@ pub struct WorkflowJobStartedWorkflowJob { pub steps: [WorkflowStepInProgress; 1usize], pub url: ::std::string::String, } -impl From<&WorkflowJobStartedWorkflowJob> for WorkflowJobStartedWorkflowJob { +impl ::std::convert::From<&WorkflowJobStartedWorkflowJob> for WorkflowJobStartedWorkflowJob { fn from(value: &WorkflowJobStartedWorkflowJob) -> Self { value.clone() } @@ -95805,12 +96849,14 @@ impl ::std::ops::Deref for WorkflowJobStartedWorkflowJobConclusion { &self.0 } } -impl From for () { +impl ::std::convert::From for () { fn from(value: WorkflowJobStartedWorkflowJobConclusion) -> Self { value.0 } } -impl From<&WorkflowJobStartedWorkflowJobConclusion> for WorkflowJobStartedWorkflowJobConclusion { +impl ::std::convert::From<&WorkflowJobStartedWorkflowJobConclusion> + for WorkflowJobStartedWorkflowJobConclusion +{ fn from(value: &WorkflowJobStartedWorkflowJobConclusion) -> Self { value.clone() } @@ -95869,7 +96915,9 @@ pub enum WorkflowJobStartedWorkflowJobStatus { #[serde(rename = "completed")] Completed, } -impl From<&WorkflowJobStartedWorkflowJobStatus> for WorkflowJobStartedWorkflowJobStatus { +impl ::std::convert::From<&WorkflowJobStartedWorkflowJobStatus> + for WorkflowJobStartedWorkflowJobStatus +{ fn from(value: &WorkflowJobStartedWorkflowJobStatus) -> Self { value.clone() } @@ -95883,7 +96931,7 @@ impl ::std::fmt::Display for WorkflowJobStartedWorkflowJobStatus { } } } -impl std::str::FromStr for WorkflowJobStartedWorkflowJobStatus { +impl ::std::str::FromStr for WorkflowJobStartedWorkflowJobStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95894,13 +96942,13 @@ impl std::str::FromStr for WorkflowJobStartedWorkflowJobStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowJobStartedWorkflowJobStatus { +impl ::std::convert::TryFrom<&str> for WorkflowJobStartedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobStartedWorkflowJobStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobStartedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95908,7 +96956,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobStartedWorkflo value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobStartedWorkflowJobStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobStartedWorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -95951,7 +96999,7 @@ pub enum WorkflowJobStatus { #[serde(rename = "completed")] Completed, } -impl From<&WorkflowJobStatus> for WorkflowJobStatus { +impl ::std::convert::From<&WorkflowJobStatus> for WorkflowJobStatus { fn from(value: &WorkflowJobStatus) -> Self { value.clone() } @@ -95965,7 +97013,7 @@ impl ::std::fmt::Display for WorkflowJobStatus { } } } -impl std::str::FromStr for WorkflowJobStatus { +impl ::std::str::FromStr for WorkflowJobStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -95976,13 +97024,13 @@ impl std::str::FromStr for WorkflowJobStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowJobStatus { +impl ::std::convert::TryFrom<&str> for WorkflowJobStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowJobStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -95990,7 +97038,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowJobStatus { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowJobStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowJobStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -96247,7 +97295,7 @@ pub struct WorkflowRun { pub workflow_id: i64, pub workflow_url: ::std::string::String, } -impl From<&WorkflowRun> for WorkflowRun { +impl ::std::convert::From<&WorkflowRun> for WorkflowRun { fn from(value: &WorkflowRun) -> Self { value.clone() } @@ -96336,7 +97384,7 @@ pub struct WorkflowRunCompleted { pub workflow: Workflow, pub workflow_run: WorkflowRunCompletedWorkflowRun, } -impl From<&WorkflowRunCompleted> for WorkflowRunCompleted { +impl ::std::convert::From<&WorkflowRunCompleted> for WorkflowRunCompleted { fn from(value: &WorkflowRunCompleted) -> Self { value.clone() } @@ -96370,7 +97418,7 @@ pub enum WorkflowRunCompletedAction { #[serde(rename = "completed")] Completed, } -impl From<&WorkflowRunCompletedAction> for WorkflowRunCompletedAction { +impl ::std::convert::From<&WorkflowRunCompletedAction> for WorkflowRunCompletedAction { fn from(value: &WorkflowRunCompletedAction) -> Self { value.clone() } @@ -96382,7 +97430,7 @@ impl ::std::fmt::Display for WorkflowRunCompletedAction { } } } -impl std::str::FromStr for WorkflowRunCompletedAction { +impl ::std::str::FromStr for WorkflowRunCompletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -96391,13 +97439,13 @@ impl std::str::FromStr for WorkflowRunCompletedAction { } } } -impl std::convert::TryFrom<&str> for WorkflowRunCompletedAction { +impl ::std::convert::TryFrom<&str> for WorkflowRunCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedAction { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -96405,7 +97453,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowRunCompletedAction { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowRunCompletedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -96479,7 +97527,7 @@ pub struct WorkflowRunCompletedWorkflowRun { pub workflow_id: i64, pub workflow_url: ::std::string::String, } -impl From<&WorkflowRunCompletedWorkflowRun> for WorkflowRunCompletedWorkflowRun { +impl ::std::convert::From<&WorkflowRunCompletedWorkflowRun> for WorkflowRunCompletedWorkflowRun { fn from(value: &WorkflowRunCompletedWorkflowRun) -> Self { value.clone() } @@ -96531,7 +97579,7 @@ pub enum WorkflowRunCompletedWorkflowRunConclusion { #[serde(rename = "stale")] Stale, } -impl From<&WorkflowRunCompletedWorkflowRunConclusion> +impl ::std::convert::From<&WorkflowRunCompletedWorkflowRunConclusion> for WorkflowRunCompletedWorkflowRunConclusion { fn from(value: &WorkflowRunCompletedWorkflowRunConclusion) -> Self { @@ -96551,7 +97599,7 @@ impl ::std::fmt::Display for WorkflowRunCompletedWorkflowRunConclusion { } } } -impl std::str::FromStr for WorkflowRunCompletedWorkflowRunConclusion { +impl ::std::str::FromStr for WorkflowRunCompletedWorkflowRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -96566,13 +97614,13 @@ impl std::str::FromStr for WorkflowRunCompletedWorkflowRunConclusion { } } } -impl std::convert::TryFrom<&str> for WorkflowRunCompletedWorkflowRunConclusion { +impl ::std::convert::TryFrom<&str> for WorkflowRunCompletedWorkflowRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedWorkflowRunConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedWorkflowRunConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -96580,7 +97628,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedWorkf value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowRunCompletedWorkflowRunConclusion { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowRunCompletedWorkflowRunConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -96667,7 +97715,7 @@ pub struct WorkflowRunCompletedWorkflowRunPullRequestsItem { pub number: f64, pub url: ::std::string::String, } -impl From<&WorkflowRunCompletedWorkflowRunPullRequestsItem> +impl ::std::convert::From<&WorkflowRunCompletedWorkflowRunPullRequestsItem> for WorkflowRunCompletedWorkflowRunPullRequestsItem { fn from(value: &WorkflowRunCompletedWorkflowRunPullRequestsItem) -> Self { @@ -96709,7 +97757,7 @@ pub struct WorkflowRunCompletedWorkflowRunPullRequestsItemBase { pub repo: RepoRef, pub sha: ::std::string::String, } -impl From<&WorkflowRunCompletedWorkflowRunPullRequestsItemBase> +impl ::std::convert::From<&WorkflowRunCompletedWorkflowRunPullRequestsItemBase> for WorkflowRunCompletedWorkflowRunPullRequestsItemBase { fn from(value: &WorkflowRunCompletedWorkflowRunPullRequestsItemBase) -> Self { @@ -96751,7 +97799,7 @@ pub struct WorkflowRunCompletedWorkflowRunPullRequestsItemHead { pub repo: RepoRef, pub sha: ::std::string::String, } -impl From<&WorkflowRunCompletedWorkflowRunPullRequestsItemHead> +impl ::std::convert::From<&WorkflowRunCompletedWorkflowRunPullRequestsItemHead> for WorkflowRunCompletedWorkflowRunPullRequestsItemHead { fn from(value: &WorkflowRunCompletedWorkflowRunPullRequestsItemHead) -> Self { @@ -96796,7 +97844,9 @@ pub enum WorkflowRunCompletedWorkflowRunStatus { #[serde(rename = "queued")] Queued, } -impl From<&WorkflowRunCompletedWorkflowRunStatus> for WorkflowRunCompletedWorkflowRunStatus { +impl ::std::convert::From<&WorkflowRunCompletedWorkflowRunStatus> + for WorkflowRunCompletedWorkflowRunStatus +{ fn from(value: &WorkflowRunCompletedWorkflowRunStatus) -> Self { value.clone() } @@ -96811,7 +97861,7 @@ impl ::std::fmt::Display for WorkflowRunCompletedWorkflowRunStatus { } } } -impl std::str::FromStr for WorkflowRunCompletedWorkflowRunStatus { +impl ::std::str::FromStr for WorkflowRunCompletedWorkflowRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -96823,13 +97873,13 @@ impl std::str::FromStr for WorkflowRunCompletedWorkflowRunStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowRunCompletedWorkflowRunStatus { +impl ::std::convert::TryFrom<&str> for WorkflowRunCompletedWorkflowRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedWorkflowRunStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedWorkflowRunStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -96837,7 +97887,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowRunCompletedWorkf value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowRunCompletedWorkflowRunStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowRunCompletedWorkflowRunStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -96892,7 +97942,7 @@ pub enum WorkflowRunConclusion { #[serde(rename = "stale")] Stale, } -impl From<&WorkflowRunConclusion> for WorkflowRunConclusion { +impl ::std::convert::From<&WorkflowRunConclusion> for WorkflowRunConclusion { fn from(value: &WorkflowRunConclusion) -> Self { value.clone() } @@ -96910,7 +97960,7 @@ impl ::std::fmt::Display for WorkflowRunConclusion { } } } -impl std::str::FromStr for WorkflowRunConclusion { +impl ::std::str::FromStr for WorkflowRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -96925,13 +97975,13 @@ impl std::str::FromStr for WorkflowRunConclusion { } } } -impl std::convert::TryFrom<&str> for WorkflowRunConclusion { +impl ::std::convert::TryFrom<&str> for WorkflowRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowRunConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowRunConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -96939,7 +97989,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowRunConclusion { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowRunConclusion { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowRunConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -96970,17 +98020,17 @@ pub enum WorkflowRunEvent { Completed(WorkflowRunCompleted), Requested(WorkflowRunRequested), } -impl From<&WorkflowRunEvent> for WorkflowRunEvent { +impl ::std::convert::From<&WorkflowRunEvent> for WorkflowRunEvent { fn from(value: &WorkflowRunEvent) -> Self { value.clone() } } -impl From for WorkflowRunEvent { +impl ::std::convert::From for WorkflowRunEvent { fn from(value: WorkflowRunCompleted) -> Self { Self::Completed(value) } } -impl From for WorkflowRunEvent { +impl ::std::convert::From for WorkflowRunEvent { fn from(value: WorkflowRunRequested) -> Self { Self::Requested(value) } @@ -97064,7 +98114,7 @@ pub struct WorkflowRunPullRequestsItem { pub number: f64, pub url: ::std::string::String, } -impl From<&WorkflowRunPullRequestsItem> for WorkflowRunPullRequestsItem { +impl ::std::convert::From<&WorkflowRunPullRequestsItem> for WorkflowRunPullRequestsItem { fn from(value: &WorkflowRunPullRequestsItem) -> Self { value.clone() } @@ -97104,7 +98154,7 @@ pub struct WorkflowRunPullRequestsItemBase { pub repo: RepoRef, pub sha: ::std::string::String, } -impl From<&WorkflowRunPullRequestsItemBase> for WorkflowRunPullRequestsItemBase { +impl ::std::convert::From<&WorkflowRunPullRequestsItemBase> for WorkflowRunPullRequestsItemBase { fn from(value: &WorkflowRunPullRequestsItemBase) -> Self { value.clone() } @@ -97144,7 +98194,7 @@ pub struct WorkflowRunPullRequestsItemHead { pub repo: RepoRef, pub sha: ::std::string::String, } -impl From<&WorkflowRunPullRequestsItemHead> for WorkflowRunPullRequestsItemHead { +impl ::std::convert::From<&WorkflowRunPullRequestsItemHead> for WorkflowRunPullRequestsItemHead { fn from(value: &WorkflowRunPullRequestsItemHead) -> Self { value.clone() } @@ -97208,7 +98258,7 @@ pub struct WorkflowRunRequested { pub workflow: Workflow, pub workflow_run: WorkflowRun, } -impl From<&WorkflowRunRequested> for WorkflowRunRequested { +impl ::std::convert::From<&WorkflowRunRequested> for WorkflowRunRequested { fn from(value: &WorkflowRunRequested) -> Self { value.clone() } @@ -97242,7 +98292,7 @@ pub enum WorkflowRunRequestedAction { #[serde(rename = "requested")] Requested, } -impl From<&WorkflowRunRequestedAction> for WorkflowRunRequestedAction { +impl ::std::convert::From<&WorkflowRunRequestedAction> for WorkflowRunRequestedAction { fn from(value: &WorkflowRunRequestedAction) -> Self { value.clone() } @@ -97254,7 +98304,7 @@ impl ::std::fmt::Display for WorkflowRunRequestedAction { } } } -impl std::str::FromStr for WorkflowRunRequestedAction { +impl ::std::str::FromStr for WorkflowRunRequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -97263,13 +98313,13 @@ impl std::str::FromStr for WorkflowRunRequestedAction { } } } -impl std::convert::TryFrom<&str> for WorkflowRunRequestedAction { +impl ::std::convert::TryFrom<&str> for WorkflowRunRequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowRunRequestedAction { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowRunRequestedAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -97277,7 +98327,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowRunRequestedActio value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowRunRequestedAction { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowRunRequestedAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -97323,7 +98373,7 @@ pub enum WorkflowRunStatus { #[serde(rename = "queued")] Queued, } -impl From<&WorkflowRunStatus> for WorkflowRunStatus { +impl ::std::convert::From<&WorkflowRunStatus> for WorkflowRunStatus { fn from(value: &WorkflowRunStatus) -> Self { value.clone() } @@ -97338,7 +98388,7 @@ impl ::std::fmt::Display for WorkflowRunStatus { } } } -impl std::str::FromStr for WorkflowRunStatus { +impl ::std::str::FromStr for WorkflowRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -97350,13 +98400,13 @@ impl std::str::FromStr for WorkflowRunStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowRunStatus { +impl ::std::convert::TryFrom<&str> for WorkflowRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowRunStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowRunStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -97364,7 +98414,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowRunStatus { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowRunStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowRunStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -97398,17 +98448,17 @@ pub enum WorkflowStep { InProgress(WorkflowStepInProgress), Completed(WorkflowStepCompleted), } -impl From<&WorkflowStep> for WorkflowStep { +impl ::std::convert::From<&WorkflowStep> for WorkflowStep { fn from(value: &WorkflowStep) -> Self { value.clone() } } -impl From for WorkflowStep { +impl ::std::convert::From for WorkflowStep { fn from(value: WorkflowStepInProgress) -> Self { Self::InProgress(value) } } -impl From for WorkflowStep { +impl ::std::convert::From for WorkflowStep { fn from(value: WorkflowStepCompleted) -> Self { Self::Completed(value) } @@ -97472,7 +98522,7 @@ pub struct WorkflowStepCompleted { pub started_at: ::std::string::String, pub status: WorkflowStepCompletedStatus, } -impl From<&WorkflowStepCompleted> for WorkflowStepCompleted { +impl ::std::convert::From<&WorkflowStepCompleted> for WorkflowStepCompleted { fn from(value: &WorkflowStepCompleted) -> Self { value.clone() } @@ -97512,7 +98562,7 @@ pub enum WorkflowStepCompletedConclusion { #[serde(rename = "success")] Success, } -impl From<&WorkflowStepCompletedConclusion> for WorkflowStepCompletedConclusion { +impl ::std::convert::From<&WorkflowStepCompletedConclusion> for WorkflowStepCompletedConclusion { fn from(value: &WorkflowStepCompletedConclusion) -> Self { value.clone() } @@ -97526,7 +98576,7 @@ impl ::std::fmt::Display for WorkflowStepCompletedConclusion { } } } -impl std::str::FromStr for WorkflowStepCompletedConclusion { +impl ::std::str::FromStr for WorkflowStepCompletedConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -97537,13 +98587,13 @@ impl std::str::FromStr for WorkflowStepCompletedConclusion { } } } -impl std::convert::TryFrom<&str> for WorkflowStepCompletedConclusion { +impl ::std::convert::TryFrom<&str> for WorkflowStepCompletedConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowStepCompletedConclusion { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowStepCompletedConclusion { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -97551,7 +98601,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowStepCompletedConc value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowStepCompletedConclusion { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowStepCompletedConclusion { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -97588,7 +98638,7 @@ pub enum WorkflowStepCompletedStatus { #[serde(rename = "completed")] Completed, } -impl From<&WorkflowStepCompletedStatus> for WorkflowStepCompletedStatus { +impl ::std::convert::From<&WorkflowStepCompletedStatus> for WorkflowStepCompletedStatus { fn from(value: &WorkflowStepCompletedStatus) -> Self { value.clone() } @@ -97600,7 +98650,7 @@ impl ::std::fmt::Display for WorkflowStepCompletedStatus { } } } -impl std::str::FromStr for WorkflowStepCompletedStatus { +impl ::std::str::FromStr for WorkflowStepCompletedStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -97609,13 +98659,13 @@ impl std::str::FromStr for WorkflowStepCompletedStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowStepCompletedStatus { +impl ::std::convert::TryFrom<&str> for WorkflowStepCompletedStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowStepCompletedStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowStepCompletedStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -97623,7 +98673,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowStepCompletedStat value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowStepCompletedStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowStepCompletedStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -97685,7 +98735,7 @@ pub struct WorkflowStepInProgress { pub started_at: ::std::string::String, pub status: WorkflowStepInProgressStatus, } -impl From<&WorkflowStepInProgress> for WorkflowStepInProgress { +impl ::std::convert::From<&WorkflowStepInProgress> for WorkflowStepInProgress { fn from(value: &WorkflowStepInProgress) -> Self { value.clone() } @@ -97719,7 +98769,7 @@ pub enum WorkflowStepInProgressStatus { #[serde(rename = "in_progress")] InProgress, } -impl From<&WorkflowStepInProgressStatus> for WorkflowStepInProgressStatus { +impl ::std::convert::From<&WorkflowStepInProgressStatus> for WorkflowStepInProgressStatus { fn from(value: &WorkflowStepInProgressStatus) -> Self { value.clone() } @@ -97731,7 +98781,7 @@ impl ::std::fmt::Display for WorkflowStepInProgressStatus { } } } -impl std::str::FromStr for WorkflowStepInProgressStatus { +impl ::std::str::FromStr for WorkflowStepInProgressStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -97740,13 +98790,13 @@ impl std::str::FromStr for WorkflowStepInProgressStatus { } } } -impl std::convert::TryFrom<&str> for WorkflowStepInProgressStatus { +impl ::std::convert::TryFrom<&str> for WorkflowStepInProgressStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for WorkflowStepInProgressStatus { +impl ::std::convert::TryFrom<&::std::string::String> for WorkflowStepInProgressStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -97754,7 +98804,7 @@ impl std::convert::TryFrom<&::std::string::String> for WorkflowStepInProgressSta value.parse() } } -impl std::convert::TryFrom<::std::string::String> for WorkflowStepInProgressStatus { +impl ::std::convert::TryFrom<::std::string::String> for WorkflowStepInProgressStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, diff --git a/typify-impl/tests/vega.out b/typify-impl/tests/vega.out index 0786d066..218ecbb5 100644 --- a/typify-impl/tests/vega.out +++ b/typify-impl/tests/vega.out @@ -225,7 +225,7 @@ pub struct AggregateTransform { #[serde(rename = "type")] pub type_: AggregateTransformType, } -impl From<&AggregateTransform> for AggregateTransform { +impl ::std::convert::From<&AggregateTransform> for AggregateTransform { fn from(value: &AggregateTransform) -> Self { value.clone() } @@ -266,17 +266,19 @@ pub enum AggregateTransformAs { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&AggregateTransformAs> for AggregateTransformAs { +impl ::std::convert::From<&AggregateTransformAs> for AggregateTransformAs { fn from(value: &AggregateTransformAs) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AggregateTransformAs { +impl ::std::convert::From<::std::vec::Vec> + for AggregateTransformAs +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformAs { +impl ::std::convert::From for AggregateTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -308,12 +310,12 @@ pub enum AggregateTransformAsVariant0Item { Variant1(SignalRef), Variant2, } -impl From<&AggregateTransformAsVariant0Item> for AggregateTransformAsVariant0Item { +impl ::std::convert::From<&AggregateTransformAsVariant0Item> for AggregateTransformAsVariant0Item { fn from(value: &AggregateTransformAsVariant0Item) -> Self { value.clone() } } -impl From for AggregateTransformAsVariant0Item { +impl ::std::convert::From for AggregateTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -341,17 +343,17 @@ pub enum AggregateTransformCross { Variant0(bool), Variant1(SignalRef), } -impl From<&AggregateTransformCross> for AggregateTransformCross { +impl ::std::convert::From<&AggregateTransformCross> for AggregateTransformCross { fn from(value: &AggregateTransformCross) -> Self { value.clone() } } -impl From for AggregateTransformCross { +impl ::std::convert::From for AggregateTransformCross { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformCross { +impl ::std::convert::From for AggregateTransformCross { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -380,22 +382,22 @@ pub enum AggregateTransformDrop { Variant0(bool), Variant1(SignalRef), } -impl From<&AggregateTransformDrop> for AggregateTransformDrop { +impl ::std::convert::From<&AggregateTransformDrop> for AggregateTransformDrop { fn from(value: &AggregateTransformDrop) -> Self { value.clone() } } -impl Default for AggregateTransformDrop { +impl ::std::default::Default for AggregateTransformDrop { fn default() -> Self { AggregateTransformDrop::Variant0(true) } } -impl From for AggregateTransformDrop { +impl ::std::convert::From for AggregateTransformDrop { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformDrop { +impl ::std::convert::From for AggregateTransformDrop { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -439,17 +441,19 @@ pub enum AggregateTransformFields { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&AggregateTransformFields> for AggregateTransformFields { +impl ::std::convert::From<&AggregateTransformFields> for AggregateTransformFields { fn from(value: &AggregateTransformFields) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AggregateTransformFields { +impl ::std::convert::From<::std::vec::Vec> + for AggregateTransformFields +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformFields { +impl ::std::convert::From for AggregateTransformFields { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -485,22 +489,24 @@ pub enum AggregateTransformFieldsVariant0Item { Variant2(Expr), Variant3, } -impl From<&AggregateTransformFieldsVariant0Item> for AggregateTransformFieldsVariant0Item { +impl ::std::convert::From<&AggregateTransformFieldsVariant0Item> + for AggregateTransformFieldsVariant0Item +{ fn from(value: &AggregateTransformFieldsVariant0Item) -> Self { value.clone() } } -impl From for AggregateTransformFieldsVariant0Item { +impl ::std::convert::From for AggregateTransformFieldsVariant0Item { fn from(value: ScaleField) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformFieldsVariant0Item { +impl ::std::convert::From for AggregateTransformFieldsVariant0Item { fn from(value: ParamField) -> Self { Self::Variant1(value) } } -impl From for AggregateTransformFieldsVariant0Item { +impl ::std::convert::From for AggregateTransformFieldsVariant0Item { fn from(value: Expr) -> Self { Self::Variant2(value) } @@ -541,17 +547,19 @@ pub enum AggregateTransformGroupby { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&AggregateTransformGroupby> for AggregateTransformGroupby { +impl ::std::convert::From<&AggregateTransformGroupby> for AggregateTransformGroupby { fn from(value: &AggregateTransformGroupby) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AggregateTransformGroupby { +impl ::std::convert::From<::std::vec::Vec> + for AggregateTransformGroupby +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformGroupby { +impl ::std::convert::From for AggregateTransformGroupby { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -583,22 +591,24 @@ pub enum AggregateTransformGroupbyVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&AggregateTransformGroupbyVariant0Item> for AggregateTransformGroupbyVariant0Item { +impl ::std::convert::From<&AggregateTransformGroupbyVariant0Item> + for AggregateTransformGroupbyVariant0Item +{ fn from(value: &AggregateTransformGroupbyVariant0Item) -> Self { value.clone() } } -impl From for AggregateTransformGroupbyVariant0Item { +impl ::std::convert::From for AggregateTransformGroupbyVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for AggregateTransformGroupbyVariant0Item { +impl ::std::convert::From for AggregateTransformGroupbyVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for AggregateTransformGroupbyVariant0Item { +impl ::std::convert::From for AggregateTransformGroupbyVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -630,22 +640,22 @@ pub enum AggregateTransformKey { ParamField(ParamField), Expr(Expr), } -impl From<&AggregateTransformKey> for AggregateTransformKey { +impl ::std::convert::From<&AggregateTransformKey> for AggregateTransformKey { fn from(value: &AggregateTransformKey) -> Self { value.clone() } } -impl From for AggregateTransformKey { +impl ::std::convert::From for AggregateTransformKey { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for AggregateTransformKey { +impl ::std::convert::From for AggregateTransformKey { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for AggregateTransformKey { +impl ::std::convert::From for AggregateTransformKey { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -708,17 +718,19 @@ pub enum AggregateTransformOps { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&AggregateTransformOps> for AggregateTransformOps { +impl ::std::convert::From<&AggregateTransformOps> for AggregateTransformOps { fn from(value: &AggregateTransformOps) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AggregateTransformOps { +impl ::std::convert::From<::std::vec::Vec> + for AggregateTransformOps +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformOps { +impl ::std::convert::From for AggregateTransformOps { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -771,17 +783,21 @@ pub enum AggregateTransformOpsVariant0Item { Variant0(AggregateTransformOpsVariant0ItemVariant0), Variant1(SignalRef), } -impl From<&AggregateTransformOpsVariant0Item> for AggregateTransformOpsVariant0Item { +impl ::std::convert::From<&AggregateTransformOpsVariant0Item> + for AggregateTransformOpsVariant0Item +{ fn from(value: &AggregateTransformOpsVariant0Item) -> Self { value.clone() } } -impl From for AggregateTransformOpsVariant0Item { +impl ::std::convert::From + for AggregateTransformOpsVariant0Item +{ fn from(value: AggregateTransformOpsVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for AggregateTransformOpsVariant0Item { +impl ::std::convert::From for AggregateTransformOpsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -883,7 +899,7 @@ pub enum AggregateTransformOpsVariant0ItemVariant0 { #[serde(rename = "argmax")] Argmax, } -impl From<&AggregateTransformOpsVariant0ItemVariant0> +impl ::std::convert::From<&AggregateTransformOpsVariant0ItemVariant0> for AggregateTransformOpsVariant0ItemVariant0 { fn from(value: &AggregateTransformOpsVariant0ItemVariant0) -> Self { @@ -920,7 +936,7 @@ impl ::std::fmt::Display for AggregateTransformOpsVariant0ItemVariant0 { } } } -impl std::str::FromStr for AggregateTransformOpsVariant0ItemVariant0 { +impl ::std::str::FromStr for AggregateTransformOpsVariant0ItemVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -952,13 +968,13 @@ impl std::str::FromStr for AggregateTransformOpsVariant0ItemVariant0 { } } } -impl std::convert::TryFrom<&str> for AggregateTransformOpsVariant0ItemVariant0 { +impl ::std::convert::TryFrom<&str> for AggregateTransformOpsVariant0ItemVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AggregateTransformOpsVariant0ItemVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AggregateTransformOpsVariant0ItemVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -966,7 +982,7 @@ impl std::convert::TryFrom<&::std::string::String> for AggregateTransformOpsVari value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AggregateTransformOpsVariant0ItemVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AggregateTransformOpsVariant0ItemVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1002,7 +1018,7 @@ pub enum AggregateTransformType { #[serde(rename = "aggregate")] Aggregate, } -impl From<&AggregateTransformType> for AggregateTransformType { +impl ::std::convert::From<&AggregateTransformType> for AggregateTransformType { fn from(value: &AggregateTransformType) -> Self { value.clone() } @@ -1014,7 +1030,7 @@ impl ::std::fmt::Display for AggregateTransformType { } } } -impl std::str::FromStr for AggregateTransformType { +impl ::std::str::FromStr for AggregateTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1023,13 +1039,13 @@ impl std::str::FromStr for AggregateTransformType { } } } -impl std::convert::TryFrom<&str> for AggregateTransformType { +impl ::std::convert::TryFrom<&str> for AggregateTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AggregateTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for AggregateTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1037,7 +1053,7 @@ impl std::convert::TryFrom<&::std::string::String> for AggregateTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AggregateTransformType { +impl ::std::convert::TryFrom<::std::string::String> for AggregateTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1236,17 +1252,17 @@ pub enum AlignValue { Variant0(::std::vec::Vec), Variant1(AlignValueVariant1), } -impl From<&AlignValue> for AlignValue { +impl ::std::convert::From<&AlignValue> for AlignValue { fn from(value: &AlignValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AlignValue { +impl ::std::convert::From<::std::vec::Vec> for AlignValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AlignValue { +impl ::std::convert::From for AlignValue { fn from(value: AlignValueVariant1) -> Self { Self::Variant1(value) } @@ -1359,22 +1375,22 @@ pub enum AlignValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&AlignValueVariant0Item> for AlignValueVariant0Item { +impl ::std::convert::From<&AlignValueVariant0Item> for AlignValueVariant0Item { fn from(value: &AlignValueVariant0Item) -> Self { value.clone() } } -impl From for AlignValueVariant0Item { +impl ::std::convert::From for AlignValueVariant0Item { fn from(value: AlignValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for AlignValueVariant0Item { +impl ::std::convert::From for AlignValueVariant0Item { fn from(value: AlignValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for AlignValueVariant0Item { +impl ::std::convert::From for AlignValueVariant0Item { fn from(value: AlignValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -1510,7 +1526,7 @@ pub enum AlignValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&AlignValueVariant0ItemVariant0> for AlignValueVariant0ItemVariant0 { +impl ::std::convert::From<&AlignValueVariant0ItemVariant0> for AlignValueVariant0ItemVariant0 { fn from(value: &AlignValueVariant0ItemVariant0) -> Self { value.clone() } @@ -1549,7 +1565,7 @@ pub enum AlignValueVariant0ItemVariant0Variant1Value { #[serde(rename = "center")] Center, } -impl From<&AlignValueVariant0ItemVariant0Variant1Value> +impl ::std::convert::From<&AlignValueVariant0ItemVariant0Variant1Value> for AlignValueVariant0ItemVariant0Variant1Value { fn from(value: &AlignValueVariant0ItemVariant0Variant1Value) -> Self { @@ -1565,7 +1581,7 @@ impl ::std::fmt::Display for AlignValueVariant0ItemVariant0Variant1Value { } } } -impl std::str::FromStr for AlignValueVariant0ItemVariant0Variant1Value { +impl ::std::str::FromStr for AlignValueVariant0ItemVariant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1576,13 +1592,15 @@ impl std::str::FromStr for AlignValueVariant0ItemVariant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for AlignValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&str> for AlignValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> + for AlignValueVariant0ItemVariant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1590,7 +1608,9 @@ impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant0ItemVar value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AlignValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> + for AlignValueVariant0ItemVariant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1621,14 +1641,14 @@ pub enum AlignValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&AlignValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&AlignValueVariant0ItemVariant0Variant3Range> for AlignValueVariant0ItemVariant0Variant3Range { fn from(value: &AlignValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for AlignValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for AlignValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -1640,13 +1660,15 @@ impl std::str::FromStr for AlignValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for AlignValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for AlignValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> + for AlignValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1654,7 +1676,9 @@ impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant0ItemVar value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AlignValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for AlignValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1670,12 +1694,12 @@ impl ::std::fmt::Display for AlignValueVariant0ItemVariant0Variant3Range { } } } -impl From for AlignValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for AlignValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AlignValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for AlignValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -1793,7 +1817,7 @@ impl From for AlignValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum AlignValueVariant0ItemVariant1 {} -impl From<&AlignValueVariant0ItemVariant1> for AlignValueVariant0ItemVariant1 { +impl ::std::convert::From<&AlignValueVariant0ItemVariant1> for AlignValueVariant0ItemVariant1 { fn from(value: &AlignValueVariant0ItemVariant1) -> Self { value.clone() } @@ -1911,7 +1935,7 @@ impl From<&AlignValueVariant0ItemVariant1> for AlignValueVariant0ItemVariant1 { )] #[serde(deny_unknown_fields)] pub enum AlignValueVariant0ItemVariant2 {} -impl From<&AlignValueVariant0ItemVariant2> for AlignValueVariant0ItemVariant2 { +impl ::std::convert::From<&AlignValueVariant0ItemVariant2> for AlignValueVariant0ItemVariant2 { fn from(value: &AlignValueVariant0ItemVariant2) -> Self { value.clone() } @@ -2013,22 +2037,22 @@ pub enum AlignValueVariant1 { Variant2(AlignValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&AlignValueVariant1> for AlignValueVariant1 { +impl ::std::convert::From<&AlignValueVariant1> for AlignValueVariant1 { fn from(value: &AlignValueVariant1) -> Self { value.clone() } } -impl From for AlignValueVariant1 { +impl ::std::convert::From for AlignValueVariant1 { fn from(value: AlignValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for AlignValueVariant1 { +impl ::std::convert::From for AlignValueVariant1 { fn from(value: AlignValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for AlignValueVariant1 { +impl ::std::convert::From for AlignValueVariant1 { fn from(value: AlignValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -2153,7 +2177,7 @@ pub enum AlignValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&AlignValueVariant1Variant0> for AlignValueVariant1Variant0 { +impl ::std::convert::From<&AlignValueVariant1Variant0> for AlignValueVariant1Variant0 { fn from(value: &AlignValueVariant1Variant0) -> Self { value.clone() } @@ -2192,7 +2216,9 @@ pub enum AlignValueVariant1Variant0Variant1Value { #[serde(rename = "center")] Center, } -impl From<&AlignValueVariant1Variant0Variant1Value> for AlignValueVariant1Variant0Variant1Value { +impl ::std::convert::From<&AlignValueVariant1Variant0Variant1Value> + for AlignValueVariant1Variant0Variant1Value +{ fn from(value: &AlignValueVariant1Variant0Variant1Value) -> Self { value.clone() } @@ -2206,7 +2232,7 @@ impl ::std::fmt::Display for AlignValueVariant1Variant0Variant1Value { } } } -impl std::str::FromStr for AlignValueVariant1Variant0Variant1Value { +impl ::std::str::FromStr for AlignValueVariant1Variant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2217,13 +2243,13 @@ impl std::str::FromStr for AlignValueVariant1Variant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for AlignValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&str> for AlignValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> for AlignValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2231,7 +2257,7 @@ impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant1Variant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AlignValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> for AlignValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2262,12 +2288,14 @@ pub enum AlignValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&AlignValueVariant1Variant0Variant3Range> for AlignValueVariant1Variant0Variant3Range { +impl ::std::convert::From<&AlignValueVariant1Variant0Variant3Range> + for AlignValueVariant1Variant0Variant3Range +{ fn from(value: &AlignValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for AlignValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for AlignValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -2279,13 +2307,13 @@ impl std::str::FromStr for AlignValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for AlignValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for AlignValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for AlignValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2293,7 +2321,7 @@ impl std::convert::TryFrom<&::std::string::String> for AlignValueVariant1Variant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AlignValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for AlignValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2309,12 +2337,12 @@ impl ::std::fmt::Display for AlignValueVariant1Variant0Variant3Range { } } } -impl From for AlignValueVariant1Variant0Variant3Range { +impl ::std::convert::From for AlignValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AlignValueVariant1Variant0Variant3Range { +impl ::std::convert::From for AlignValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -2429,7 +2457,7 @@ impl From for AlignValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum AlignValueVariant1Variant1 {} -impl From<&AlignValueVariant1Variant1> for AlignValueVariant1Variant1 { +impl ::std::convert::From<&AlignValueVariant1Variant1> for AlignValueVariant1Variant1 { fn from(value: &AlignValueVariant1Variant1) -> Self { value.clone() } @@ -2544,7 +2572,7 @@ impl From<&AlignValueVariant1Variant1> for AlignValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum AlignValueVariant1Variant2 {} -impl From<&AlignValueVariant1Variant2> for AlignValueVariant1Variant2 { +impl ::std::convert::From<&AlignValueVariant1Variant2> for AlignValueVariant1Variant2 { fn from(value: &AlignValueVariant1Variant2) -> Self { value.clone() } @@ -2740,17 +2768,17 @@ pub enum AnchorValue { Variant0(::std::vec::Vec), Variant1(AnchorValueVariant1), } -impl From<&AnchorValue> for AnchorValue { +impl ::std::convert::From<&AnchorValue> for AnchorValue { fn from(value: &AnchorValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AnchorValue { +impl ::std::convert::From<::std::vec::Vec> for AnchorValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AnchorValue { +impl ::std::convert::From for AnchorValue { fn from(value: AnchorValueVariant1) -> Self { Self::Variant1(value) } @@ -2863,22 +2891,22 @@ pub enum AnchorValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&AnchorValueVariant0Item> for AnchorValueVariant0Item { +impl ::std::convert::From<&AnchorValueVariant0Item> for AnchorValueVariant0Item { fn from(value: &AnchorValueVariant0Item) -> Self { value.clone() } } -impl From for AnchorValueVariant0Item { +impl ::std::convert::From for AnchorValueVariant0Item { fn from(value: AnchorValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for AnchorValueVariant0Item { +impl ::std::convert::From for AnchorValueVariant0Item { fn from(value: AnchorValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for AnchorValueVariant0Item { +impl ::std::convert::From for AnchorValueVariant0Item { fn from(value: AnchorValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -3014,7 +3042,7 @@ pub enum AnchorValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&AnchorValueVariant0ItemVariant0> for AnchorValueVariant0ItemVariant0 { +impl ::std::convert::From<&AnchorValueVariant0ItemVariant0> for AnchorValueVariant0ItemVariant0 { fn from(value: &AnchorValueVariant0ItemVariant0) -> Self { value.clone() } @@ -3053,7 +3081,7 @@ pub enum AnchorValueVariant0ItemVariant0Variant1Value { #[serde(rename = "end")] End, } -impl From<&AnchorValueVariant0ItemVariant0Variant1Value> +impl ::std::convert::From<&AnchorValueVariant0ItemVariant0Variant1Value> for AnchorValueVariant0ItemVariant0Variant1Value { fn from(value: &AnchorValueVariant0ItemVariant0Variant1Value) -> Self { @@ -3069,7 +3097,7 @@ impl ::std::fmt::Display for AnchorValueVariant0ItemVariant0Variant1Value { } } } -impl std::str::FromStr for AnchorValueVariant0ItemVariant0Variant1Value { +impl ::std::str::FromStr for AnchorValueVariant0ItemVariant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3080,13 +3108,13 @@ impl std::str::FromStr for AnchorValueVariant0ItemVariant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for AnchorValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&str> for AnchorValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for AnchorValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; @@ -3096,7 +3124,9 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AnchorValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> + for AnchorValueVariant0ItemVariant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3127,14 +3157,14 @@ pub enum AnchorValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&AnchorValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&AnchorValueVariant0ItemVariant0Variant3Range> for AnchorValueVariant0ItemVariant0Variant3Range { fn from(value: &AnchorValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for AnchorValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for AnchorValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -3146,13 +3176,13 @@ impl std::str::FromStr for AnchorValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for AnchorValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for AnchorValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for AnchorValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -3162,7 +3192,9 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AnchorValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for AnchorValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3178,12 +3210,12 @@ impl ::std::fmt::Display for AnchorValueVariant0ItemVariant0Variant3Range { } } } -impl From for AnchorValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for AnchorValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AnchorValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for AnchorValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -3301,7 +3333,7 @@ impl From for AnchorValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum AnchorValueVariant0ItemVariant1 {} -impl From<&AnchorValueVariant0ItemVariant1> for AnchorValueVariant0ItemVariant1 { +impl ::std::convert::From<&AnchorValueVariant0ItemVariant1> for AnchorValueVariant0ItemVariant1 { fn from(value: &AnchorValueVariant0ItemVariant1) -> Self { value.clone() } @@ -3419,7 +3451,7 @@ impl From<&AnchorValueVariant0ItemVariant1> for AnchorValueVariant0ItemVariant1 )] #[serde(deny_unknown_fields)] pub enum AnchorValueVariant0ItemVariant2 {} -impl From<&AnchorValueVariant0ItemVariant2> for AnchorValueVariant0ItemVariant2 { +impl ::std::convert::From<&AnchorValueVariant0ItemVariant2> for AnchorValueVariant0ItemVariant2 { fn from(value: &AnchorValueVariant0ItemVariant2) -> Self { value.clone() } @@ -3521,22 +3553,22 @@ pub enum AnchorValueVariant1 { Variant2(AnchorValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&AnchorValueVariant1> for AnchorValueVariant1 { +impl ::std::convert::From<&AnchorValueVariant1> for AnchorValueVariant1 { fn from(value: &AnchorValueVariant1) -> Self { value.clone() } } -impl From for AnchorValueVariant1 { +impl ::std::convert::From for AnchorValueVariant1 { fn from(value: AnchorValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for AnchorValueVariant1 { +impl ::std::convert::From for AnchorValueVariant1 { fn from(value: AnchorValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for AnchorValueVariant1 { +impl ::std::convert::From for AnchorValueVariant1 { fn from(value: AnchorValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -3661,7 +3693,7 @@ pub enum AnchorValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&AnchorValueVariant1Variant0> for AnchorValueVariant1Variant0 { +impl ::std::convert::From<&AnchorValueVariant1Variant0> for AnchorValueVariant1Variant0 { fn from(value: &AnchorValueVariant1Variant0) -> Self { value.clone() } @@ -3700,7 +3732,9 @@ pub enum AnchorValueVariant1Variant0Variant1Value { #[serde(rename = "end")] End, } -impl From<&AnchorValueVariant1Variant0Variant1Value> for AnchorValueVariant1Variant0Variant1Value { +impl ::std::convert::From<&AnchorValueVariant1Variant0Variant1Value> + for AnchorValueVariant1Variant0Variant1Value +{ fn from(value: &AnchorValueVariant1Variant0Variant1Value) -> Self { value.clone() } @@ -3714,7 +3748,7 @@ impl ::std::fmt::Display for AnchorValueVariant1Variant0Variant1Value { } } } -impl std::str::FromStr for AnchorValueVariant1Variant0Variant1Value { +impl ::std::str::FromStr for AnchorValueVariant1Variant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3725,13 +3759,13 @@ impl std::str::FromStr for AnchorValueVariant1Variant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for AnchorValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&str> for AnchorValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AnchorValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> for AnchorValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3739,7 +3773,7 @@ impl std::convert::TryFrom<&::std::string::String> for AnchorValueVariant1Varian value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AnchorValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> for AnchorValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3770,12 +3804,14 @@ pub enum AnchorValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&AnchorValueVariant1Variant0Variant3Range> for AnchorValueVariant1Variant0Variant3Range { +impl ::std::convert::From<&AnchorValueVariant1Variant0Variant3Range> + for AnchorValueVariant1Variant0Variant3Range +{ fn from(value: &AnchorValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for AnchorValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for AnchorValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -3787,13 +3823,13 @@ impl std::str::FromStr for AnchorValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for AnchorValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for AnchorValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AnchorValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for AnchorValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3801,7 +3837,7 @@ impl std::convert::TryFrom<&::std::string::String> for AnchorValueVariant1Varian value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AnchorValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for AnchorValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3817,12 +3853,12 @@ impl ::std::fmt::Display for AnchorValueVariant1Variant0Variant3Range { } } } -impl From for AnchorValueVariant1Variant0Variant3Range { +impl ::std::convert::From for AnchorValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AnchorValueVariant1Variant0Variant3Range { +impl ::std::convert::From for AnchorValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -3937,7 +3973,7 @@ impl From for AnchorValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum AnchorValueVariant1Variant1 {} -impl From<&AnchorValueVariant1Variant1> for AnchorValueVariant1Variant1 { +impl ::std::convert::From<&AnchorValueVariant1Variant1> for AnchorValueVariant1Variant1 { fn from(value: &AnchorValueVariant1Variant1) -> Self { value.clone() } @@ -4052,7 +4088,7 @@ impl From<&AnchorValueVariant1Variant1> for AnchorValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum AnchorValueVariant1Variant2 {} -impl From<&AnchorValueVariant1Variant2> for AnchorValueVariant1Variant2 { +impl ::std::convert::From<&AnchorValueVariant1Variant2> for AnchorValueVariant1Variant2 { fn from(value: &AnchorValueVariant1Variant2) -> Self { value.clone() } @@ -4236,17 +4272,17 @@ pub enum AnyValue { Variant0(::std::vec::Vec), Variant1(AnyValueVariant1), } -impl From<&AnyValue> for AnyValue { +impl ::std::convert::From<&AnyValue> for AnyValue { fn from(value: &AnyValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AnyValue { +impl ::std::convert::From<::std::vec::Vec> for AnyValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AnyValue { +impl ::std::convert::From for AnyValue { fn from(value: AnyValueVariant1) -> Self { Self::Variant1(value) } @@ -4353,22 +4389,22 @@ pub enum AnyValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&AnyValueVariant0Item> for AnyValueVariant0Item { +impl ::std::convert::From<&AnyValueVariant0Item> for AnyValueVariant0Item { fn from(value: &AnyValueVariant0Item) -> Self { value.clone() } } -impl From for AnyValueVariant0Item { +impl ::std::convert::From for AnyValueVariant0Item { fn from(value: AnyValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for AnyValueVariant0Item { +impl ::std::convert::From for AnyValueVariant0Item { fn from(value: AnyValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for AnyValueVariant0Item { +impl ::std::convert::From for AnyValueVariant0Item { fn from(value: AnyValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -4498,7 +4534,7 @@ pub enum AnyValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&AnyValueVariant0ItemVariant0> for AnyValueVariant0ItemVariant0 { +impl ::std::convert::From<&AnyValueVariant0ItemVariant0> for AnyValueVariant0ItemVariant0 { fn from(value: &AnyValueVariant0ItemVariant0) -> Self { value.clone() } @@ -4526,14 +4562,14 @@ pub enum AnyValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&AnyValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&AnyValueVariant0ItemVariant0Variant3Range> for AnyValueVariant0ItemVariant0Variant3Range { fn from(value: &AnyValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for AnyValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for AnyValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -4545,13 +4581,13 @@ impl std::str::FromStr for AnyValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for AnyValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for AnyValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AnyValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for AnyValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4559,7 +4595,7 @@ impl std::convert::TryFrom<&::std::string::String> for AnyValueVariant0ItemVaria value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AnyValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for AnyValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4575,12 +4611,12 @@ impl ::std::fmt::Display for AnyValueVariant0ItemVariant0Variant3Range { } } } -impl From for AnyValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for AnyValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AnyValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for AnyValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -4692,7 +4728,7 @@ impl From for AnyValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum AnyValueVariant0ItemVariant1 {} -impl From<&AnyValueVariant0ItemVariant1> for AnyValueVariant0ItemVariant1 { +impl ::std::convert::From<&AnyValueVariant0ItemVariant1> for AnyValueVariant0ItemVariant1 { fn from(value: &AnyValueVariant0ItemVariant1) -> Self { value.clone() } @@ -4804,7 +4840,7 @@ impl From<&AnyValueVariant0ItemVariant1> for AnyValueVariant0ItemVariant1 { )] #[serde(deny_unknown_fields)] pub enum AnyValueVariant0ItemVariant2 {} -impl From<&AnyValueVariant0ItemVariant2> for AnyValueVariant0ItemVariant2 { +impl ::std::convert::From<&AnyValueVariant0ItemVariant2> for AnyValueVariant0ItemVariant2 { fn from(value: &AnyValueVariant0ItemVariant2) -> Self { value.clone() } @@ -4900,22 +4936,22 @@ pub enum AnyValueVariant1 { Variant2(AnyValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&AnyValueVariant1> for AnyValueVariant1 { +impl ::std::convert::From<&AnyValueVariant1> for AnyValueVariant1 { fn from(value: &AnyValueVariant1) -> Self { value.clone() } } -impl From for AnyValueVariant1 { +impl ::std::convert::From for AnyValueVariant1 { fn from(value: AnyValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for AnyValueVariant1 { +impl ::std::convert::From for AnyValueVariant1 { fn from(value: AnyValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for AnyValueVariant1 { +impl ::std::convert::From for AnyValueVariant1 { fn from(value: AnyValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -5034,7 +5070,7 @@ pub enum AnyValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&AnyValueVariant1Variant0> for AnyValueVariant1Variant0 { +impl ::std::convert::From<&AnyValueVariant1Variant0> for AnyValueVariant1Variant0 { fn from(value: &AnyValueVariant1Variant0) -> Self { value.clone() } @@ -5062,12 +5098,14 @@ pub enum AnyValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&AnyValueVariant1Variant0Variant3Range> for AnyValueVariant1Variant0Variant3Range { +impl ::std::convert::From<&AnyValueVariant1Variant0Variant3Range> + for AnyValueVariant1Variant0Variant3Range +{ fn from(value: &AnyValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for AnyValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for AnyValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -5079,13 +5117,13 @@ impl std::str::FromStr for AnyValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for AnyValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for AnyValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AnyValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for AnyValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5093,7 +5131,7 @@ impl std::convert::TryFrom<&::std::string::String> for AnyValueVariant1Variant0V value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AnyValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for AnyValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5109,12 +5147,12 @@ impl ::std::fmt::Display for AnyValueVariant1Variant0Variant3Range { } } } -impl From for AnyValueVariant1Variant0Variant3Range { +impl ::std::convert::From for AnyValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AnyValueVariant1Variant0Variant3Range { +impl ::std::convert::From for AnyValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -5223,7 +5261,7 @@ impl From for AnyValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum AnyValueVariant1Variant1 {} -impl From<&AnyValueVariant1Variant1> for AnyValueVariant1Variant1 { +impl ::std::convert::From<&AnyValueVariant1Variant1> for AnyValueVariant1Variant1 { fn from(value: &AnyValueVariant1Variant1) -> Self { value.clone() } @@ -5332,7 +5370,7 @@ impl From<&AnyValueVariant1Variant1> for AnyValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum AnyValueVariant1Variant2 {} -impl From<&AnyValueVariant1Variant2> for AnyValueVariant1Variant2 { +impl ::std::convert::From<&AnyValueVariant1Variant2> for AnyValueVariant1Variant2 { fn from(value: &AnyValueVariant1Variant2) -> Self { value.clone() } @@ -5360,17 +5398,17 @@ pub enum ArrayOrSignal { Variant0(::std::vec::Vec<::serde_json::Value>), Variant1(SignalRef), } -impl From<&ArrayOrSignal> for ArrayOrSignal { +impl ::std::convert::From<&ArrayOrSignal> for ArrayOrSignal { fn from(value: &ArrayOrSignal) -> Self { value.clone() } } -impl From<::std::vec::Vec<::serde_json::Value>> for ArrayOrSignal { +impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for ArrayOrSignal { fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self { Self::Variant0(value) } } -impl From for ArrayOrSignal { +impl ::std::convert::From for ArrayOrSignal { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -5558,17 +5596,17 @@ pub enum ArrayValue { Variant0(::std::vec::Vec), Variant1(ArrayValueVariant1), } -impl From<&ArrayValue> for ArrayValue { +impl ::std::convert::From<&ArrayValue> for ArrayValue { fn from(value: &ArrayValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for ArrayValue { +impl ::std::convert::From<::std::vec::Vec> for ArrayValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for ArrayValue { +impl ::std::convert::From for ArrayValue { fn from(value: ArrayValueVariant1) -> Self { Self::Variant1(value) } @@ -5677,22 +5715,22 @@ pub enum ArrayValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&ArrayValueVariant0Item> for ArrayValueVariant0Item { +impl ::std::convert::From<&ArrayValueVariant0Item> for ArrayValueVariant0Item { fn from(value: &ArrayValueVariant0Item) -> Self { value.clone() } } -impl From for ArrayValueVariant0Item { +impl ::std::convert::From for ArrayValueVariant0Item { fn from(value: ArrayValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for ArrayValueVariant0Item { +impl ::std::convert::From for ArrayValueVariant0Item { fn from(value: ArrayValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for ArrayValueVariant0Item { +impl ::std::convert::From for ArrayValueVariant0Item { fn from(value: ArrayValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -5824,7 +5862,7 @@ pub enum ArrayValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&ArrayValueVariant0ItemVariant0> for ArrayValueVariant0ItemVariant0 { +impl ::std::convert::From<&ArrayValueVariant0ItemVariant0> for ArrayValueVariant0ItemVariant0 { fn from(value: &ArrayValueVariant0ItemVariant0) -> Self { value.clone() } @@ -5852,14 +5890,14 @@ pub enum ArrayValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&ArrayValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&ArrayValueVariant0ItemVariant0Variant3Range> for ArrayValueVariant0ItemVariant0Variant3Range { fn from(value: &ArrayValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for ArrayValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for ArrayValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -5871,13 +5909,15 @@ impl std::str::FromStr for ArrayValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for ArrayValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for ArrayValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ArrayValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> + for ArrayValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5885,7 +5925,9 @@ impl std::convert::TryFrom<&::std::string::String> for ArrayValueVariant0ItemVar value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ArrayValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for ArrayValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5901,12 +5943,12 @@ impl ::std::fmt::Display for ArrayValueVariant0ItemVariant0Variant3Range { } } } -impl From for ArrayValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for ArrayValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ArrayValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for ArrayValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -6020,7 +6062,7 @@ impl From for ArrayValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum ArrayValueVariant0ItemVariant1 {} -impl From<&ArrayValueVariant0ItemVariant1> for ArrayValueVariant0ItemVariant1 { +impl ::std::convert::From<&ArrayValueVariant0ItemVariant1> for ArrayValueVariant0ItemVariant1 { fn from(value: &ArrayValueVariant0ItemVariant1) -> Self { value.clone() } @@ -6134,7 +6176,7 @@ impl From<&ArrayValueVariant0ItemVariant1> for ArrayValueVariant0ItemVariant1 { )] #[serde(deny_unknown_fields)] pub enum ArrayValueVariant0ItemVariant2 {} -impl From<&ArrayValueVariant0ItemVariant2> for ArrayValueVariant0ItemVariant2 { +impl ::std::convert::From<&ArrayValueVariant0ItemVariant2> for ArrayValueVariant0ItemVariant2 { fn from(value: &ArrayValueVariant0ItemVariant2) -> Self { value.clone() } @@ -6232,22 +6274,22 @@ pub enum ArrayValueVariant1 { Variant2(ArrayValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&ArrayValueVariant1> for ArrayValueVariant1 { +impl ::std::convert::From<&ArrayValueVariant1> for ArrayValueVariant1 { fn from(value: &ArrayValueVariant1) -> Self { value.clone() } } -impl From for ArrayValueVariant1 { +impl ::std::convert::From for ArrayValueVariant1 { fn from(value: ArrayValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for ArrayValueVariant1 { +impl ::std::convert::From for ArrayValueVariant1 { fn from(value: ArrayValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for ArrayValueVariant1 { +impl ::std::convert::From for ArrayValueVariant1 { fn from(value: ArrayValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -6368,7 +6410,7 @@ pub enum ArrayValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&ArrayValueVariant1Variant0> for ArrayValueVariant1Variant0 { +impl ::std::convert::From<&ArrayValueVariant1Variant0> for ArrayValueVariant1Variant0 { fn from(value: &ArrayValueVariant1Variant0) -> Self { value.clone() } @@ -6396,12 +6438,14 @@ pub enum ArrayValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&ArrayValueVariant1Variant0Variant3Range> for ArrayValueVariant1Variant0Variant3Range { +impl ::std::convert::From<&ArrayValueVariant1Variant0Variant3Range> + for ArrayValueVariant1Variant0Variant3Range +{ fn from(value: &ArrayValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for ArrayValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for ArrayValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -6413,13 +6457,13 @@ impl std::str::FromStr for ArrayValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for ArrayValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for ArrayValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ArrayValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for ArrayValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6427,7 +6471,7 @@ impl std::convert::TryFrom<&::std::string::String> for ArrayValueVariant1Variant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ArrayValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for ArrayValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6443,12 +6487,12 @@ impl ::std::fmt::Display for ArrayValueVariant1Variant0Variant3Range { } } } -impl From for ArrayValueVariant1Variant0Variant3Range { +impl ::std::convert::From for ArrayValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ArrayValueVariant1Variant0Variant3Range { +impl ::std::convert::From for ArrayValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -6559,7 +6603,7 @@ impl From for ArrayValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum ArrayValueVariant1Variant1 {} -impl From<&ArrayValueVariant1Variant1> for ArrayValueVariant1Variant1 { +impl ::std::convert::From<&ArrayValueVariant1Variant1> for ArrayValueVariant1Variant1 { fn from(value: &ArrayValueVariant1Variant1) -> Self { value.clone() } @@ -6670,7 +6714,7 @@ impl From<&ArrayValueVariant1Variant1> for ArrayValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum ArrayValueVariant1Variant2 {} -impl From<&ArrayValueVariant1Variant2> for ArrayValueVariant1Variant2 { +impl ::std::convert::From<&ArrayValueVariant1Variant2> for ArrayValueVariant1Variant2 { fn from(value: &ArrayValueVariant1Variant2) -> Self { value.clone() } @@ -6741,17 +6785,17 @@ pub enum Autosize { }, Variant2(SignalRef), } -impl From<&Autosize> for Autosize { +impl ::std::convert::From<&Autosize> for Autosize { fn from(value: &Autosize) -> Self { value.clone() } } -impl From for Autosize { +impl ::std::convert::From for Autosize { fn from(value: AutosizeVariant0) -> Self { Self::Variant0(value) } } -impl From for Autosize { +impl ::std::convert::From for Autosize { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -6797,7 +6841,7 @@ pub enum AutosizeVariant0 { #[serde(rename = "none")] None, } -impl From<&AutosizeVariant0> for AutosizeVariant0 { +impl ::std::convert::From<&AutosizeVariant0> for AutosizeVariant0 { fn from(value: &AutosizeVariant0) -> Self { value.clone() } @@ -6813,7 +6857,7 @@ impl ::std::fmt::Display for AutosizeVariant0 { } } } -impl std::str::FromStr for AutosizeVariant0 { +impl ::std::str::FromStr for AutosizeVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6826,13 +6870,13 @@ impl std::str::FromStr for AutosizeVariant0 { } } } -impl std::convert::TryFrom<&str> for AutosizeVariant0 { +impl ::std::convert::TryFrom<&str> for AutosizeVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AutosizeVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AutosizeVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6840,7 +6884,7 @@ impl std::convert::TryFrom<&::std::string::String> for AutosizeVariant0 { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AutosizeVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AutosizeVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6879,7 +6923,7 @@ pub enum AutosizeVariant1Contains { #[serde(rename = "padding")] Padding, } -impl From<&AutosizeVariant1Contains> for AutosizeVariant1Contains { +impl ::std::convert::From<&AutosizeVariant1Contains> for AutosizeVariant1Contains { fn from(value: &AutosizeVariant1Contains) -> Self { value.clone() } @@ -6892,7 +6936,7 @@ impl ::std::fmt::Display for AutosizeVariant1Contains { } } } -impl std::str::FromStr for AutosizeVariant1Contains { +impl ::std::str::FromStr for AutosizeVariant1Contains { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6902,13 +6946,13 @@ impl std::str::FromStr for AutosizeVariant1Contains { } } } -impl std::convert::TryFrom<&str> for AutosizeVariant1Contains { +impl ::std::convert::TryFrom<&str> for AutosizeVariant1Contains { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AutosizeVariant1Contains { +impl ::std::convert::TryFrom<&::std::string::String> for AutosizeVariant1Contains { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6916,7 +6960,7 @@ impl std::convert::TryFrom<&::std::string::String> for AutosizeVariant1Contains value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AutosizeVariant1Contains { +impl ::std::convert::TryFrom<::std::string::String> for AutosizeVariant1Contains { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6965,7 +7009,7 @@ pub enum AutosizeVariant1Type { #[serde(rename = "none")] None, } -impl From<&AutosizeVariant1Type> for AutosizeVariant1Type { +impl ::std::convert::From<&AutosizeVariant1Type> for AutosizeVariant1Type { fn from(value: &AutosizeVariant1Type) -> Self { value.clone() } @@ -6981,7 +7025,7 @@ impl ::std::fmt::Display for AutosizeVariant1Type { } } } -impl std::str::FromStr for AutosizeVariant1Type { +impl ::std::str::FromStr for AutosizeVariant1Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6994,13 +7038,13 @@ impl std::str::FromStr for AutosizeVariant1Type { } } } -impl std::convert::TryFrom<&str> for AutosizeVariant1Type { +impl ::std::convert::TryFrom<&str> for AutosizeVariant1Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AutosizeVariant1Type { +impl ::std::convert::TryFrom<&::std::string::String> for AutosizeVariant1Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7008,7 +7052,7 @@ impl std::convert::TryFrom<&::std::string::String> for AutosizeVariant1Type { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AutosizeVariant1Type { +impl ::std::convert::TryFrom<::std::string::String> for AutosizeVariant1Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7016,7 +7060,7 @@ impl std::convert::TryFrom<::std::string::String> for AutosizeVariant1Type { value.parse() } } -impl Default for AutosizeVariant1Type { +impl ::std::default::Default for AutosizeVariant1Type { fn default() -> Self { AutosizeVariant1Type::Pad } @@ -8278,7 +8322,7 @@ pub struct Axis { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub zindex: ::std::option::Option, } -impl From<&Axis> for Axis { +impl ::std::convert::From<&Axis> for Axis { fn from(value: &Axis) -> Self { value.clone() } @@ -8306,17 +8350,17 @@ pub enum AxisBandPosition { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisBandPosition> for AxisBandPosition { +impl ::std::convert::From<&AxisBandPosition> for AxisBandPosition { fn from(value: &AxisBandPosition) -> Self { value.clone() } } -impl From for AxisBandPosition { +impl ::std::convert::From for AxisBandPosition { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisBandPosition { +impl ::std::convert::From for AxisBandPosition { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -8344,12 +8388,12 @@ pub enum AxisDomainCap { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisDomainCap> for AxisDomainCap { +impl ::std::convert::From<&AxisDomainCap> for AxisDomainCap { fn from(value: &AxisDomainCap) -> Self { value.clone() } } -impl From for AxisDomainCap { +impl ::std::convert::From for AxisDomainCap { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -8381,12 +8425,12 @@ pub enum AxisDomainColor { Variant1(::std::string::String), Variant2(ColorValue), } -impl From<&AxisDomainColor> for AxisDomainColor { +impl ::std::convert::From<&AxisDomainColor> for AxisDomainColor { fn from(value: &AxisDomainColor) -> Self { value.clone() } } -impl From for AxisDomainColor { +impl ::std::convert::From for AxisDomainColor { fn from(value: ColorValue) -> Self { Self::Variant2(value) } @@ -8417,17 +8461,17 @@ pub enum AxisDomainDash { Variant0(::std::vec::Vec), Variant1(ArrayValue), } -impl From<&AxisDomainDash> for AxisDomainDash { +impl ::std::convert::From<&AxisDomainDash> for AxisDomainDash { fn from(value: &AxisDomainDash) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AxisDomainDash { +impl ::std::convert::From<::std::vec::Vec> for AxisDomainDash { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AxisDomainDash { +impl ::std::convert::From for AxisDomainDash { fn from(value: ArrayValue) -> Self { Self::Variant1(value) } @@ -8455,17 +8499,17 @@ pub enum AxisDomainDashOffset { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisDomainDashOffset> for AxisDomainDashOffset { +impl ::std::convert::From<&AxisDomainDashOffset> for AxisDomainDashOffset { fn from(value: &AxisDomainDashOffset) -> Self { value.clone() } } -impl From for AxisDomainDashOffset { +impl ::std::convert::From for AxisDomainDashOffset { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisDomainDashOffset { +impl ::std::convert::From for AxisDomainDashOffset { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -8493,17 +8537,17 @@ pub enum AxisDomainOpacity { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisDomainOpacity> for AxisDomainOpacity { +impl ::std::convert::From<&AxisDomainOpacity> for AxisDomainOpacity { fn from(value: &AxisDomainOpacity) -> Self { value.clone() } } -impl From for AxisDomainOpacity { +impl ::std::convert::From for AxisDomainOpacity { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisDomainOpacity { +impl ::std::convert::From for AxisDomainOpacity { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -8531,17 +8575,17 @@ pub enum AxisDomainWidth { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisDomainWidth> for AxisDomainWidth { +impl ::std::convert::From<&AxisDomainWidth> for AxisDomainWidth { fn from(value: &AxisDomainWidth) -> Self { value.clone() } } -impl From for AxisDomainWidth { +impl ::std::convert::From for AxisDomainWidth { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisDomainWidth { +impl ::std::convert::From for AxisDomainWidth { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -8593,11 +8637,23 @@ pub struct AxisEncode { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option, } -impl From<&AxisEncode> for AxisEncode { +impl ::std::convert::From<&AxisEncode> for AxisEncode { fn from(value: &AxisEncode) -> Self { value.clone() } } +impl ::std::default::Default for AxisEncode { + fn default() -> Self { + Self { + axis: Default::default(), + domain: Default::default(), + grid: Default::default(), + labels: Default::default(), + ticks: Default::default(), + title: Default::default(), + } + } +} #[doc = "AxisFormat"] #[doc = r""] #[doc = r"
JSON schema"] @@ -8679,12 +8735,12 @@ pub enum AxisFormat { }, Variant2(SignalRef), } -impl From<&AxisFormat> for AxisFormat { +impl ::std::convert::From<&AxisFormat> for AxisFormat { fn from(value: &AxisFormat) -> Self { value.clone() } } -impl From for AxisFormat { +impl ::std::convert::From for AxisFormat { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -8716,17 +8772,17 @@ pub enum AxisFormatType { Variant0(AxisFormatTypeVariant0), Variant1(SignalRef), } -impl From<&AxisFormatType> for AxisFormatType { +impl ::std::convert::From<&AxisFormatType> for AxisFormatType { fn from(value: &AxisFormatType) -> Self { value.clone() } } -impl From for AxisFormatType { +impl ::std::convert::From for AxisFormatType { fn from(value: AxisFormatTypeVariant0) -> Self { Self::Variant0(value) } } -impl From for AxisFormatType { +impl ::std::convert::From for AxisFormatType { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -8765,7 +8821,7 @@ pub enum AxisFormatTypeVariant0 { #[serde(rename = "utc")] Utc, } -impl From<&AxisFormatTypeVariant0> for AxisFormatTypeVariant0 { +impl ::std::convert::From<&AxisFormatTypeVariant0> for AxisFormatTypeVariant0 { fn from(value: &AxisFormatTypeVariant0) -> Self { value.clone() } @@ -8779,7 +8835,7 @@ impl ::std::fmt::Display for AxisFormatTypeVariant0 { } } } -impl std::str::FromStr for AxisFormatTypeVariant0 { +impl ::std::str::FromStr for AxisFormatTypeVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8790,13 +8846,13 @@ impl std::str::FromStr for AxisFormatTypeVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisFormatTypeVariant0 { +impl ::std::convert::TryFrom<&str> for AxisFormatTypeVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisFormatTypeVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisFormatTypeVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8804,7 +8860,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisFormatTypeVariant0 { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisFormatTypeVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisFormatTypeVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8835,12 +8891,12 @@ pub enum AxisGridCap { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisGridCap> for AxisGridCap { +impl ::std::convert::From<&AxisGridCap> for AxisGridCap { fn from(value: &AxisGridCap) -> Self { value.clone() } } -impl From for AxisGridCap { +impl ::std::convert::From for AxisGridCap { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -8872,12 +8928,12 @@ pub enum AxisGridColor { Variant1(::std::string::String), Variant2(ColorValue), } -impl From<&AxisGridColor> for AxisGridColor { +impl ::std::convert::From<&AxisGridColor> for AxisGridColor { fn from(value: &AxisGridColor) -> Self { value.clone() } } -impl From for AxisGridColor { +impl ::std::convert::From for AxisGridColor { fn from(value: ColorValue) -> Self { Self::Variant2(value) } @@ -8908,17 +8964,17 @@ pub enum AxisGridDash { Variant0(::std::vec::Vec), Variant1(ArrayValue), } -impl From<&AxisGridDash> for AxisGridDash { +impl ::std::convert::From<&AxisGridDash> for AxisGridDash { fn from(value: &AxisGridDash) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AxisGridDash { +impl ::std::convert::From<::std::vec::Vec> for AxisGridDash { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AxisGridDash { +impl ::std::convert::From for AxisGridDash { fn from(value: ArrayValue) -> Self { Self::Variant1(value) } @@ -8946,17 +9002,17 @@ pub enum AxisGridDashOffset { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisGridDashOffset> for AxisGridDashOffset { +impl ::std::convert::From<&AxisGridDashOffset> for AxisGridDashOffset { fn from(value: &AxisGridDashOffset) -> Self { value.clone() } } -impl From for AxisGridDashOffset { +impl ::std::convert::From for AxisGridDashOffset { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisGridDashOffset { +impl ::std::convert::From for AxisGridDashOffset { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -8984,17 +9040,17 @@ pub enum AxisGridOpacity { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisGridOpacity> for AxisGridOpacity { +impl ::std::convert::From<&AxisGridOpacity> for AxisGridOpacity { fn from(value: &AxisGridOpacity) -> Self { value.clone() } } -impl From for AxisGridOpacity { +impl ::std::convert::From for AxisGridOpacity { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisGridOpacity { +impl ::std::convert::From for AxisGridOpacity { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9022,17 +9078,17 @@ pub enum AxisGridWidth { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisGridWidth> for AxisGridWidth { +impl ::std::convert::From<&AxisGridWidth> for AxisGridWidth { fn from(value: &AxisGridWidth) -> Self { value.clone() } } -impl From for AxisGridWidth { +impl ::std::convert::From for AxisGridWidth { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisGridWidth { +impl ::std::convert::From for AxisGridWidth { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9064,17 +9120,17 @@ pub enum AxisLabelAlign { Variant0(AxisLabelAlignVariant0), Variant1(AlignValue), } -impl From<&AxisLabelAlign> for AxisLabelAlign { +impl ::std::convert::From<&AxisLabelAlign> for AxisLabelAlign { fn from(value: &AxisLabelAlign) -> Self { value.clone() } } -impl From for AxisLabelAlign { +impl ::std::convert::From for AxisLabelAlign { fn from(value: AxisLabelAlignVariant0) -> Self { Self::Variant0(value) } } -impl From for AxisLabelAlign { +impl ::std::convert::From for AxisLabelAlign { fn from(value: AlignValue) -> Self { Self::Variant1(value) } @@ -9113,7 +9169,7 @@ pub enum AxisLabelAlignVariant0 { #[serde(rename = "center")] Center, } -impl From<&AxisLabelAlignVariant0> for AxisLabelAlignVariant0 { +impl ::std::convert::From<&AxisLabelAlignVariant0> for AxisLabelAlignVariant0 { fn from(value: &AxisLabelAlignVariant0) -> Self { value.clone() } @@ -9127,7 +9183,7 @@ impl ::std::fmt::Display for AxisLabelAlignVariant0 { } } } -impl std::str::FromStr for AxisLabelAlignVariant0 { +impl ::std::str::FromStr for AxisLabelAlignVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9138,13 +9194,13 @@ impl std::str::FromStr for AxisLabelAlignVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisLabelAlignVariant0 { +impl ::std::convert::TryFrom<&str> for AxisLabelAlignVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisLabelAlignVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisLabelAlignVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9152,7 +9208,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisLabelAlignVariant0 { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisLabelAlignVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisLabelAlignVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9183,17 +9239,17 @@ pub enum AxisLabelAngle { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelAngle> for AxisLabelAngle { +impl ::std::convert::From<&AxisLabelAngle> for AxisLabelAngle { fn from(value: &AxisLabelAngle) -> Self { value.clone() } } -impl From for AxisLabelAngle { +impl ::std::convert::From for AxisLabelAngle { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelAngle { +impl ::std::convert::From for AxisLabelAngle { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9228,17 +9284,17 @@ pub enum AxisLabelBaseline { Variant0(AxisLabelBaselineVariant0), Variant1(BaselineValue), } -impl From<&AxisLabelBaseline> for AxisLabelBaseline { +impl ::std::convert::From<&AxisLabelBaseline> for AxisLabelBaseline { fn from(value: &AxisLabelBaseline) -> Self { value.clone() } } -impl From for AxisLabelBaseline { +impl ::std::convert::From for AxisLabelBaseline { fn from(value: AxisLabelBaselineVariant0) -> Self { Self::Variant0(value) } } -impl From for AxisLabelBaseline { +impl ::std::convert::From for AxisLabelBaseline { fn from(value: BaselineValue) -> Self { Self::Variant1(value) } @@ -9286,7 +9342,7 @@ pub enum AxisLabelBaselineVariant0 { #[serde(rename = "line-bottom")] LineBottom, } -impl From<&AxisLabelBaselineVariant0> for AxisLabelBaselineVariant0 { +impl ::std::convert::From<&AxisLabelBaselineVariant0> for AxisLabelBaselineVariant0 { fn from(value: &AxisLabelBaselineVariant0) -> Self { value.clone() } @@ -9303,7 +9359,7 @@ impl ::std::fmt::Display for AxisLabelBaselineVariant0 { } } } -impl std::str::FromStr for AxisLabelBaselineVariant0 { +impl ::std::str::FromStr for AxisLabelBaselineVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9317,13 +9373,13 @@ impl std::str::FromStr for AxisLabelBaselineVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisLabelBaselineVariant0 { +impl ::std::convert::TryFrom<&str> for AxisLabelBaselineVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisLabelBaselineVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisLabelBaselineVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9331,7 +9387,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisLabelBaselineVariant0 value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisLabelBaselineVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisLabelBaselineVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9366,22 +9422,22 @@ pub enum AxisLabelBound { Variant1(f64), Variant2(SignalRef), } -impl From<&AxisLabelBound> for AxisLabelBound { +impl ::std::convert::From<&AxisLabelBound> for AxisLabelBound { fn from(value: &AxisLabelBound) -> Self { value.clone() } } -impl From for AxisLabelBound { +impl ::std::convert::From for AxisLabelBound { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for AxisLabelBound { +impl ::std::convert::From for AxisLabelBound { fn from(value: f64) -> Self { Self::Variant1(value) } } -impl From for AxisLabelBound { +impl ::std::convert::From for AxisLabelBound { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -9413,12 +9469,12 @@ pub enum AxisLabelColor { Variant1(::std::string::String), Variant2(ColorValue), } -impl From<&AxisLabelColor> for AxisLabelColor { +impl ::std::convert::From<&AxisLabelColor> for AxisLabelColor { fn from(value: &AxisLabelColor) -> Self { value.clone() } } -impl From for AxisLabelColor { +impl ::std::convert::From for AxisLabelColor { fn from(value: ColorValue) -> Self { Self::Variant2(value) } @@ -9450,22 +9506,22 @@ pub enum AxisLabelFlush { Variant1(f64), Variant2(SignalRef), } -impl From<&AxisLabelFlush> for AxisLabelFlush { +impl ::std::convert::From<&AxisLabelFlush> for AxisLabelFlush { fn from(value: &AxisLabelFlush) -> Self { value.clone() } } -impl From for AxisLabelFlush { +impl ::std::convert::From for AxisLabelFlush { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for AxisLabelFlush { +impl ::std::convert::From for AxisLabelFlush { fn from(value: f64) -> Self { Self::Variant1(value) } } -impl From for AxisLabelFlush { +impl ::std::convert::From for AxisLabelFlush { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -9493,12 +9549,12 @@ pub enum AxisLabelFont { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisLabelFont> for AxisLabelFont { +impl ::std::convert::From<&AxisLabelFont> for AxisLabelFont { fn from(value: &AxisLabelFont) -> Self { value.clone() } } -impl From for AxisLabelFont { +impl ::std::convert::From for AxisLabelFont { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -9526,17 +9582,17 @@ pub enum AxisLabelFontSize { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelFontSize> for AxisLabelFontSize { +impl ::std::convert::From<&AxisLabelFontSize> for AxisLabelFontSize { fn from(value: &AxisLabelFontSize) -> Self { value.clone() } } -impl From for AxisLabelFontSize { +impl ::std::convert::From for AxisLabelFontSize { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelFontSize { +impl ::std::convert::From for AxisLabelFontSize { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9564,12 +9620,12 @@ pub enum AxisLabelFontStyle { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisLabelFontStyle> for AxisLabelFontStyle { +impl ::std::convert::From<&AxisLabelFontStyle> for AxisLabelFontStyle { fn from(value: &AxisLabelFontStyle) -> Self { value.clone() } } -impl From for AxisLabelFontStyle { +impl ::std::convert::From for AxisLabelFontStyle { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -9621,17 +9677,17 @@ pub enum AxisLabelFontWeight { Variant0(MyEnum), Variant1(FontWeightValue), } -impl From<&AxisLabelFontWeight> for AxisLabelFontWeight { +impl ::std::convert::From<&AxisLabelFontWeight> for AxisLabelFontWeight { fn from(value: &AxisLabelFontWeight) -> Self { value.clone() } } -impl From for AxisLabelFontWeight { +impl ::std::convert::From for AxisLabelFontWeight { fn from(value: MyEnum) -> Self { Self::Variant0(value) } } -impl From for AxisLabelFontWeight { +impl ::std::convert::From for AxisLabelFontWeight { fn from(value: FontWeightValue) -> Self { Self::Variant1(value) } @@ -9659,17 +9715,17 @@ pub enum AxisLabelLimit { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelLimit> for AxisLabelLimit { +impl ::std::convert::From<&AxisLabelLimit> for AxisLabelLimit { fn from(value: &AxisLabelLimit) -> Self { value.clone() } } -impl From for AxisLabelLimit { +impl ::std::convert::From for AxisLabelLimit { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelLimit { +impl ::std::convert::From for AxisLabelLimit { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9697,17 +9753,17 @@ pub enum AxisLabelLineHeight { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelLineHeight> for AxisLabelLineHeight { +impl ::std::convert::From<&AxisLabelLineHeight> for AxisLabelLineHeight { fn from(value: &AxisLabelLineHeight) -> Self { value.clone() } } -impl From for AxisLabelLineHeight { +impl ::std::convert::From for AxisLabelLineHeight { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelLineHeight { +impl ::std::convert::From for AxisLabelLineHeight { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9735,17 +9791,17 @@ pub enum AxisLabelOffset { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelOffset> for AxisLabelOffset { +impl ::std::convert::From<&AxisLabelOffset> for AxisLabelOffset { fn from(value: &AxisLabelOffset) -> Self { value.clone() } } -impl From for AxisLabelOffset { +impl ::std::convert::From for AxisLabelOffset { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelOffset { +impl ::std::convert::From for AxisLabelOffset { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9773,17 +9829,17 @@ pub enum AxisLabelOpacity { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelOpacity> for AxisLabelOpacity { +impl ::std::convert::From<&AxisLabelOpacity> for AxisLabelOpacity { fn from(value: &AxisLabelOpacity) -> Self { value.clone() } } -impl From for AxisLabelOpacity { +impl ::std::convert::From for AxisLabelOpacity { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelOpacity { +impl ::std::convert::From for AxisLabelOpacity { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9811,17 +9867,17 @@ pub enum AxisLabelPadding { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisLabelPadding> for AxisLabelPadding { +impl ::std::convert::From<&AxisLabelPadding> for AxisLabelPadding { fn from(value: &AxisLabelPadding) -> Self { value.clone() } } -impl From for AxisLabelPadding { +impl ::std::convert::From for AxisLabelPadding { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisLabelPadding { +impl ::std::convert::From for AxisLabelPadding { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9849,17 +9905,17 @@ pub enum AxisMaxExtent { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisMaxExtent> for AxisMaxExtent { +impl ::std::convert::From<&AxisMaxExtent> for AxisMaxExtent { fn from(value: &AxisMaxExtent) -> Self { value.clone() } } -impl From for AxisMaxExtent { +impl ::std::convert::From for AxisMaxExtent { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisMaxExtent { +impl ::std::convert::From for AxisMaxExtent { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9887,17 +9943,17 @@ pub enum AxisMinExtent { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisMinExtent> for AxisMinExtent { +impl ::std::convert::From<&AxisMinExtent> for AxisMinExtent { fn from(value: &AxisMinExtent) -> Self { value.clone() } } -impl From for AxisMinExtent { +impl ::std::convert::From for AxisMinExtent { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisMinExtent { +impl ::std::convert::From for AxisMinExtent { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9925,17 +9981,17 @@ pub enum AxisOffset { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisOffset> for AxisOffset { +impl ::std::convert::From<&AxisOffset> for AxisOffset { fn from(value: &AxisOffset) -> Self { value.clone() } } -impl From for AxisOffset { +impl ::std::convert::From for AxisOffset { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisOffset { +impl ::std::convert::From for AxisOffset { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -9968,17 +10024,17 @@ pub enum AxisOrient { Variant0(AxisOrientVariant0), Variant1(SignalRef), } -impl From<&AxisOrient> for AxisOrient { +impl ::std::convert::From<&AxisOrient> for AxisOrient { fn from(value: &AxisOrient) -> Self { value.clone() } } -impl From for AxisOrient { +impl ::std::convert::From for AxisOrient { fn from(value: AxisOrientVariant0) -> Self { Self::Variant0(value) } } -impl From for AxisOrient { +impl ::std::convert::From for AxisOrient { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -10020,7 +10076,7 @@ pub enum AxisOrientVariant0 { #[serde(rename = "right")] Right, } -impl From<&AxisOrientVariant0> for AxisOrientVariant0 { +impl ::std::convert::From<&AxisOrientVariant0> for AxisOrientVariant0 { fn from(value: &AxisOrientVariant0) -> Self { value.clone() } @@ -10035,7 +10091,7 @@ impl ::std::fmt::Display for AxisOrientVariant0 { } } } -impl std::str::FromStr for AxisOrientVariant0 { +impl ::std::str::FromStr for AxisOrientVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10047,13 +10103,13 @@ impl std::str::FromStr for AxisOrientVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisOrientVariant0 { +impl ::std::convert::TryFrom<&str> for AxisOrientVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisOrientVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisOrientVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10061,7 +10117,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisOrientVariant0 { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisOrientVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisOrientVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10092,17 +10148,17 @@ pub enum AxisPosition { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisPosition> for AxisPosition { +impl ::std::convert::From<&AxisPosition> for AxisPosition { fn from(value: &AxisPosition) -> Self { value.clone() } } -impl From for AxisPosition { +impl ::std::convert::From for AxisPosition { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisPosition { +impl ::std::convert::From for AxisPosition { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10130,12 +10186,12 @@ pub enum AxisTickCap { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisTickCap> for AxisTickCap { +impl ::std::convert::From<&AxisTickCap> for AxisTickCap { fn from(value: &AxisTickCap) -> Self { value.clone() } } -impl From for AxisTickCap { +impl ::std::convert::From for AxisTickCap { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -10167,12 +10223,12 @@ pub enum AxisTickColor { Variant1(::std::string::String), Variant2(ColorValue), } -impl From<&AxisTickColor> for AxisTickColor { +impl ::std::convert::From<&AxisTickColor> for AxisTickColor { fn from(value: &AxisTickColor) -> Self { value.clone() } } -impl From for AxisTickColor { +impl ::std::convert::From for AxisTickColor { fn from(value: ColorValue) -> Self { Self::Variant2(value) } @@ -10203,17 +10259,17 @@ pub enum AxisTickDash { Variant0(::std::vec::Vec), Variant1(ArrayValue), } -impl From<&AxisTickDash> for AxisTickDash { +impl ::std::convert::From<&AxisTickDash> for AxisTickDash { fn from(value: &AxisTickDash) -> Self { value.clone() } } -impl From<::std::vec::Vec> for AxisTickDash { +impl ::std::convert::From<::std::vec::Vec> for AxisTickDash { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for AxisTickDash { +impl ::std::convert::From for AxisTickDash { fn from(value: ArrayValue) -> Self { Self::Variant1(value) } @@ -10241,17 +10297,17 @@ pub enum AxisTickDashOffset { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTickDashOffset> for AxisTickDashOffset { +impl ::std::convert::From<&AxisTickDashOffset> for AxisTickDashOffset { fn from(value: &AxisTickDashOffset) -> Self { value.clone() } } -impl From for AxisTickDashOffset { +impl ::std::convert::From for AxisTickDashOffset { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTickDashOffset { +impl ::std::convert::From for AxisTickDashOffset { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10279,17 +10335,17 @@ pub enum AxisTickOffset { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTickOffset> for AxisTickOffset { +impl ::std::convert::From<&AxisTickOffset> for AxisTickOffset { fn from(value: &AxisTickOffset) -> Self { value.clone() } } -impl From for AxisTickOffset { +impl ::std::convert::From for AxisTickOffset { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTickOffset { +impl ::std::convert::From for AxisTickOffset { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10317,17 +10373,17 @@ pub enum AxisTickOpacity { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTickOpacity> for AxisTickOpacity { +impl ::std::convert::From<&AxisTickOpacity> for AxisTickOpacity { fn from(value: &AxisTickOpacity) -> Self { value.clone() } } -impl From for AxisTickOpacity { +impl ::std::convert::From for AxisTickOpacity { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTickOpacity { +impl ::std::convert::From for AxisTickOpacity { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10355,17 +10411,17 @@ pub enum AxisTickRound { Variant0(bool), Variant1(BooleanValue), } -impl From<&AxisTickRound> for AxisTickRound { +impl ::std::convert::From<&AxisTickRound> for AxisTickRound { fn from(value: &AxisTickRound) -> Self { value.clone() } } -impl From for AxisTickRound { +impl ::std::convert::From for AxisTickRound { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for AxisTickRound { +impl ::std::convert::From for AxisTickRound { fn from(value: BooleanValue) -> Self { Self::Variant1(value) } @@ -10393,17 +10449,17 @@ pub enum AxisTickSize { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTickSize> for AxisTickSize { +impl ::std::convert::From<&AxisTickSize> for AxisTickSize { fn from(value: &AxisTickSize) -> Self { value.clone() } } -impl From for AxisTickSize { +impl ::std::convert::From for AxisTickSize { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTickSize { +impl ::std::convert::From for AxisTickSize { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10431,17 +10487,17 @@ pub enum AxisTickWidth { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTickWidth> for AxisTickWidth { +impl ::std::convert::From<&AxisTickWidth> for AxisTickWidth { fn from(value: &AxisTickWidth) -> Self { value.clone() } } -impl From for AxisTickWidth { +impl ::std::convert::From for AxisTickWidth { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTickWidth { +impl ::std::convert::From for AxisTickWidth { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10473,17 +10529,17 @@ pub enum AxisTitleAlign { Variant0(AxisTitleAlignVariant0), Variant1(AlignValue), } -impl From<&AxisTitleAlign> for AxisTitleAlign { +impl ::std::convert::From<&AxisTitleAlign> for AxisTitleAlign { fn from(value: &AxisTitleAlign) -> Self { value.clone() } } -impl From for AxisTitleAlign { +impl ::std::convert::From for AxisTitleAlign { fn from(value: AxisTitleAlignVariant0) -> Self { Self::Variant0(value) } } -impl From for AxisTitleAlign { +impl ::std::convert::From for AxisTitleAlign { fn from(value: AlignValue) -> Self { Self::Variant1(value) } @@ -10522,7 +10578,7 @@ pub enum AxisTitleAlignVariant0 { #[serde(rename = "center")] Center, } -impl From<&AxisTitleAlignVariant0> for AxisTitleAlignVariant0 { +impl ::std::convert::From<&AxisTitleAlignVariant0> for AxisTitleAlignVariant0 { fn from(value: &AxisTitleAlignVariant0) -> Self { value.clone() } @@ -10536,7 +10592,7 @@ impl ::std::fmt::Display for AxisTitleAlignVariant0 { } } } -impl std::str::FromStr for AxisTitleAlignVariant0 { +impl ::std::str::FromStr for AxisTitleAlignVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10547,13 +10603,13 @@ impl std::str::FromStr for AxisTitleAlignVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisTitleAlignVariant0 { +impl ::std::convert::TryFrom<&str> for AxisTitleAlignVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisTitleAlignVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisTitleAlignVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10561,7 +10617,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisTitleAlignVariant0 { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisTitleAlignVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisTitleAlignVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10597,17 +10653,17 @@ pub enum AxisTitleAnchor { Variant0(::std::option::Option), Variant1(AnchorValue), } -impl From<&AxisTitleAnchor> for AxisTitleAnchor { +impl ::std::convert::From<&AxisTitleAnchor> for AxisTitleAnchor { fn from(value: &AxisTitleAnchor) -> Self { value.clone() } } -impl From<::std::option::Option> for AxisTitleAnchor { +impl ::std::convert::From<::std::option::Option> for AxisTitleAnchor { fn from(value: ::std::option::Option) -> Self { Self::Variant0(value) } } -impl From for AxisTitleAnchor { +impl ::std::convert::From for AxisTitleAnchor { fn from(value: AnchorValue) -> Self { Self::Variant1(value) } @@ -10647,7 +10703,7 @@ pub enum AxisTitleAnchorVariant0 { #[serde(rename = "end")] End, } -impl From<&AxisTitleAnchorVariant0> for AxisTitleAnchorVariant0 { +impl ::std::convert::From<&AxisTitleAnchorVariant0> for AxisTitleAnchorVariant0 { fn from(value: &AxisTitleAnchorVariant0) -> Self { value.clone() } @@ -10661,7 +10717,7 @@ impl ::std::fmt::Display for AxisTitleAnchorVariant0 { } } } -impl std::str::FromStr for AxisTitleAnchorVariant0 { +impl ::std::str::FromStr for AxisTitleAnchorVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10672,13 +10728,13 @@ impl std::str::FromStr for AxisTitleAnchorVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisTitleAnchorVariant0 { +impl ::std::convert::TryFrom<&str> for AxisTitleAnchorVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisTitleAnchorVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisTitleAnchorVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10686,7 +10742,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisTitleAnchorVariant0 { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisTitleAnchorVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisTitleAnchorVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10717,17 +10773,17 @@ pub enum AxisTitleAngle { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleAngle> for AxisTitleAngle { +impl ::std::convert::From<&AxisTitleAngle> for AxisTitleAngle { fn from(value: &AxisTitleAngle) -> Self { value.clone() } } -impl From for AxisTitleAngle { +impl ::std::convert::From for AxisTitleAngle { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleAngle { +impl ::std::convert::From for AxisTitleAngle { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -10762,17 +10818,17 @@ pub enum AxisTitleBaseline { Variant0(AxisTitleBaselineVariant0), Variant1(BaselineValue), } -impl From<&AxisTitleBaseline> for AxisTitleBaseline { +impl ::std::convert::From<&AxisTitleBaseline> for AxisTitleBaseline { fn from(value: &AxisTitleBaseline) -> Self { value.clone() } } -impl From for AxisTitleBaseline { +impl ::std::convert::From for AxisTitleBaseline { fn from(value: AxisTitleBaselineVariant0) -> Self { Self::Variant0(value) } } -impl From for AxisTitleBaseline { +impl ::std::convert::From for AxisTitleBaseline { fn from(value: BaselineValue) -> Self { Self::Variant1(value) } @@ -10820,7 +10876,7 @@ pub enum AxisTitleBaselineVariant0 { #[serde(rename = "line-bottom")] LineBottom, } -impl From<&AxisTitleBaselineVariant0> for AxisTitleBaselineVariant0 { +impl ::std::convert::From<&AxisTitleBaselineVariant0> for AxisTitleBaselineVariant0 { fn from(value: &AxisTitleBaselineVariant0) -> Self { value.clone() } @@ -10837,7 +10893,7 @@ impl ::std::fmt::Display for AxisTitleBaselineVariant0 { } } } -impl std::str::FromStr for AxisTitleBaselineVariant0 { +impl ::std::str::FromStr for AxisTitleBaselineVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10851,13 +10907,13 @@ impl std::str::FromStr for AxisTitleBaselineVariant0 { } } } -impl std::convert::TryFrom<&str> for AxisTitleBaselineVariant0 { +impl ::std::convert::TryFrom<&str> for AxisTitleBaselineVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for AxisTitleBaselineVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for AxisTitleBaselineVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10865,7 +10921,7 @@ impl std::convert::TryFrom<&::std::string::String> for AxisTitleBaselineVariant0 value.parse() } } -impl std::convert::TryFrom<::std::string::String> for AxisTitleBaselineVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for AxisTitleBaselineVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10900,12 +10956,12 @@ pub enum AxisTitleColor { Variant1(::std::string::String), Variant2(ColorValue), } -impl From<&AxisTitleColor> for AxisTitleColor { +impl ::std::convert::From<&AxisTitleColor> for AxisTitleColor { fn from(value: &AxisTitleColor) -> Self { value.clone() } } -impl From for AxisTitleColor { +impl ::std::convert::From for AxisTitleColor { fn from(value: ColorValue) -> Self { Self::Variant2(value) } @@ -10933,12 +10989,12 @@ pub enum AxisTitleFont { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisTitleFont> for AxisTitleFont { +impl ::std::convert::From<&AxisTitleFont> for AxisTitleFont { fn from(value: &AxisTitleFont) -> Self { value.clone() } } -impl From for AxisTitleFont { +impl ::std::convert::From for AxisTitleFont { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -10966,17 +11022,17 @@ pub enum AxisTitleFontSize { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleFontSize> for AxisTitleFontSize { +impl ::std::convert::From<&AxisTitleFontSize> for AxisTitleFontSize { fn from(value: &AxisTitleFontSize) -> Self { value.clone() } } -impl From for AxisTitleFontSize { +impl ::std::convert::From for AxisTitleFontSize { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleFontSize { +impl ::std::convert::From for AxisTitleFontSize { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11004,12 +11060,12 @@ pub enum AxisTitleFontStyle { Variant0(::std::string::String), Variant1(StringValue), } -impl From<&AxisTitleFontStyle> for AxisTitleFontStyle { +impl ::std::convert::From<&AxisTitleFontStyle> for AxisTitleFontStyle { fn from(value: &AxisTitleFontStyle) -> Self { value.clone() } } -impl From for AxisTitleFontStyle { +impl ::std::convert::From for AxisTitleFontStyle { fn from(value: StringValue) -> Self { Self::Variant1(value) } @@ -11061,17 +11117,17 @@ pub enum AxisTitleFontWeight { Variant0(MyEnum), Variant1(FontWeightValue), } -impl From<&AxisTitleFontWeight> for AxisTitleFontWeight { +impl ::std::convert::From<&AxisTitleFontWeight> for AxisTitleFontWeight { fn from(value: &AxisTitleFontWeight) -> Self { value.clone() } } -impl From for AxisTitleFontWeight { +impl ::std::convert::From for AxisTitleFontWeight { fn from(value: MyEnum) -> Self { Self::Variant0(value) } } -impl From for AxisTitleFontWeight { +impl ::std::convert::From for AxisTitleFontWeight { fn from(value: FontWeightValue) -> Self { Self::Variant1(value) } @@ -11099,17 +11155,17 @@ pub enum AxisTitleLimit { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleLimit> for AxisTitleLimit { +impl ::std::convert::From<&AxisTitleLimit> for AxisTitleLimit { fn from(value: &AxisTitleLimit) -> Self { value.clone() } } -impl From for AxisTitleLimit { +impl ::std::convert::From for AxisTitleLimit { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleLimit { +impl ::std::convert::From for AxisTitleLimit { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11137,17 +11193,17 @@ pub enum AxisTitleLineHeight { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleLineHeight> for AxisTitleLineHeight { +impl ::std::convert::From<&AxisTitleLineHeight> for AxisTitleLineHeight { fn from(value: &AxisTitleLineHeight) -> Self { value.clone() } } -impl From for AxisTitleLineHeight { +impl ::std::convert::From for AxisTitleLineHeight { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleLineHeight { +impl ::std::convert::From for AxisTitleLineHeight { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11175,17 +11231,17 @@ pub enum AxisTitleOpacity { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleOpacity> for AxisTitleOpacity { +impl ::std::convert::From<&AxisTitleOpacity> for AxisTitleOpacity { fn from(value: &AxisTitleOpacity) -> Self { value.clone() } } -impl From for AxisTitleOpacity { +impl ::std::convert::From for AxisTitleOpacity { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleOpacity { +impl ::std::convert::From for AxisTitleOpacity { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11213,17 +11269,17 @@ pub enum AxisTitlePadding { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitlePadding> for AxisTitlePadding { +impl ::std::convert::From<&AxisTitlePadding> for AxisTitlePadding { fn from(value: &AxisTitlePadding) -> Self { value.clone() } } -impl From for AxisTitlePadding { +impl ::std::convert::From for AxisTitlePadding { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitlePadding { +impl ::std::convert::From for AxisTitlePadding { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11251,17 +11307,17 @@ pub enum AxisTitleX { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleX> for AxisTitleX { +impl ::std::convert::From<&AxisTitleX> for AxisTitleX { fn from(value: &AxisTitleX) -> Self { value.clone() } } -impl From for AxisTitleX { +impl ::std::convert::From for AxisTitleX { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleX { +impl ::std::convert::From for AxisTitleX { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11289,17 +11345,17 @@ pub enum AxisTitleY { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTitleY> for AxisTitleY { +impl ::std::convert::From<&AxisTitleY> for AxisTitleY { fn from(value: &AxisTitleY) -> Self { value.clone() } } -impl From for AxisTitleY { +impl ::std::convert::From for AxisTitleY { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTitleY { +impl ::std::convert::From for AxisTitleY { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11327,17 +11383,17 @@ pub enum AxisTranslate { Variant0(f64), Variant1(NumberValue), } -impl From<&AxisTranslate> for AxisTranslate { +impl ::std::convert::From<&AxisTranslate> for AxisTranslate { fn from(value: &AxisTranslate) -> Self { value.clone() } } -impl From for AxisTranslate { +impl ::std::convert::From for AxisTranslate { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for AxisTranslate { +impl ::std::convert::From for AxisTranslate { fn from(value: NumberValue) -> Self { Self::Variant1(value) } @@ -11360,17 +11416,17 @@ impl ::std::ops::Deref for Background { &self.0 } } -impl From for StringOrSignal { +impl ::std::convert::From for StringOrSignal { fn from(value: Background) -> Self { value.0 } } -impl From<&Background> for Background { +impl ::std::convert::From<&Background> for Background { fn from(value: &Background) -> Self { value.clone() } } -impl From for Background { +impl ::std::convert::From for Background { fn from(value: StringOrSignal) -> Self { Self(value) } @@ -11574,12 +11630,12 @@ pub enum BaseColorValue { color: BaseColorValueVariant4Color, }, } -impl From<&BaseColorValue> for BaseColorValue { +impl ::std::convert::From<&BaseColorValue> for BaseColorValue { fn from(value: &BaseColorValue) -> Self { value.clone() } } -impl From for BaseColorValue { +impl ::std::convert::From for BaseColorValue { fn from(value: BaseColorValueVariant0) -> Self { Self::Variant0(value) } @@ -11684,22 +11740,22 @@ pub enum BaseColorValueVariant0 { Variant2(BaseColorValueVariant0Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&BaseColorValueVariant0> for BaseColorValueVariant0 { +impl ::std::convert::From<&BaseColorValueVariant0> for BaseColorValueVariant0 { fn from(value: &BaseColorValueVariant0) -> Self { value.clone() } } -impl From for BaseColorValueVariant0 { +impl ::std::convert::From for BaseColorValueVariant0 { fn from(value: BaseColorValueVariant0Variant0) -> Self { Self::Variant0(value) } } -impl From for BaseColorValueVariant0 { +impl ::std::convert::From for BaseColorValueVariant0 { fn from(value: BaseColorValueVariant0Variant1) -> Self { Self::Variant1(value) } } -impl From for BaseColorValueVariant0 { +impl ::std::convert::From for BaseColorValueVariant0 { fn from(value: BaseColorValueVariant0Variant2) -> Self { Self::Variant2(value) } @@ -11827,7 +11883,7 @@ pub enum BaseColorValueVariant0Variant0 { scale: ::std::option::Option, }, } -impl From<&BaseColorValueVariant0Variant0> for BaseColorValueVariant0Variant0 { +impl ::std::convert::From<&BaseColorValueVariant0Variant0> for BaseColorValueVariant0Variant0 { fn from(value: &BaseColorValueVariant0Variant0) -> Self { value.clone() } @@ -11855,14 +11911,14 @@ pub enum BaseColorValueVariant0Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BaseColorValueVariant0Variant0Variant3Range> +impl ::std::convert::From<&BaseColorValueVariant0Variant0Variant3Range> for BaseColorValueVariant0Variant0Variant3Range { fn from(value: &BaseColorValueVariant0Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BaseColorValueVariant0Variant0Variant3Range { +impl ::std::str::FromStr for BaseColorValueVariant0Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -11874,13 +11930,15 @@ impl std::str::FromStr for BaseColorValueVariant0Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BaseColorValueVariant0Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BaseColorValueVariant0Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BaseColorValueVariant0Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> + for BaseColorValueVariant0Variant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11888,7 +11946,9 @@ impl std::convert::TryFrom<&::std::string::String> for BaseColorValueVariant0Var value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BaseColorValueVariant0Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for BaseColorValueVariant0Variant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11904,12 +11964,12 @@ impl ::std::fmt::Display for BaseColorValueVariant0Variant0Variant3Range { } } } -impl From for BaseColorValueVariant0Variant0Variant3Range { +impl ::std::convert::From for BaseColorValueVariant0Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BaseColorValueVariant0Variant0Variant3Range { +impl ::std::convert::From for BaseColorValueVariant0Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -12027,7 +12087,7 @@ impl From for BaseColorValueVariant0Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BaseColorValueVariant0Variant1 {} -impl From<&BaseColorValueVariant0Variant1> for BaseColorValueVariant0Variant1 { +impl ::std::convert::From<&BaseColorValueVariant0Variant1> for BaseColorValueVariant0Variant1 { fn from(value: &BaseColorValueVariant0Variant1) -> Self { value.clone() } @@ -12145,7 +12205,7 @@ impl From<&BaseColorValueVariant0Variant1> for BaseColorValueVariant0Variant1 { )] #[serde(deny_unknown_fields)] pub enum BaseColorValueVariant0Variant2 {} -impl From<&BaseColorValueVariant0Variant2> for BaseColorValueVariant0Variant2 { +impl ::std::convert::From<&BaseColorValueVariant0Variant2> for BaseColorValueVariant0Variant2 { fn from(value: &BaseColorValueVariant0Variant2) -> Self { value.clone() } @@ -12181,27 +12241,27 @@ pub enum BaseColorValueVariant4Color { Lab(ColorLab), Hcl(ColorHcl), } -impl From<&BaseColorValueVariant4Color> for BaseColorValueVariant4Color { +impl ::std::convert::From<&BaseColorValueVariant4Color> for BaseColorValueVariant4Color { fn from(value: &BaseColorValueVariant4Color) -> Self { value.clone() } } -impl From for BaseColorValueVariant4Color { +impl ::std::convert::From for BaseColorValueVariant4Color { fn from(value: ColorRgb) -> Self { Self::Rgb(value) } } -impl From for BaseColorValueVariant4Color { +impl ::std::convert::From for BaseColorValueVariant4Color { fn from(value: ColorHsl) -> Self { Self::Hsl(value) } } -impl From for BaseColorValueVariant4Color { +impl ::std::convert::From for BaseColorValueVariant4Color { fn from(value: ColorLab) -> Self { Self::Lab(value) } } -impl From for BaseColorValueVariant4Color { +impl ::std::convert::From for BaseColorValueVariant4Color { fn from(value: ColorHcl) -> Self { Self::Hcl(value) } @@ -12399,17 +12459,17 @@ pub enum BaselineValue { Variant0(::std::vec::Vec), Variant1(BaselineValueVariant1), } -impl From<&BaselineValue> for BaselineValue { +impl ::std::convert::From<&BaselineValue> for BaselineValue { fn from(value: &BaselineValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for BaselineValue { +impl ::std::convert::From<::std::vec::Vec> for BaselineValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for BaselineValue { +impl ::std::convert::From for BaselineValue { fn from(value: BaselineValueVariant1) -> Self { Self::Variant1(value) } @@ -12523,22 +12583,22 @@ pub enum BaselineValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&BaselineValueVariant0Item> for BaselineValueVariant0Item { +impl ::std::convert::From<&BaselineValueVariant0Item> for BaselineValueVariant0Item { fn from(value: &BaselineValueVariant0Item) -> Self { value.clone() } } -impl From for BaselineValueVariant0Item { +impl ::std::convert::From for BaselineValueVariant0Item { fn from(value: BaselineValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for BaselineValueVariant0Item { +impl ::std::convert::From for BaselineValueVariant0Item { fn from(value: BaselineValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for BaselineValueVariant0Item { +impl ::std::convert::From for BaselineValueVariant0Item { fn from(value: BaselineValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -12675,7 +12735,9 @@ pub enum BaselineValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&BaselineValueVariant0ItemVariant0> for BaselineValueVariant0ItemVariant0 { +impl ::std::convert::From<&BaselineValueVariant0ItemVariant0> + for BaselineValueVariant0ItemVariant0 +{ fn from(value: &BaselineValueVariant0ItemVariant0) -> Self { value.clone() } @@ -12717,7 +12779,7 @@ pub enum BaselineValueVariant0ItemVariant0Variant1Value { #[serde(rename = "alphabetic")] Alphabetic, } -impl From<&BaselineValueVariant0ItemVariant0Variant1Value> +impl ::std::convert::From<&BaselineValueVariant0ItemVariant0Variant1Value> for BaselineValueVariant0ItemVariant0Variant1Value { fn from(value: &BaselineValueVariant0ItemVariant0Variant1Value) -> Self { @@ -12734,7 +12796,7 @@ impl ::std::fmt::Display for BaselineValueVariant0ItemVariant0Variant1Value { } } } -impl std::str::FromStr for BaselineValueVariant0ItemVariant0Variant1Value { +impl ::std::str::FromStr for BaselineValueVariant0ItemVariant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12746,13 +12808,13 @@ impl std::str::FromStr for BaselineValueVariant0ItemVariant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for BaselineValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&str> for BaselineValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BaselineValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; @@ -12762,7 +12824,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BaselineValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; @@ -12795,14 +12857,14 @@ pub enum BaselineValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BaselineValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&BaselineValueVariant0ItemVariant0Variant3Range> for BaselineValueVariant0ItemVariant0Variant3Range { fn from(value: &BaselineValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BaselineValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for BaselineValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -12814,13 +12876,13 @@ impl std::str::FromStr for BaselineValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BaselineValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BaselineValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BaselineValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -12830,7 +12892,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BaselineValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -12848,12 +12910,12 @@ impl ::std::fmt::Display for BaselineValueVariant0ItemVariant0Variant3Range { } } } -impl From for BaselineValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for BaselineValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BaselineValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for BaselineValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -12972,7 +13034,9 @@ impl From for BaselineValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BaselineValueVariant0ItemVariant1 {} -impl From<&BaselineValueVariant0ItemVariant1> for BaselineValueVariant0ItemVariant1 { +impl ::std::convert::From<&BaselineValueVariant0ItemVariant1> + for BaselineValueVariant0ItemVariant1 +{ fn from(value: &BaselineValueVariant0ItemVariant1) -> Self { value.clone() } @@ -13091,7 +13155,9 @@ impl From<&BaselineValueVariant0ItemVariant1> for BaselineValueVariant0ItemVaria )] #[serde(deny_unknown_fields)] pub enum BaselineValueVariant0ItemVariant2 {} -impl From<&BaselineValueVariant0ItemVariant2> for BaselineValueVariant0ItemVariant2 { +impl ::std::convert::From<&BaselineValueVariant0ItemVariant2> + for BaselineValueVariant0ItemVariant2 +{ fn from(value: &BaselineValueVariant0ItemVariant2) -> Self { value.clone() } @@ -13194,22 +13260,22 @@ pub enum BaselineValueVariant1 { Variant2(BaselineValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&BaselineValueVariant1> for BaselineValueVariant1 { +impl ::std::convert::From<&BaselineValueVariant1> for BaselineValueVariant1 { fn from(value: &BaselineValueVariant1) -> Self { value.clone() } } -impl From for BaselineValueVariant1 { +impl ::std::convert::From for BaselineValueVariant1 { fn from(value: BaselineValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for BaselineValueVariant1 { +impl ::std::convert::From for BaselineValueVariant1 { fn from(value: BaselineValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for BaselineValueVariant1 { +impl ::std::convert::From for BaselineValueVariant1 { fn from(value: BaselineValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -13335,7 +13401,7 @@ pub enum BaselineValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&BaselineValueVariant1Variant0> for BaselineValueVariant1Variant0 { +impl ::std::convert::From<&BaselineValueVariant1Variant0> for BaselineValueVariant1Variant0 { fn from(value: &BaselineValueVariant1Variant0) -> Self { value.clone() } @@ -13377,7 +13443,7 @@ pub enum BaselineValueVariant1Variant0Variant1Value { #[serde(rename = "alphabetic")] Alphabetic, } -impl From<&BaselineValueVariant1Variant0Variant1Value> +impl ::std::convert::From<&BaselineValueVariant1Variant0Variant1Value> for BaselineValueVariant1Variant0Variant1Value { fn from(value: &BaselineValueVariant1Variant0Variant1Value) -> Self { @@ -13394,7 +13460,7 @@ impl ::std::fmt::Display for BaselineValueVariant1Variant0Variant1Value { } } } -impl std::str::FromStr for BaselineValueVariant1Variant0Variant1Value { +impl ::std::str::FromStr for BaselineValueVariant1Variant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13406,13 +13472,15 @@ impl std::str::FromStr for BaselineValueVariant1Variant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for BaselineValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&str> for BaselineValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BaselineValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> + for BaselineValueVariant1Variant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13420,7 +13488,7 @@ impl std::convert::TryFrom<&::std::string::String> for BaselineValueVariant1Vari value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BaselineValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> for BaselineValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13451,14 +13519,14 @@ pub enum BaselineValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BaselineValueVariant1Variant0Variant3Range> +impl ::std::convert::From<&BaselineValueVariant1Variant0Variant3Range> for BaselineValueVariant1Variant0Variant3Range { fn from(value: &BaselineValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BaselineValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for BaselineValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -13470,13 +13538,15 @@ impl std::str::FromStr for BaselineValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BaselineValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BaselineValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BaselineValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> + for BaselineValueVariant1Variant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13484,7 +13554,7 @@ impl std::convert::TryFrom<&::std::string::String> for BaselineValueVariant1Vari value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BaselineValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for BaselineValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13500,12 +13570,12 @@ impl ::std::fmt::Display for BaselineValueVariant1Variant0Variant3Range { } } } -impl From for BaselineValueVariant1Variant0Variant3Range { +impl ::std::convert::From for BaselineValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BaselineValueVariant1Variant0Variant3Range { +impl ::std::convert::From for BaselineValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -13621,7 +13691,7 @@ impl From for BaselineValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BaselineValueVariant1Variant1 {} -impl From<&BaselineValueVariant1Variant1> for BaselineValueVariant1Variant1 { +impl ::std::convert::From<&BaselineValueVariant1Variant1> for BaselineValueVariant1Variant1 { fn from(value: &BaselineValueVariant1Variant1) -> Self { value.clone() } @@ -13737,7 +13807,7 @@ impl From<&BaselineValueVariant1Variant1> for BaselineValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum BaselineValueVariant1Variant2 {} -impl From<&BaselineValueVariant1Variant2> for BaselineValueVariant1Variant2 { +impl ::std::convert::From<&BaselineValueVariant1Variant2> for BaselineValueVariant1Variant2 { fn from(value: &BaselineValueVariant1Variant2) -> Self { value.clone() } @@ -14001,7 +14071,7 @@ pub struct BinTransform { #[serde(rename = "type")] pub type_: BinTransformType, } -impl From<&BinTransform> for BinTransform { +impl ::std::convert::From<&BinTransform> for BinTransform { fn from(value: &BinTransform) -> Self { value.clone() } @@ -14029,17 +14099,17 @@ pub enum BinTransformAnchor { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformAnchor> for BinTransformAnchor { +impl ::std::convert::From<&BinTransformAnchor> for BinTransformAnchor { fn from(value: &BinTransformAnchor) -> Self { value.clone() } } -impl From for BinTransformAnchor { +impl ::std::convert::From for BinTransformAnchor { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformAnchor { +impl ::std::convert::From for BinTransformAnchor { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14083,12 +14153,12 @@ pub enum BinTransformAs { Variant0([BinTransformAsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&BinTransformAs> for BinTransformAs { +impl ::std::convert::From<&BinTransformAs> for BinTransformAs { fn from(value: &BinTransformAs) -> Self { value.clone() } } -impl Default for BinTransformAs { +impl ::std::default::Default for BinTransformAs { fn default() -> Self { BinTransformAs::Variant0([ BinTransformAsVariant0Item::Variant0("bin0".to_string()), @@ -14096,12 +14166,12 @@ impl Default for BinTransformAs { ]) } } -impl From<[BinTransformAsVariant0Item; 2usize]> for BinTransformAs { +impl ::std::convert::From<[BinTransformAsVariant0Item; 2usize]> for BinTransformAs { fn from(value: [BinTransformAsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for BinTransformAs { +impl ::std::convert::From for BinTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14129,12 +14199,12 @@ pub enum BinTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&BinTransformAsVariant0Item> for BinTransformAsVariant0Item { +impl ::std::convert::From<&BinTransformAsVariant0Item> for BinTransformAsVariant0Item { fn from(value: &BinTransformAsVariant0Item) -> Self { value.clone() } } -impl From for BinTransformAsVariant0Item { +impl ::std::convert::From for BinTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14163,22 +14233,22 @@ pub enum BinTransformBase { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformBase> for BinTransformBase { +impl ::std::convert::From<&BinTransformBase> for BinTransformBase { fn from(value: &BinTransformBase) -> Self { value.clone() } } -impl Default for BinTransformBase { +impl ::std::default::Default for BinTransformBase { fn default() -> Self { BinTransformBase::Variant0(10_f64) } } -impl From for BinTransformBase { +impl ::std::convert::From for BinTransformBase { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformBase { +impl ::std::convert::From for BinTransformBase { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14220,12 +14290,12 @@ pub enum BinTransformDivide { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&BinTransformDivide> for BinTransformDivide { +impl ::std::convert::From<&BinTransformDivide> for BinTransformDivide { fn from(value: &BinTransformDivide) -> Self { value.clone() } } -impl Default for BinTransformDivide { +impl ::std::default::Default for BinTransformDivide { fn default() -> Self { BinTransformDivide::Variant0(vec![ BinTransformDivideVariant0Item::Variant0(5_f64), @@ -14233,12 +14303,12 @@ impl Default for BinTransformDivide { ]) } } -impl From<::std::vec::Vec> for BinTransformDivide { +impl ::std::convert::From<::std::vec::Vec> for BinTransformDivide { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for BinTransformDivide { +impl ::std::convert::From for BinTransformDivide { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14266,17 +14336,17 @@ pub enum BinTransformDivideVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformDivideVariant0Item> for BinTransformDivideVariant0Item { +impl ::std::convert::From<&BinTransformDivideVariant0Item> for BinTransformDivideVariant0Item { fn from(value: &BinTransformDivideVariant0Item) -> Self { value.clone() } } -impl From for BinTransformDivideVariant0Item { +impl ::std::convert::From for BinTransformDivideVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformDivideVariant0Item { +impl ::std::convert::From for BinTransformDivideVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14316,17 +14386,17 @@ pub enum BinTransformExtent { Variant0([BinTransformExtentVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&BinTransformExtent> for BinTransformExtent { +impl ::std::convert::From<&BinTransformExtent> for BinTransformExtent { fn from(value: &BinTransformExtent) -> Self { value.clone() } } -impl From<[BinTransformExtentVariant0Item; 2usize]> for BinTransformExtent { +impl ::std::convert::From<[BinTransformExtentVariant0Item; 2usize]> for BinTransformExtent { fn from(value: [BinTransformExtentVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for BinTransformExtent { +impl ::std::convert::From for BinTransformExtent { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14354,17 +14424,17 @@ pub enum BinTransformExtentVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformExtentVariant0Item> for BinTransformExtentVariant0Item { +impl ::std::convert::From<&BinTransformExtentVariant0Item> for BinTransformExtentVariant0Item { fn from(value: &BinTransformExtentVariant0Item) -> Self { value.clone() } } -impl From for BinTransformExtentVariant0Item { +impl ::std::convert::From for BinTransformExtentVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformExtentVariant0Item { +impl ::std::convert::From for BinTransformExtentVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14396,22 +14466,22 @@ pub enum BinTransformField { ParamField(ParamField), Expr(Expr), } -impl From<&BinTransformField> for BinTransformField { +impl ::std::convert::From<&BinTransformField> for BinTransformField { fn from(value: &BinTransformField) -> Self { value.clone() } } -impl From for BinTransformField { +impl ::std::convert::From for BinTransformField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for BinTransformField { +impl ::std::convert::From for BinTransformField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for BinTransformField { +impl ::std::convert::From for BinTransformField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -14440,22 +14510,22 @@ pub enum BinTransformInterval { Variant0(bool), Variant1(SignalRef), } -impl From<&BinTransformInterval> for BinTransformInterval { +impl ::std::convert::From<&BinTransformInterval> for BinTransformInterval { fn from(value: &BinTransformInterval) -> Self { value.clone() } } -impl Default for BinTransformInterval { +impl ::std::default::Default for BinTransformInterval { fn default() -> Self { BinTransformInterval::Variant0(true) } } -impl From for BinTransformInterval { +impl ::std::convert::From for BinTransformInterval { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for BinTransformInterval { +impl ::std::convert::From for BinTransformInterval { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14484,22 +14554,22 @@ pub enum BinTransformMaxbins { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformMaxbins> for BinTransformMaxbins { +impl ::std::convert::From<&BinTransformMaxbins> for BinTransformMaxbins { fn from(value: &BinTransformMaxbins) -> Self { value.clone() } } -impl Default for BinTransformMaxbins { +impl ::std::default::Default for BinTransformMaxbins { fn default() -> Self { BinTransformMaxbins::Variant0(20_f64) } } -impl From for BinTransformMaxbins { +impl ::std::convert::From for BinTransformMaxbins { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformMaxbins { +impl ::std::convert::From for BinTransformMaxbins { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14527,17 +14597,17 @@ pub enum BinTransformMinstep { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformMinstep> for BinTransformMinstep { +impl ::std::convert::From<&BinTransformMinstep> for BinTransformMinstep { fn from(value: &BinTransformMinstep) -> Self { value.clone() } } -impl From for BinTransformMinstep { +impl ::std::convert::From for BinTransformMinstep { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformMinstep { +impl ::std::convert::From for BinTransformMinstep { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14565,12 +14635,12 @@ pub enum BinTransformName { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&BinTransformName> for BinTransformName { +impl ::std::convert::From<&BinTransformName> for BinTransformName { fn from(value: &BinTransformName) -> Self { value.clone() } } -impl From for BinTransformName { +impl ::std::convert::From for BinTransformName { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14599,22 +14669,22 @@ pub enum BinTransformNice { Variant0(bool), Variant1(SignalRef), } -impl From<&BinTransformNice> for BinTransformNice { +impl ::std::convert::From<&BinTransformNice> for BinTransformNice { fn from(value: &BinTransformNice) -> Self { value.clone() } } -impl Default for BinTransformNice { +impl ::std::default::Default for BinTransformNice { fn default() -> Self { BinTransformNice::Variant0(true) } } -impl From for BinTransformNice { +impl ::std::convert::From for BinTransformNice { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for BinTransformNice { +impl ::std::convert::From for BinTransformNice { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14642,17 +14712,17 @@ pub enum BinTransformSpan { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformSpan> for BinTransformSpan { +impl ::std::convert::From<&BinTransformSpan> for BinTransformSpan { fn from(value: &BinTransformSpan) -> Self { value.clone() } } -impl From for BinTransformSpan { +impl ::std::convert::From for BinTransformSpan { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformSpan { +impl ::std::convert::From for BinTransformSpan { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14680,17 +14750,17 @@ pub enum BinTransformStep { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformStep> for BinTransformStep { +impl ::std::convert::From<&BinTransformStep> for BinTransformStep { fn from(value: &BinTransformStep) -> Self { value.clone() } } -impl From for BinTransformStep { +impl ::std::convert::From for BinTransformStep { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformStep { +impl ::std::convert::From for BinTransformStep { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14728,17 +14798,17 @@ pub enum BinTransformSteps { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&BinTransformSteps> for BinTransformSteps { +impl ::std::convert::From<&BinTransformSteps> for BinTransformSteps { fn from(value: &BinTransformSteps) -> Self { value.clone() } } -impl From<::std::vec::Vec> for BinTransformSteps { +impl ::std::convert::From<::std::vec::Vec> for BinTransformSteps { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for BinTransformSteps { +impl ::std::convert::From for BinTransformSteps { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14766,17 +14836,17 @@ pub enum BinTransformStepsVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&BinTransformStepsVariant0Item> for BinTransformStepsVariant0Item { +impl ::std::convert::From<&BinTransformStepsVariant0Item> for BinTransformStepsVariant0Item { fn from(value: &BinTransformStepsVariant0Item) -> Self { value.clone() } } -impl From for BinTransformStepsVariant0Item { +impl ::std::convert::From for BinTransformStepsVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BinTransformStepsVariant0Item { +impl ::std::convert::From for BinTransformStepsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -14809,7 +14879,7 @@ pub enum BinTransformType { #[serde(rename = "bin")] Bin, } -impl From<&BinTransformType> for BinTransformType { +impl ::std::convert::From<&BinTransformType> for BinTransformType { fn from(value: &BinTransformType) -> Self { value.clone() } @@ -14821,7 +14891,7 @@ impl ::std::fmt::Display for BinTransformType { } } } -impl std::str::FromStr for BinTransformType { +impl ::std::str::FromStr for BinTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14830,13 +14900,13 @@ impl std::str::FromStr for BinTransformType { } } } -impl std::convert::TryFrom<&str> for BinTransformType { +impl ::std::convert::TryFrom<&str> for BinTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BinTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for BinTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14844,7 +14914,7 @@ impl std::convert::TryFrom<&::std::string::String> for BinTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BinTransformType { +impl ::std::convert::TryFrom<::std::string::String> for BinTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15054,7 +15124,7 @@ pub enum Bind { event: ::std::option::Option<::std::string::String>, }, } -impl From<&Bind> for Bind { +impl ::std::convert::From<&Bind> for Bind { fn from(value: &Bind) -> Self { value.clone() } @@ -15087,7 +15157,7 @@ pub enum BindVariant0Input { #[serde(rename = "checkbox")] Checkbox, } -impl From<&BindVariant0Input> for BindVariant0Input { +impl ::std::convert::From<&BindVariant0Input> for BindVariant0Input { fn from(value: &BindVariant0Input) -> Self { value.clone() } @@ -15099,7 +15169,7 @@ impl ::std::fmt::Display for BindVariant0Input { } } } -impl std::str::FromStr for BindVariant0Input { +impl ::std::str::FromStr for BindVariant0Input { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15108,13 +15178,13 @@ impl std::str::FromStr for BindVariant0Input { } } } -impl std::convert::TryFrom<&str> for BindVariant0Input { +impl ::std::convert::TryFrom<&str> for BindVariant0Input { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BindVariant0Input { +impl ::std::convert::TryFrom<&::std::string::String> for BindVariant0Input { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15122,7 +15192,7 @@ impl std::convert::TryFrom<&::std::string::String> for BindVariant0Input { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BindVariant0Input { +impl ::std::convert::TryFrom<::std::string::String> for BindVariant0Input { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15161,7 +15231,7 @@ pub enum BindVariant1Input { #[serde(rename = "select")] Select, } -impl From<&BindVariant1Input> for BindVariant1Input { +impl ::std::convert::From<&BindVariant1Input> for BindVariant1Input { fn from(value: &BindVariant1Input) -> Self { value.clone() } @@ -15174,7 +15244,7 @@ impl ::std::fmt::Display for BindVariant1Input { } } } -impl std::str::FromStr for BindVariant1Input { +impl ::std::str::FromStr for BindVariant1Input { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15184,13 +15254,13 @@ impl std::str::FromStr for BindVariant1Input { } } } -impl std::convert::TryFrom<&str> for BindVariant1Input { +impl ::std::convert::TryFrom<&str> for BindVariant1Input { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BindVariant1Input { +impl ::std::convert::TryFrom<&::std::string::String> for BindVariant1Input { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15198,7 +15268,7 @@ impl std::convert::TryFrom<&::std::string::String> for BindVariant1Input { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BindVariant1Input { +impl ::std::convert::TryFrom<::std::string::String> for BindVariant1Input { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15234,7 +15304,7 @@ pub enum BindVariant2Input { #[serde(rename = "range")] Range, } -impl From<&BindVariant2Input> for BindVariant2Input { +impl ::std::convert::From<&BindVariant2Input> for BindVariant2Input { fn from(value: &BindVariant2Input) -> Self { value.clone() } @@ -15246,7 +15316,7 @@ impl ::std::fmt::Display for BindVariant2Input { } } } -impl std::str::FromStr for BindVariant2Input { +impl ::std::str::FromStr for BindVariant2Input { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15255,13 +15325,13 @@ impl std::str::FromStr for BindVariant2Input { } } } -impl std::convert::TryFrom<&str> for BindVariant2Input { +impl ::std::convert::TryFrom<&str> for BindVariant2Input { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BindVariant2Input { +impl ::std::convert::TryFrom<&::std::string::String> for BindVariant2Input { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15269,7 +15339,7 @@ impl std::convert::TryFrom<&::std::string::String> for BindVariant2Input { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BindVariant2Input { +impl ::std::convert::TryFrom<::std::string::String> for BindVariant2Input { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -15302,12 +15372,12 @@ impl ::std::ops::Deref for BindVariant3Input { &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From for ::std::string::String { fn from(value: BindVariant3Input) -> Self { value.0 } } -impl From<&BindVariant3Input> for BindVariant3Input { +impl ::std::convert::From<&BindVariant3Input> for BindVariant3Input { fn from(value: &BindVariant3Input) -> Self { value.clone() } @@ -15557,17 +15627,17 @@ pub enum BlendValue { Variant0(::std::vec::Vec), Variant1(BlendValueVariant1), } -impl From<&BlendValue> for BlendValue { +impl ::std::convert::From<&BlendValue> for BlendValue { fn from(value: &BlendValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for BlendValue { +impl ::std::convert::From<::std::vec::Vec> for BlendValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for BlendValue { +impl ::std::convert::From for BlendValue { fn from(value: BlendValueVariant1) -> Self { Self::Variant1(value) } @@ -15693,22 +15763,22 @@ pub enum BlendValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&BlendValueVariant0Item> for BlendValueVariant0Item { +impl ::std::convert::From<&BlendValueVariant0Item> for BlendValueVariant0Item { fn from(value: &BlendValueVariant0Item) -> Self { value.clone() } } -impl From for BlendValueVariant0Item { +impl ::std::convert::From for BlendValueVariant0Item { fn from(value: BlendValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for BlendValueVariant0Item { +impl ::std::convert::From for BlendValueVariant0Item { fn from(value: BlendValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for BlendValueVariant0Item { +impl ::std::convert::From for BlendValueVariant0Item { fn from(value: BlendValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -15857,7 +15927,7 @@ pub enum BlendValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&BlendValueVariant0ItemVariant0> for BlendValueVariant0ItemVariant0 { +impl ::std::convert::From<&BlendValueVariant0ItemVariant0> for BlendValueVariant0ItemVariant0 { fn from(value: &BlendValueVariant0ItemVariant0) -> Self { value.clone() } @@ -15933,7 +16003,7 @@ pub enum BlendValueVariant0ItemVariant0Variant1Value { #[serde(rename = "luminosity")] Luminosity, } -impl From<&BlendValueVariant0ItemVariant0Variant1Value> +impl ::std::convert::From<&BlendValueVariant0ItemVariant0Variant1Value> for BlendValueVariant0ItemVariant0Variant1Value { fn from(value: &BlendValueVariant0ItemVariant0Variant1Value) -> Self { @@ -15961,7 +16031,7 @@ impl ::std::fmt::Display for BlendValueVariant0ItemVariant0Variant1Value { } } } -impl std::str::FromStr for BlendValueVariant0ItemVariant0Variant1Value { +impl ::std::str::FromStr for BlendValueVariant0ItemVariant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -15984,13 +16054,15 @@ impl std::str::FromStr for BlendValueVariant0ItemVariant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for BlendValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&str> for BlendValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> + for BlendValueVariant0ItemVariant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -15998,7 +16070,9 @@ impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant0ItemVar value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BlendValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> + for BlendValueVariant0ItemVariant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16029,14 +16103,14 @@ pub enum BlendValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BlendValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&BlendValueVariant0ItemVariant0Variant3Range> for BlendValueVariant0ItemVariant0Variant3Range { fn from(value: &BlendValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BlendValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for BlendValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -16048,13 +16122,15 @@ impl std::str::FromStr for BlendValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BlendValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BlendValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> + for BlendValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16062,7 +16138,9 @@ impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant0ItemVar value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BlendValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for BlendValueVariant0ItemVariant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16078,12 +16156,12 @@ impl ::std::fmt::Display for BlendValueVariant0ItemVariant0Variant3Range { } } } -impl From for BlendValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for BlendValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BlendValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for BlendValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -16214,7 +16292,7 @@ impl From for BlendValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BlendValueVariant0ItemVariant1 {} -impl From<&BlendValueVariant0ItemVariant1> for BlendValueVariant0ItemVariant1 { +impl ::std::convert::From<&BlendValueVariant0ItemVariant1> for BlendValueVariant0ItemVariant1 { fn from(value: &BlendValueVariant0ItemVariant1) -> Self { value.clone() } @@ -16345,7 +16423,7 @@ impl From<&BlendValueVariant0ItemVariant1> for BlendValueVariant0ItemVariant1 { )] #[serde(deny_unknown_fields)] pub enum BlendValueVariant0ItemVariant2 {} -impl From<&BlendValueVariant0ItemVariant2> for BlendValueVariant0ItemVariant2 { +impl ::std::convert::From<&BlendValueVariant0ItemVariant2> for BlendValueVariant0ItemVariant2 { fn from(value: &BlendValueVariant0ItemVariant2) -> Self { value.clone() } @@ -16460,22 +16538,22 @@ pub enum BlendValueVariant1 { Variant2(BlendValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&BlendValueVariant1> for BlendValueVariant1 { +impl ::std::convert::From<&BlendValueVariant1> for BlendValueVariant1 { fn from(value: &BlendValueVariant1) -> Self { value.clone() } } -impl From for BlendValueVariant1 { +impl ::std::convert::From for BlendValueVariant1 { fn from(value: BlendValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for BlendValueVariant1 { +impl ::std::convert::From for BlendValueVariant1 { fn from(value: BlendValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for BlendValueVariant1 { +impl ::std::convert::From for BlendValueVariant1 { fn from(value: BlendValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -16613,7 +16691,7 @@ pub enum BlendValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&BlendValueVariant1Variant0> for BlendValueVariant1Variant0 { +impl ::std::convert::From<&BlendValueVariant1Variant0> for BlendValueVariant1Variant0 { fn from(value: &BlendValueVariant1Variant0) -> Self { value.clone() } @@ -16689,7 +16767,9 @@ pub enum BlendValueVariant1Variant0Variant1Value { #[serde(rename = "luminosity")] Luminosity, } -impl From<&BlendValueVariant1Variant0Variant1Value> for BlendValueVariant1Variant0Variant1Value { +impl ::std::convert::From<&BlendValueVariant1Variant0Variant1Value> + for BlendValueVariant1Variant0Variant1Value +{ fn from(value: &BlendValueVariant1Variant0Variant1Value) -> Self { value.clone() } @@ -16715,7 +16795,7 @@ impl ::std::fmt::Display for BlendValueVariant1Variant0Variant1Value { } } } -impl std::str::FromStr for BlendValueVariant1Variant0Variant1Value { +impl ::std::str::FromStr for BlendValueVariant1Variant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -16738,13 +16818,13 @@ impl std::str::FromStr for BlendValueVariant1Variant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for BlendValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&str> for BlendValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> for BlendValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16752,7 +16832,7 @@ impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant1Variant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BlendValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> for BlendValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16783,12 +16863,14 @@ pub enum BlendValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BlendValueVariant1Variant0Variant3Range> for BlendValueVariant1Variant0Variant3Range { +impl ::std::convert::From<&BlendValueVariant1Variant0Variant3Range> + for BlendValueVariant1Variant0Variant3Range +{ fn from(value: &BlendValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BlendValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for BlendValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -16800,13 +16882,13 @@ impl std::str::FromStr for BlendValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BlendValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BlendValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for BlendValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -16814,7 +16896,7 @@ impl std::convert::TryFrom<&::std::string::String> for BlendValueVariant1Variant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BlendValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for BlendValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -16830,12 +16912,12 @@ impl ::std::fmt::Display for BlendValueVariant1Variant0Variant3Range { } } } -impl From for BlendValueVariant1Variant0Variant3Range { +impl ::std::convert::From for BlendValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BlendValueVariant1Variant0Variant3Range { +impl ::std::convert::From for BlendValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -16963,7 +17045,7 @@ impl From for BlendValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BlendValueVariant1Variant1 {} -impl From<&BlendValueVariant1Variant1> for BlendValueVariant1Variant1 { +impl ::std::convert::From<&BlendValueVariant1Variant1> for BlendValueVariant1Variant1 { fn from(value: &BlendValueVariant1Variant1) -> Self { value.clone() } @@ -17091,7 +17173,7 @@ impl From<&BlendValueVariant1Variant1> for BlendValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum BlendValueVariant1Variant2 {} -impl From<&BlendValueVariant1Variant2> for BlendValueVariant1Variant2 { +impl ::std::convert::From<&BlendValueVariant1Variant2> for BlendValueVariant1Variant2 { fn from(value: &BlendValueVariant1Variant2) -> Self { value.clone() } @@ -17119,17 +17201,17 @@ pub enum BooleanOrSignal { Variant0(bool), Variant1(SignalRef), } -impl From<&BooleanOrSignal> for BooleanOrSignal { +impl ::std::convert::From<&BooleanOrSignal> for BooleanOrSignal { fn from(value: &BooleanOrSignal) -> Self { value.clone() } } -impl From for BooleanOrSignal { +impl ::std::convert::From for BooleanOrSignal { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for BooleanOrSignal { +impl ::std::convert::From for BooleanOrSignal { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -17317,17 +17399,17 @@ pub enum BooleanValue { Variant0(::std::vec::Vec), Variant1(BooleanValueVariant1), } -impl From<&BooleanValue> for BooleanValue { +impl ::std::convert::From<&BooleanValue> for BooleanValue { fn from(value: &BooleanValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for BooleanValue { +impl ::std::convert::From<::std::vec::Vec> for BooleanValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for BooleanValue { +impl ::std::convert::From for BooleanValue { fn from(value: BooleanValueVariant1) -> Self { Self::Variant1(value) } @@ -17436,22 +17518,22 @@ pub enum BooleanValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&BooleanValueVariant0Item> for BooleanValueVariant0Item { +impl ::std::convert::From<&BooleanValueVariant0Item> for BooleanValueVariant0Item { fn from(value: &BooleanValueVariant0Item) -> Self { value.clone() } } -impl From for BooleanValueVariant0Item { +impl ::std::convert::From for BooleanValueVariant0Item { fn from(value: BooleanValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for BooleanValueVariant0Item { +impl ::std::convert::From for BooleanValueVariant0Item { fn from(value: BooleanValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for BooleanValueVariant0Item { +impl ::std::convert::From for BooleanValueVariant0Item { fn from(value: BooleanValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -17583,7 +17665,7 @@ pub enum BooleanValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&BooleanValueVariant0ItemVariant0> for BooleanValueVariant0ItemVariant0 { +impl ::std::convert::From<&BooleanValueVariant0ItemVariant0> for BooleanValueVariant0ItemVariant0 { fn from(value: &BooleanValueVariant0ItemVariant0) -> Self { value.clone() } @@ -17611,14 +17693,14 @@ pub enum BooleanValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BooleanValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&BooleanValueVariant0ItemVariant0Variant3Range> for BooleanValueVariant0ItemVariant0Variant3Range { fn from(value: &BooleanValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BooleanValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for BooleanValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -17630,13 +17712,13 @@ impl std::str::FromStr for BooleanValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BooleanValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BooleanValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for BooleanValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -17646,7 +17728,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for BooleanValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -17664,12 +17746,12 @@ impl ::std::fmt::Display for BooleanValueVariant0ItemVariant0Variant3Range { } } } -impl From for BooleanValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for BooleanValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BooleanValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for BooleanValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -17783,7 +17865,7 @@ impl From for BooleanValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BooleanValueVariant0ItemVariant1 {} -impl From<&BooleanValueVariant0ItemVariant1> for BooleanValueVariant0ItemVariant1 { +impl ::std::convert::From<&BooleanValueVariant0ItemVariant1> for BooleanValueVariant0ItemVariant1 { fn from(value: &BooleanValueVariant0ItemVariant1) -> Self { value.clone() } @@ -17897,7 +17979,7 @@ impl From<&BooleanValueVariant0ItemVariant1> for BooleanValueVariant0ItemVariant )] #[serde(deny_unknown_fields)] pub enum BooleanValueVariant0ItemVariant2 {} -impl From<&BooleanValueVariant0ItemVariant2> for BooleanValueVariant0ItemVariant2 { +impl ::std::convert::From<&BooleanValueVariant0ItemVariant2> for BooleanValueVariant0ItemVariant2 { fn from(value: &BooleanValueVariant0ItemVariant2) -> Self { value.clone() } @@ -17995,22 +18077,22 @@ pub enum BooleanValueVariant1 { Variant2(BooleanValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&BooleanValueVariant1> for BooleanValueVariant1 { +impl ::std::convert::From<&BooleanValueVariant1> for BooleanValueVariant1 { fn from(value: &BooleanValueVariant1) -> Self { value.clone() } } -impl From for BooleanValueVariant1 { +impl ::std::convert::From for BooleanValueVariant1 { fn from(value: BooleanValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for BooleanValueVariant1 { +impl ::std::convert::From for BooleanValueVariant1 { fn from(value: BooleanValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for BooleanValueVariant1 { +impl ::std::convert::From for BooleanValueVariant1 { fn from(value: BooleanValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -18131,7 +18213,7 @@ pub enum BooleanValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&BooleanValueVariant1Variant0> for BooleanValueVariant1Variant0 { +impl ::std::convert::From<&BooleanValueVariant1Variant0> for BooleanValueVariant1Variant0 { fn from(value: &BooleanValueVariant1Variant0) -> Self { value.clone() } @@ -18159,14 +18241,14 @@ pub enum BooleanValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&BooleanValueVariant1Variant0Variant3Range> +impl ::std::convert::From<&BooleanValueVariant1Variant0Variant3Range> for BooleanValueVariant1Variant0Variant3Range { fn from(value: &BooleanValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for BooleanValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for BooleanValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -18178,13 +18260,13 @@ impl std::str::FromStr for BooleanValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for BooleanValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for BooleanValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for BooleanValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> for BooleanValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18192,7 +18274,7 @@ impl std::convert::TryFrom<&::std::string::String> for BooleanValueVariant1Varia value.parse() } } -impl std::convert::TryFrom<::std::string::String> for BooleanValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> for BooleanValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18208,12 +18290,12 @@ impl ::std::fmt::Display for BooleanValueVariant1Variant0Variant3Range { } } } -impl From for BooleanValueVariant1Variant0Variant3Range { +impl ::std::convert::From for BooleanValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for BooleanValueVariant1Variant0Variant3Range { +impl ::std::convert::From for BooleanValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -18324,7 +18406,7 @@ impl From for BooleanValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum BooleanValueVariant1Variant1 {} -impl From<&BooleanValueVariant1Variant1> for BooleanValueVariant1Variant1 { +impl ::std::convert::From<&BooleanValueVariant1Variant1> for BooleanValueVariant1Variant1 { fn from(value: &BooleanValueVariant1Variant1) -> Self { value.clone() } @@ -18435,7 +18517,7 @@ impl From<&BooleanValueVariant1Variant1> for BooleanValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum BooleanValueVariant1Variant2 {} -impl From<&BooleanValueVariant1Variant2> for BooleanValueVariant1Variant2 { +impl ::std::convert::From<&BooleanValueVariant1Variant2> for BooleanValueVariant1Variant2 { fn from(value: &BooleanValueVariant1Variant2) -> Self { value.clone() } @@ -18477,7 +18559,7 @@ pub struct CollectTransform { #[serde(rename = "type")] pub type_: CollectTransformType, } -impl From<&CollectTransform> for CollectTransform { +impl ::std::convert::From<&CollectTransform> for CollectTransform { fn from(value: &CollectTransform) -> Self { value.clone() } @@ -18510,7 +18592,7 @@ pub enum CollectTransformType { #[serde(rename = "collect")] Collect, } -impl From<&CollectTransformType> for CollectTransformType { +impl ::std::convert::From<&CollectTransformType> for CollectTransformType { fn from(value: &CollectTransformType) -> Self { value.clone() } @@ -18522,7 +18604,7 @@ impl ::std::fmt::Display for CollectTransformType { } } } -impl std::str::FromStr for CollectTransformType { +impl ::std::str::FromStr for CollectTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -18531,13 +18613,13 @@ impl std::str::FromStr for CollectTransformType { } } } -impl std::convert::TryFrom<&str> for CollectTransformType { +impl ::std::convert::TryFrom<&str> for CollectTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CollectTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for CollectTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -18545,7 +18627,7 @@ impl std::convert::TryFrom<&::std::string::String> for CollectTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CollectTransformType { +impl ::std::convert::TryFrom<::std::string::String> for CollectTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -18585,7 +18667,7 @@ pub struct ColorHcl { pub h: NumberValue, pub l: NumberValue, } -impl From<&ColorHcl> for ColorHcl { +impl ::std::convert::From<&ColorHcl> for ColorHcl { fn from(value: &ColorHcl) -> Self { value.clone() } @@ -18622,7 +18704,7 @@ pub struct ColorHsl { pub l: NumberValue, pub s: NumberValue, } -impl From<&ColorHsl> for ColorHsl { +impl ::std::convert::From<&ColorHsl> for ColorHsl { fn from(value: &ColorHsl) -> Self { value.clone() } @@ -18659,7 +18741,7 @@ pub struct ColorLab { pub b: NumberValue, pub l: NumberValue, } -impl From<&ColorLab> for ColorLab { +impl ::std::convert::From<&ColorLab> for ColorLab { fn from(value: &ColorLab) -> Self { value.clone() } @@ -18696,7 +18778,7 @@ pub struct ColorRgb { pub g: NumberValue, pub r: NumberValue, } -impl From<&ColorRgb> for ColorRgb { +impl ::std::convert::From<&ColorRgb> for ColorRgb { fn from(value: &ColorRgb) -> Self { value.clone() } @@ -18772,7 +18854,7 @@ pub enum Compare { order: ::std::vec::Vec, }, } -impl From<&Compare> for Compare { +impl ::std::convert::From<&Compare> for Compare { fn from(value: &Compare) -> Self { value.clone() } @@ -18800,17 +18882,17 @@ pub enum CompareVariant0Field { ScaleField(ScaleField), Expr(Expr), } -impl From<&CompareVariant0Field> for CompareVariant0Field { +impl ::std::convert::From<&CompareVariant0Field> for CompareVariant0Field { fn from(value: &CompareVariant0Field) -> Self { value.clone() } } -impl From for CompareVariant0Field { +impl ::std::convert::From for CompareVariant0Field { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for CompareVariant0Field { +impl ::std::convert::From for CompareVariant0Field { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -18838,17 +18920,17 @@ pub enum CompareVariant1FieldItem { ScaleField(ScaleField), Expr(Expr), } -impl From<&CompareVariant1FieldItem> for CompareVariant1FieldItem { +impl ::std::convert::From<&CompareVariant1FieldItem> for CompareVariant1FieldItem { fn from(value: &CompareVariant1FieldItem) -> Self { value.clone() } } -impl From for CompareVariant1FieldItem { +impl ::std::convert::From for CompareVariant1FieldItem { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for CompareVariant1FieldItem { +impl ::std::convert::From for CompareVariant1FieldItem { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -19063,7 +19145,7 @@ pub struct ContourTransform { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub y: ::std::option::Option, } -impl From<&ContourTransform> for ContourTransform { +impl ::std::convert::From<&ContourTransform> for ContourTransform { fn from(value: &ContourTransform) -> Self { value.clone() } @@ -19091,17 +19173,17 @@ pub enum ContourTransformBandwidth { Variant0(f64), Variant1(SignalRef), } -impl From<&ContourTransformBandwidth> for ContourTransformBandwidth { +impl ::std::convert::From<&ContourTransformBandwidth> for ContourTransformBandwidth { fn from(value: &ContourTransformBandwidth) -> Self { value.clone() } } -impl From for ContourTransformBandwidth { +impl ::std::convert::From for ContourTransformBandwidth { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ContourTransformBandwidth { +impl ::std::convert::From for ContourTransformBandwidth { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19129,17 +19211,17 @@ pub enum ContourTransformCellSize { Variant0(f64), Variant1(SignalRef), } -impl From<&ContourTransformCellSize> for ContourTransformCellSize { +impl ::std::convert::From<&ContourTransformCellSize> for ContourTransformCellSize { fn from(value: &ContourTransformCellSize) -> Self { value.clone() } } -impl From for ContourTransformCellSize { +impl ::std::convert::From for ContourTransformCellSize { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ContourTransformCellSize { +impl ::std::convert::From for ContourTransformCellSize { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19167,17 +19249,17 @@ pub enum ContourTransformCount { Variant0(f64), Variant1(SignalRef), } -impl From<&ContourTransformCount> for ContourTransformCount { +impl ::std::convert::From<&ContourTransformCount> for ContourTransformCount { fn from(value: &ContourTransformCount) -> Self { value.clone() } } -impl From for ContourTransformCount { +impl ::std::convert::From for ContourTransformCount { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ContourTransformCount { +impl ::std::convert::From for ContourTransformCount { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19205,17 +19287,17 @@ pub enum ContourTransformNice { Variant0(bool), Variant1(SignalRef), } -impl From<&ContourTransformNice> for ContourTransformNice { +impl ::std::convert::From<&ContourTransformNice> for ContourTransformNice { fn from(value: &ContourTransformNice) -> Self { value.clone() } } -impl From for ContourTransformNice { +impl ::std::convert::From for ContourTransformNice { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for ContourTransformNice { +impl ::std::convert::From for ContourTransformNice { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19255,17 +19337,17 @@ pub enum ContourTransformSize { Variant0([ContourTransformSizeVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&ContourTransformSize> for ContourTransformSize { +impl ::std::convert::From<&ContourTransformSize> for ContourTransformSize { fn from(value: &ContourTransformSize) -> Self { value.clone() } } -impl From<[ContourTransformSizeVariant0Item; 2usize]> for ContourTransformSize { +impl ::std::convert::From<[ContourTransformSizeVariant0Item; 2usize]> for ContourTransformSize { fn from(value: [ContourTransformSizeVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for ContourTransformSize { +impl ::std::convert::From for ContourTransformSize { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19293,17 +19375,17 @@ pub enum ContourTransformSizeVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&ContourTransformSizeVariant0Item> for ContourTransformSizeVariant0Item { +impl ::std::convert::From<&ContourTransformSizeVariant0Item> for ContourTransformSizeVariant0Item { fn from(value: &ContourTransformSizeVariant0Item) -> Self { value.clone() } } -impl From for ContourTransformSizeVariant0Item { +impl ::std::convert::From for ContourTransformSizeVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ContourTransformSizeVariant0Item { +impl ::std::convert::From for ContourTransformSizeVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19332,22 +19414,22 @@ pub enum ContourTransformSmooth { Variant0(bool), Variant1(SignalRef), } -impl From<&ContourTransformSmooth> for ContourTransformSmooth { +impl ::std::convert::From<&ContourTransformSmooth> for ContourTransformSmooth { fn from(value: &ContourTransformSmooth) -> Self { value.clone() } } -impl Default for ContourTransformSmooth { +impl ::std::default::Default for ContourTransformSmooth { fn default() -> Self { ContourTransformSmooth::Variant0(true) } } -impl From for ContourTransformSmooth { +impl ::std::convert::From for ContourTransformSmooth { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for ContourTransformSmooth { +impl ::std::convert::From for ContourTransformSmooth { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19385,17 +19467,19 @@ pub enum ContourTransformThresholds { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&ContourTransformThresholds> for ContourTransformThresholds { +impl ::std::convert::From<&ContourTransformThresholds> for ContourTransformThresholds { fn from(value: &ContourTransformThresholds) -> Self { value.clone() } } -impl From<::std::vec::Vec> for ContourTransformThresholds { +impl ::std::convert::From<::std::vec::Vec> + for ContourTransformThresholds +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for ContourTransformThresholds { +impl ::std::convert::From for ContourTransformThresholds { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19423,17 +19507,19 @@ pub enum ContourTransformThresholdsVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&ContourTransformThresholdsVariant0Item> for ContourTransformThresholdsVariant0Item { +impl ::std::convert::From<&ContourTransformThresholdsVariant0Item> + for ContourTransformThresholdsVariant0Item +{ fn from(value: &ContourTransformThresholdsVariant0Item) -> Self { value.clone() } } -impl From for ContourTransformThresholdsVariant0Item { +impl ::std::convert::From for ContourTransformThresholdsVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ContourTransformThresholdsVariant0Item { +impl ::std::convert::From for ContourTransformThresholdsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19466,7 +19552,7 @@ pub enum ContourTransformType { #[serde(rename = "contour")] Contour, } -impl From<&ContourTransformType> for ContourTransformType { +impl ::std::convert::From<&ContourTransformType> for ContourTransformType { fn from(value: &ContourTransformType) -> Self { value.clone() } @@ -19478,7 +19564,7 @@ impl ::std::fmt::Display for ContourTransformType { } } } -impl std::str::FromStr for ContourTransformType { +impl ::std::str::FromStr for ContourTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -19487,13 +19573,13 @@ impl std::str::FromStr for ContourTransformType { } } } -impl std::convert::TryFrom<&str> for ContourTransformType { +impl ::std::convert::TryFrom<&str> for ContourTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ContourTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for ContourTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -19501,7 +19587,7 @@ impl std::convert::TryFrom<&::std::string::String> for ContourTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ContourTransformType { +impl ::std::convert::TryFrom<::std::string::String> for ContourTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -19542,17 +19628,19 @@ pub enum ContourTransformValues { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&ContourTransformValues> for ContourTransformValues { +impl ::std::convert::From<&ContourTransformValues> for ContourTransformValues { fn from(value: &ContourTransformValues) -> Self { value.clone() } } -impl From<::std::vec::Vec> for ContourTransformValues { +impl ::std::convert::From<::std::vec::Vec> + for ContourTransformValues +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for ContourTransformValues { +impl ::std::convert::From for ContourTransformValues { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19580,17 +19668,19 @@ pub enum ContourTransformValuesVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&ContourTransformValuesVariant0Item> for ContourTransformValuesVariant0Item { +impl ::std::convert::From<&ContourTransformValuesVariant0Item> + for ContourTransformValuesVariant0Item +{ fn from(value: &ContourTransformValuesVariant0Item) -> Self { value.clone() } } -impl From for ContourTransformValuesVariant0Item { +impl ::std::convert::From for ContourTransformValuesVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ContourTransformValuesVariant0Item { +impl ::std::convert::From for ContourTransformValuesVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19622,22 +19712,22 @@ pub enum ContourTransformWeight { ParamField(ParamField), Expr(Expr), } -impl From<&ContourTransformWeight> for ContourTransformWeight { +impl ::std::convert::From<&ContourTransformWeight> for ContourTransformWeight { fn from(value: &ContourTransformWeight) -> Self { value.clone() } } -impl From for ContourTransformWeight { +impl ::std::convert::From for ContourTransformWeight { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for ContourTransformWeight { +impl ::std::convert::From for ContourTransformWeight { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for ContourTransformWeight { +impl ::std::convert::From for ContourTransformWeight { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -19669,22 +19759,22 @@ pub enum ContourTransformX { ParamField(ParamField), Expr(Expr), } -impl From<&ContourTransformX> for ContourTransformX { +impl ::std::convert::From<&ContourTransformX> for ContourTransformX { fn from(value: &ContourTransformX) -> Self { value.clone() } } -impl From for ContourTransformX { +impl ::std::convert::From for ContourTransformX { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for ContourTransformX { +impl ::std::convert::From for ContourTransformX { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for ContourTransformX { +impl ::std::convert::From for ContourTransformX { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -19716,22 +19806,22 @@ pub enum ContourTransformY { ParamField(ParamField), Expr(Expr), } -impl From<&ContourTransformY> for ContourTransformY { +impl ::std::convert::From<&ContourTransformY> for ContourTransformY { fn from(value: &ContourTransformY) -> Self { value.clone() } } -impl From for ContourTransformY { +impl ::std::convert::From for ContourTransformY { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for ContourTransformY { +impl ::std::convert::From for ContourTransformY { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for ContourTransformY { +impl ::std::convert::From for ContourTransformY { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -19853,7 +19943,7 @@ pub struct CountpatternTransform { #[serde(rename = "type")] pub type_: CountpatternTransformType, } -impl From<&CountpatternTransform> for CountpatternTransform { +impl ::std::convert::From<&CountpatternTransform> for CountpatternTransform { fn from(value: &CountpatternTransform) -> Self { value.clone() } @@ -19897,12 +19987,12 @@ pub enum CountpatternTransformAs { Variant0([CountpatternTransformAsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&CountpatternTransformAs> for CountpatternTransformAs { +impl ::std::convert::From<&CountpatternTransformAs> for CountpatternTransformAs { fn from(value: &CountpatternTransformAs) -> Self { value.clone() } } -impl Default for CountpatternTransformAs { +impl ::std::default::Default for CountpatternTransformAs { fn default() -> Self { CountpatternTransformAs::Variant0([ CountpatternTransformAsVariant0Item::Variant0("text".to_string()), @@ -19910,12 +20000,14 @@ impl Default for CountpatternTransformAs { ]) } } -impl From<[CountpatternTransformAsVariant0Item; 2usize]> for CountpatternTransformAs { +impl ::std::convert::From<[CountpatternTransformAsVariant0Item; 2usize]> + for CountpatternTransformAs +{ fn from(value: [CountpatternTransformAsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for CountpatternTransformAs { +impl ::std::convert::From for CountpatternTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19943,12 +20035,14 @@ pub enum CountpatternTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&CountpatternTransformAsVariant0Item> for CountpatternTransformAsVariant0Item { +impl ::std::convert::From<&CountpatternTransformAsVariant0Item> + for CountpatternTransformAsVariant0Item +{ fn from(value: &CountpatternTransformAsVariant0Item) -> Self { value.clone() } } -impl From for CountpatternTransformAsVariant0Item { +impl ::std::convert::From for CountpatternTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -19981,22 +20075,22 @@ pub enum CountpatternTransformCase { Variant0(CountpatternTransformCaseVariant0), Variant1(SignalRef), } -impl From<&CountpatternTransformCase> for CountpatternTransformCase { +impl ::std::convert::From<&CountpatternTransformCase> for CountpatternTransformCase { fn from(value: &CountpatternTransformCase) -> Self { value.clone() } } -impl Default for CountpatternTransformCase { +impl ::std::default::Default for CountpatternTransformCase { fn default() -> Self { CountpatternTransformCase::Variant0(CountpatternTransformCaseVariant0::Mixed) } } -impl From for CountpatternTransformCase { +impl ::std::convert::From for CountpatternTransformCase { fn from(value: CountpatternTransformCaseVariant0) -> Self { Self::Variant0(value) } } -impl From for CountpatternTransformCase { +impl ::std::convert::From for CountpatternTransformCase { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20035,7 +20129,9 @@ pub enum CountpatternTransformCaseVariant0 { #[serde(rename = "mixed")] Mixed, } -impl From<&CountpatternTransformCaseVariant0> for CountpatternTransformCaseVariant0 { +impl ::std::convert::From<&CountpatternTransformCaseVariant0> + for CountpatternTransformCaseVariant0 +{ fn from(value: &CountpatternTransformCaseVariant0) -> Self { value.clone() } @@ -20049,7 +20145,7 @@ impl ::std::fmt::Display for CountpatternTransformCaseVariant0 { } } } -impl std::str::FromStr for CountpatternTransformCaseVariant0 { +impl ::std::str::FromStr for CountpatternTransformCaseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20060,13 +20156,13 @@ impl std::str::FromStr for CountpatternTransformCaseVariant0 { } } } -impl std::convert::TryFrom<&str> for CountpatternTransformCaseVariant0 { +impl ::std::convert::TryFrom<&str> for CountpatternTransformCaseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CountpatternTransformCaseVariant0 { +impl ::std::convert::TryFrom<&::std::string::String> for CountpatternTransformCaseVariant0 { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20074,7 +20170,7 @@ impl std::convert::TryFrom<&::std::string::String> for CountpatternTransformCase value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CountpatternTransformCaseVariant0 { +impl ::std::convert::TryFrom<::std::string::String> for CountpatternTransformCaseVariant0 { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20109,22 +20205,22 @@ pub enum CountpatternTransformField { ParamField(ParamField), Expr(Expr), } -impl From<&CountpatternTransformField> for CountpatternTransformField { +impl ::std::convert::From<&CountpatternTransformField> for CountpatternTransformField { fn from(value: &CountpatternTransformField) -> Self { value.clone() } } -impl From for CountpatternTransformField { +impl ::std::convert::From for CountpatternTransformField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for CountpatternTransformField { +impl ::std::convert::From for CountpatternTransformField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for CountpatternTransformField { +impl ::std::convert::From for CountpatternTransformField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -20153,17 +20249,17 @@ pub enum CountpatternTransformPattern { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&CountpatternTransformPattern> for CountpatternTransformPattern { +impl ::std::convert::From<&CountpatternTransformPattern> for CountpatternTransformPattern { fn from(value: &CountpatternTransformPattern) -> Self { value.clone() } } -impl Default for CountpatternTransformPattern { +impl ::std::default::Default for CountpatternTransformPattern { fn default() -> Self { CountpatternTransformPattern::Variant0("[\\w\"]+".to_string()) } } -impl From for CountpatternTransformPattern { +impl ::std::convert::From for CountpatternTransformPattern { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20191,12 +20287,12 @@ pub enum CountpatternTransformStopwords { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&CountpatternTransformStopwords> for CountpatternTransformStopwords { +impl ::std::convert::From<&CountpatternTransformStopwords> for CountpatternTransformStopwords { fn from(value: &CountpatternTransformStopwords) -> Self { value.clone() } } -impl From for CountpatternTransformStopwords { +impl ::std::convert::From for CountpatternTransformStopwords { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20229,7 +20325,7 @@ pub enum CountpatternTransformType { #[serde(rename = "countpattern")] Countpattern, } -impl From<&CountpatternTransformType> for CountpatternTransformType { +impl ::std::convert::From<&CountpatternTransformType> for CountpatternTransformType { fn from(value: &CountpatternTransformType) -> Self { value.clone() } @@ -20241,7 +20337,7 @@ impl ::std::fmt::Display for CountpatternTransformType { } } } -impl std::str::FromStr for CountpatternTransformType { +impl ::std::str::FromStr for CountpatternTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20250,13 +20346,13 @@ impl std::str::FromStr for CountpatternTransformType { } } } -impl std::convert::TryFrom<&str> for CountpatternTransformType { +impl ::std::convert::TryFrom<&str> for CountpatternTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CountpatternTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for CountpatternTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20264,7 +20360,7 @@ impl std::convert::TryFrom<&::std::string::String> for CountpatternTransformType value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CountpatternTransformType { +impl ::std::convert::TryFrom<::std::string::String> for CountpatternTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20337,7 +20433,7 @@ pub struct CrossTransform { #[serde(rename = "type")] pub type_: CrossTransformType, } -impl From<&CrossTransform> for CrossTransform { +impl ::std::convert::From<&CrossTransform> for CrossTransform { fn from(value: &CrossTransform) -> Self { value.clone() } @@ -20381,12 +20477,12 @@ pub enum CrossTransformAs { Variant0([CrossTransformAsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&CrossTransformAs> for CrossTransformAs { +impl ::std::convert::From<&CrossTransformAs> for CrossTransformAs { fn from(value: &CrossTransformAs) -> Self { value.clone() } } -impl Default for CrossTransformAs { +impl ::std::default::Default for CrossTransformAs { fn default() -> Self { CrossTransformAs::Variant0([ CrossTransformAsVariant0Item::Variant0("a".to_string()), @@ -20394,12 +20490,12 @@ impl Default for CrossTransformAs { ]) } } -impl From<[CrossTransformAsVariant0Item; 2usize]> for CrossTransformAs { +impl ::std::convert::From<[CrossTransformAsVariant0Item; 2usize]> for CrossTransformAs { fn from(value: [CrossTransformAsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for CrossTransformAs { +impl ::std::convert::From for CrossTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20427,12 +20523,12 @@ pub enum CrossTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&CrossTransformAsVariant0Item> for CrossTransformAsVariant0Item { +impl ::std::convert::From<&CrossTransformAsVariant0Item> for CrossTransformAsVariant0Item { fn from(value: &CrossTransformAsVariant0Item) -> Self { value.clone() } } -impl From for CrossTransformAsVariant0Item { +impl ::std::convert::From for CrossTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20465,7 +20561,7 @@ pub enum CrossTransformType { #[serde(rename = "cross")] Cross, } -impl From<&CrossTransformType> for CrossTransformType { +impl ::std::convert::From<&CrossTransformType> for CrossTransformType { fn from(value: &CrossTransformType) -> Self { value.clone() } @@ -20477,7 +20573,7 @@ impl ::std::fmt::Display for CrossTransformType { } } } -impl std::str::FromStr for CrossTransformType { +impl ::std::str::FromStr for CrossTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20486,13 +20582,13 @@ impl std::str::FromStr for CrossTransformType { } } } -impl std::convert::TryFrom<&str> for CrossTransformType { +impl ::std::convert::TryFrom<&str> for CrossTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CrossTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for CrossTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20500,7 +20596,7 @@ impl std::convert::TryFrom<&::std::string::String> for CrossTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CrossTransformType { +impl ::std::convert::TryFrom<::std::string::String> for CrossTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -20578,7 +20674,7 @@ pub struct CrossfilterTransform { #[serde(rename = "type")] pub type_: CrossfilterTransformType, } -impl From<&CrossfilterTransform> for CrossfilterTransform { +impl ::std::convert::From<&CrossfilterTransform> for CrossfilterTransform { fn from(value: &CrossfilterTransform) -> Self { value.clone() } @@ -20619,17 +20715,19 @@ pub enum CrossfilterTransformFields { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&CrossfilterTransformFields> for CrossfilterTransformFields { +impl ::std::convert::From<&CrossfilterTransformFields> for CrossfilterTransformFields { fn from(value: &CrossfilterTransformFields) -> Self { value.clone() } } -impl From<::std::vec::Vec> for CrossfilterTransformFields { +impl ::std::convert::From<::std::vec::Vec> + for CrossfilterTransformFields +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for CrossfilterTransformFields { +impl ::std::convert::From for CrossfilterTransformFields { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20661,22 +20759,24 @@ pub enum CrossfilterTransformFieldsVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&CrossfilterTransformFieldsVariant0Item> for CrossfilterTransformFieldsVariant0Item { +impl ::std::convert::From<&CrossfilterTransformFieldsVariant0Item> + for CrossfilterTransformFieldsVariant0Item +{ fn from(value: &CrossfilterTransformFieldsVariant0Item) -> Self { value.clone() } } -impl From for CrossfilterTransformFieldsVariant0Item { +impl ::std::convert::From for CrossfilterTransformFieldsVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for CrossfilterTransformFieldsVariant0Item { +impl ::std::convert::From for CrossfilterTransformFieldsVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for CrossfilterTransformFieldsVariant0Item { +impl ::std::convert::From for CrossfilterTransformFieldsVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -20705,17 +20805,17 @@ pub enum CrossfilterTransformQuery { Variant0(::std::vec::Vec<::serde_json::Value>), Variant1(SignalRef), } -impl From<&CrossfilterTransformQuery> for CrossfilterTransformQuery { +impl ::std::convert::From<&CrossfilterTransformQuery> for CrossfilterTransformQuery { fn from(value: &CrossfilterTransformQuery) -> Self { value.clone() } } -impl From<::std::vec::Vec<::serde_json::Value>> for CrossfilterTransformQuery { +impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> for CrossfilterTransformQuery { fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self { Self::Variant0(value) } } -impl From for CrossfilterTransformQuery { +impl ::std::convert::From for CrossfilterTransformQuery { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -20748,7 +20848,7 @@ pub enum CrossfilterTransformType { #[serde(rename = "crossfilter")] Crossfilter, } -impl From<&CrossfilterTransformType> for CrossfilterTransformType { +impl ::std::convert::From<&CrossfilterTransformType> for CrossfilterTransformType { fn from(value: &CrossfilterTransformType) -> Self { value.clone() } @@ -20760,7 +20860,7 @@ impl ::std::fmt::Display for CrossfilterTransformType { } } } -impl std::str::FromStr for CrossfilterTransformType { +impl ::std::str::FromStr for CrossfilterTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -20769,13 +20869,13 @@ impl std::str::FromStr for CrossfilterTransformType { } } } -impl std::convert::TryFrom<&str> for CrossfilterTransformType { +impl ::std::convert::TryFrom<&str> for CrossfilterTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for CrossfilterTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for CrossfilterTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -20783,7 +20883,7 @@ impl std::convert::TryFrom<&::std::string::String> for CrossfilterTransformType value.parse() } } -impl std::convert::TryFrom<::std::string::String> for CrossfilterTransformType { +impl ::std::convert::TryFrom<::std::string::String> for CrossfilterTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -21487,7 +21587,7 @@ pub enum Data { values: DataVariant3Values, }, } -impl From<&Data> for Data { +impl ::std::convert::From<&Data> for Data { fn from(value: &Data) -> Self { value.clone() } @@ -21519,12 +21619,12 @@ pub enum DataVariant1Source { Variant0(::std::string::String), Variant1(::std::vec::Vec<::std::string::String>), } -impl From<&DataVariant1Source> for DataVariant1Source { +impl ::std::convert::From<&DataVariant1Source> for DataVariant1Source { fn from(value: &DataVariant1Source) -> Self { value.clone() } } -impl From<::std::vec::Vec<::std::string::String>> for DataVariant1Source { +impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for DataVariant1Source { fn from(value: ::std::vec::Vec<::std::string::String>) -> Self { Self::Variant1(value) } @@ -21831,12 +21931,12 @@ pub enum DataVariant2Format { }, Variant1(SignalRef), } -impl From<&DataVariant2Format> for DataVariant2Format { +impl ::std::convert::From<&DataVariant2Format> for DataVariant2Format { fn from(value: &DataVariant2Format) -> Self { value.clone() } } -impl From for DataVariant2Format { +impl ::std::convert::From for DataVariant2Format { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -21898,11 +21998,21 @@ pub struct DataVariant2FormatVariant0Subtype0 { )] pub type_: ::std::option::Option, } -impl From<&DataVariant2FormatVariant0Subtype0> for DataVariant2FormatVariant0Subtype0 { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype0> + for DataVariant2FormatVariant0Subtype0 +{ fn from(value: &DataVariant2FormatVariant0Subtype0) -> Self { value.clone() } } +impl ::std::default::Default for DataVariant2FormatVariant0Subtype0 { + fn default() -> Self { + Self { + parse: Default::default(), + type_: Default::default(), + } + } +} #[doc = "DataVariant2FormatVariant0Subtype0Parse"] #[doc = r""] #[doc = r"
JSON schema"] @@ -21953,12 +22063,14 @@ pub enum DataVariant2FormatVariant0Subtype0Parse { ), Variant2(SignalRef), } -impl From<&DataVariant2FormatVariant0Subtype0Parse> for DataVariant2FormatVariant0Subtype0Parse { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype0Parse> + for DataVariant2FormatVariant0Subtype0Parse +{ fn from(value: &DataVariant2FormatVariant0Subtype0Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype0Parse { fn from(value: DataVariant2FormatVariant0Subtype0ParseVariant0) -> Self { @@ -21966,7 +22078,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant2FormatVariant0Subtype0ParseVariant1Value, @@ -21982,7 +22094,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant2FormatVariant0Subtype0Parse { +impl ::std::convert::From for DataVariant2FormatVariant0Subtype0Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -22015,7 +22127,7 @@ pub enum DataVariant2FormatVariant0Subtype0ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant2FormatVariant0Subtype0ParseVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype0ParseVariant0> for DataVariant2FormatVariant0Subtype0ParseVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype0ParseVariant0) -> Self { @@ -22029,7 +22141,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype0ParseVariant0 { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22038,13 +22150,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype0ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype0ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype0ParseVariant0 { type Error = self::error::ConversionError; @@ -22054,7 +22166,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype0ParseVariant0 { type Error = self::error::ConversionError; @@ -22093,14 +22205,14 @@ pub enum DataVariant2FormatVariant0Subtype0ParseVariant1Value { Variant0(DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0), Variant1(DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1), } -impl From<&DataVariant2FormatVariant0Subtype0ParseVariant1Value> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype0ParseVariant1Value> for DataVariant2FormatVariant0Subtype0ParseVariant1Value { fn from(value: &DataVariant2FormatVariant0Subtype0ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant1Value { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -22112,13 +22224,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype0ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype0ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype0ParseVariant1Value { type Error = self::error::ConversionError; @@ -22128,7 +22240,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype0ParseVariant1Value { type Error = self::error::ConversionError; @@ -22146,14 +22258,14 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype0ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype0ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype0ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1) -> Self { @@ -22197,7 +22309,7 @@ pub enum DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0> for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0) -> Self { @@ -22214,7 +22326,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype0ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22226,13 +22338,15 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype0ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -22242,7 +22356,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -22271,12 +22385,14 @@ impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype0ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1> for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1 { fn from(value: &DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1) -> Self { @@ -22409,11 +22525,23 @@ pub struct DataVariant2FormatVariant0Subtype1 { )] pub type_: ::std::option::Option, } -impl From<&DataVariant2FormatVariant0Subtype1> for DataVariant2FormatVariant0Subtype1 { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1> + for DataVariant2FormatVariant0Subtype1 +{ fn from(value: &DataVariant2FormatVariant0Subtype1) -> Self { value.clone() } } +impl ::std::default::Default for DataVariant2FormatVariant0Subtype1 { + fn default() -> Self { + Self { + copy: Default::default(), + parse: Default::default(), + property: Default::default(), + type_: Default::default(), + } + } +} #[doc = "DataVariant2FormatVariant0Subtype1Parse"] #[doc = r""] #[doc = r"
JSON schema"] @@ -22464,12 +22592,14 @@ pub enum DataVariant2FormatVariant0Subtype1Parse { ), Variant2(SignalRef), } -impl From<&DataVariant2FormatVariant0Subtype1Parse> for DataVariant2FormatVariant0Subtype1Parse { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1Parse> + for DataVariant2FormatVariant0Subtype1Parse +{ fn from(value: &DataVariant2FormatVariant0Subtype1Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype1Parse { fn from(value: DataVariant2FormatVariant0Subtype1ParseVariant0) -> Self { @@ -22477,7 +22607,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant2FormatVariant0Subtype1ParseVariant1Value, @@ -22493,7 +22623,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant2FormatVariant0Subtype1Parse { +impl ::std::convert::From for DataVariant2FormatVariant0Subtype1Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -22526,7 +22656,7 @@ pub enum DataVariant2FormatVariant0Subtype1ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant2FormatVariant0Subtype1ParseVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1ParseVariant0> for DataVariant2FormatVariant0Subtype1ParseVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype1ParseVariant0) -> Self { @@ -22540,7 +22670,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype1ParseVariant0 { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22549,13 +22679,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype1ParseVariant0 { type Error = self::error::ConversionError; @@ -22565,7 +22695,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype1ParseVariant0 { type Error = self::error::ConversionError; @@ -22604,14 +22734,14 @@ pub enum DataVariant2FormatVariant0Subtype1ParseVariant1Value { Variant0(DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0), Variant1(DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1), } -impl From<&DataVariant2FormatVariant0Subtype1ParseVariant1Value> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1ParseVariant1Value> for DataVariant2FormatVariant0Subtype1ParseVariant1Value { fn from(value: &DataVariant2FormatVariant0Subtype1ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant1Value { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -22623,13 +22753,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype1ParseVariant1Value { type Error = self::error::ConversionError; @@ -22639,7 +22769,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype1ParseVariant1Value { type Error = self::error::ConversionError; @@ -22657,14 +22787,14 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype1ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype1ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype1ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1) -> Self { @@ -22708,7 +22838,7 @@ pub enum DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0> for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0) -> Self { @@ -22725,7 +22855,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype1ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22737,13 +22867,15 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype1ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -22753,7 +22885,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -22782,12 +22914,14 @@ impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype1ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1> for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1 { fn from(value: &DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1) -> Self { @@ -22877,7 +23011,9 @@ pub enum DataVariant2FormatVariant0Subtype1Type { #[serde(rename = "json")] Json, } -impl From<&DataVariant2FormatVariant0Subtype1Type> for DataVariant2FormatVariant0Subtype1Type { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype1Type> + for DataVariant2FormatVariant0Subtype1Type +{ fn from(value: &DataVariant2FormatVariant0Subtype1Type) -> Self { value.clone() } @@ -22889,7 +23025,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype1Type { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype1Type { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype1Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -22898,13 +23034,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype1Type { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1Type { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype1Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype1Type { +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype1Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -22912,7 +23048,7 @@ impl std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype1Type { +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype1Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -22989,7 +23125,9 @@ pub struct DataVariant2FormatVariant0Subtype2 { #[serde(rename = "type")] pub type_: DataVariant2FormatVariant0Subtype2Type, } -impl From<&DataVariant2FormatVariant0Subtype2> for DataVariant2FormatVariant0Subtype2 { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2> + for DataVariant2FormatVariant0Subtype2 +{ fn from(value: &DataVariant2FormatVariant0Subtype2) -> Self { value.clone() } @@ -23044,12 +23182,14 @@ pub enum DataVariant2FormatVariant0Subtype2Parse { ), Variant2(SignalRef), } -impl From<&DataVariant2FormatVariant0Subtype2Parse> for DataVariant2FormatVariant0Subtype2Parse { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2Parse> + for DataVariant2FormatVariant0Subtype2Parse +{ fn from(value: &DataVariant2FormatVariant0Subtype2Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype2Parse { fn from(value: DataVariant2FormatVariant0Subtype2ParseVariant0) -> Self { @@ -23057,7 +23197,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant2FormatVariant0Subtype2ParseVariant1Value, @@ -23073,7 +23213,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant2FormatVariant0Subtype2Parse { +impl ::std::convert::From for DataVariant2FormatVariant0Subtype2Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -23106,7 +23246,7 @@ pub enum DataVariant2FormatVariant0Subtype2ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant2FormatVariant0Subtype2ParseVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2ParseVariant0> for DataVariant2FormatVariant0Subtype2ParseVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype2ParseVariant0) -> Self { @@ -23120,7 +23260,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype2ParseVariant0 { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23129,13 +23269,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype2ParseVariant0 { type Error = self::error::ConversionError; @@ -23145,7 +23285,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype2ParseVariant0 { type Error = self::error::ConversionError; @@ -23184,14 +23324,14 @@ pub enum DataVariant2FormatVariant0Subtype2ParseVariant1Value { Variant0(DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0), Variant1(DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1), } -impl From<&DataVariant2FormatVariant0Subtype2ParseVariant1Value> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2ParseVariant1Value> for DataVariant2FormatVariant0Subtype2ParseVariant1Value { fn from(value: &DataVariant2FormatVariant0Subtype2ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant1Value { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -23203,13 +23343,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype2ParseVariant1Value { type Error = self::error::ConversionError; @@ -23219,7 +23359,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype2ParseVariant1Value { type Error = self::error::ConversionError; @@ -23237,14 +23377,14 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype2ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype2ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype2ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1) -> Self { @@ -23288,7 +23428,7 @@ pub enum DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0> for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0) -> Self { @@ -23305,7 +23445,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype2ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23317,13 +23457,15 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype2ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -23333,7 +23475,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -23362,12 +23504,14 @@ impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype2ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1> for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1 { fn from(value: &DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1) -> Self { @@ -23460,7 +23604,9 @@ pub enum DataVariant2FormatVariant0Subtype2Type { #[serde(rename = "tsv")] Tsv, } -impl From<&DataVariant2FormatVariant0Subtype2Type> for DataVariant2FormatVariant0Subtype2Type { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype2Type> + for DataVariant2FormatVariant0Subtype2Type +{ fn from(value: &DataVariant2FormatVariant0Subtype2Type) -> Self { value.clone() } @@ -23473,7 +23619,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype2Type { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype2Type { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype2Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23483,13 +23629,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype2Type { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2Type { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype2Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype2Type { +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype2Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -23497,7 +23643,7 @@ impl std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype2Type { +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype2Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -23578,7 +23724,9 @@ pub struct DataVariant2FormatVariant0Subtype3 { #[serde(rename = "type")] pub type_: DataVariant2FormatVariant0Subtype3Type, } -impl From<&DataVariant2FormatVariant0Subtype3> for DataVariant2FormatVariant0Subtype3 { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3> + for DataVariant2FormatVariant0Subtype3 +{ fn from(value: &DataVariant2FormatVariant0Subtype3) -> Self { value.clone() } @@ -23633,12 +23781,14 @@ pub enum DataVariant2FormatVariant0Subtype3Parse { ), Variant2(SignalRef), } -impl From<&DataVariant2FormatVariant0Subtype3Parse> for DataVariant2FormatVariant0Subtype3Parse { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3Parse> + for DataVariant2FormatVariant0Subtype3Parse +{ fn from(value: &DataVariant2FormatVariant0Subtype3Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype3Parse { fn from(value: DataVariant2FormatVariant0Subtype3ParseVariant0) -> Self { @@ -23646,7 +23796,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant2FormatVariant0Subtype3ParseVariant1Value, @@ -23662,7 +23812,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant2FormatVariant0Subtype3Parse { +impl ::std::convert::From for DataVariant2FormatVariant0Subtype3Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -23695,7 +23845,7 @@ pub enum DataVariant2FormatVariant0Subtype3ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant2FormatVariant0Subtype3ParseVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3ParseVariant0> for DataVariant2FormatVariant0Subtype3ParseVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype3ParseVariant0) -> Self { @@ -23709,7 +23859,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype3ParseVariant0 { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23718,13 +23868,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype3ParseVariant0 { type Error = self::error::ConversionError; @@ -23734,7 +23884,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype3ParseVariant0 { type Error = self::error::ConversionError; @@ -23773,14 +23923,14 @@ pub enum DataVariant2FormatVariant0Subtype3ParseVariant1Value { Variant0(DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0), Variant1(DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1), } -impl From<&DataVariant2FormatVariant0Subtype3ParseVariant1Value> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3ParseVariant1Value> for DataVariant2FormatVariant0Subtype3ParseVariant1Value { fn from(value: &DataVariant2FormatVariant0Subtype3ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant1Value { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -23792,13 +23942,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype3ParseVariant1Value { type Error = self::error::ConversionError; @@ -23808,7 +23958,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype3ParseVariant1Value { type Error = self::error::ConversionError; @@ -23826,14 +23976,14 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype3ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype3ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant2FormatVariant0Subtype3ParseVariant1Value { fn from(value: DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1) -> Self { @@ -23877,7 +24027,7 @@ pub enum DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0> for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { fn from(value: &DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0) -> Self { @@ -23894,7 +24044,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype3ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -23906,13 +24056,15 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype3ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -23922,7 +24074,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -23951,12 +24103,14 @@ impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype3ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1> for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1 { fn from(value: &DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1) -> Self { @@ -24046,7 +24200,9 @@ pub enum DataVariant2FormatVariant0Subtype3Type { #[serde(rename = "dsv")] Dsv, } -impl From<&DataVariant2FormatVariant0Subtype3Type> for DataVariant2FormatVariant0Subtype3Type { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype3Type> + for DataVariant2FormatVariant0Subtype3Type +{ fn from(value: &DataVariant2FormatVariant0Subtype3Type) -> Self { value.clone() } @@ -24058,7 +24214,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype3Type { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype3Type { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype3Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24067,13 +24223,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype3Type { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3Type { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype3Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype3Type { +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype3Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -24081,7 +24237,7 @@ impl std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype3Type { +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype3Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -24169,7 +24325,9 @@ pub enum DataVariant2FormatVariant0Subtype4 { type_: DataVariant2FormatVariant0Subtype4Variant1Type, }, } -impl From<&DataVariant2FormatVariant0Subtype4> for DataVariant2FormatVariant0Subtype4 { +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype4> + for DataVariant2FormatVariant0Subtype4 +{ fn from(value: &DataVariant2FormatVariant0Subtype4) -> Self { value.clone() } @@ -24202,7 +24360,7 @@ pub enum DataVariant2FormatVariant0Subtype4Variant0Type { #[serde(rename = "topojson")] Topojson, } -impl From<&DataVariant2FormatVariant0Subtype4Variant0Type> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype4Variant0Type> for DataVariant2FormatVariant0Subtype4Variant0Type { fn from(value: &DataVariant2FormatVariant0Subtype4Variant0Type) -> Self { @@ -24216,7 +24374,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype4Variant0Type { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant0Type { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant0Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24225,13 +24383,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant0Type { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype4Variant0Type { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype4Variant0Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype4Variant0Type { type Error = self::error::ConversionError; @@ -24241,7 +24399,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype4Variant0Type { type Error = self::error::ConversionError; @@ -24283,7 +24441,7 @@ pub enum DataVariant2FormatVariant0Subtype4Variant1Filter { #[serde(rename = "exterior")] Exterior, } -impl From<&DataVariant2FormatVariant0Subtype4Variant1Filter> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype4Variant1Filter> for DataVariant2FormatVariant0Subtype4Variant1Filter { fn from(value: &DataVariant2FormatVariant0Subtype4Variant1Filter) -> Self { @@ -24298,7 +24456,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype4Variant1Filter { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant1Filter { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant1Filter { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24308,13 +24466,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant1Filter { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype4Variant1Filter { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype4Variant1Filter { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype4Variant1Filter { type Error = self::error::ConversionError; @@ -24324,7 +24482,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype4Variant1Filter { type Error = self::error::ConversionError; @@ -24362,7 +24520,7 @@ pub enum DataVariant2FormatVariant0Subtype4Variant1Type { #[serde(rename = "topojson")] Topojson, } -impl From<&DataVariant2FormatVariant0Subtype4Variant1Type> +impl ::std::convert::From<&DataVariant2FormatVariant0Subtype4Variant1Type> for DataVariant2FormatVariant0Subtype4Variant1Type { fn from(value: &DataVariant2FormatVariant0Subtype4Variant1Type) -> Self { @@ -24376,7 +24534,7 @@ impl ::std::fmt::Display for DataVariant2FormatVariant0Subtype4Variant1Type { } } } -impl std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant1Type { +impl ::std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant1Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24385,13 +24543,13 @@ impl std::str::FromStr for DataVariant2FormatVariant0Subtype4Variant1Type { } } } -impl std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype4Variant1Type { +impl ::std::convert::TryFrom<&str> for DataVariant2FormatVariant0Subtype4Variant1Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant2FormatVariant0Subtype4Variant1Type { type Error = self::error::ConversionError; @@ -24401,7 +24559,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant2FormatVariant0Subtype4Variant1Type { type Error = self::error::ConversionError; @@ -24713,12 +24871,12 @@ pub enum DataVariant3Format { }, Variant1(SignalRef), } -impl From<&DataVariant3Format> for DataVariant3Format { +impl ::std::convert::From<&DataVariant3Format> for DataVariant3Format { fn from(value: &DataVariant3Format) -> Self { value.clone() } } -impl From for DataVariant3Format { +impl ::std::convert::From for DataVariant3Format { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -24780,11 +24938,21 @@ pub struct DataVariant3FormatVariant0Subtype0 { )] pub type_: ::std::option::Option, } -impl From<&DataVariant3FormatVariant0Subtype0> for DataVariant3FormatVariant0Subtype0 { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype0> + for DataVariant3FormatVariant0Subtype0 +{ fn from(value: &DataVariant3FormatVariant0Subtype0) -> Self { value.clone() } } +impl ::std::default::Default for DataVariant3FormatVariant0Subtype0 { + fn default() -> Self { + Self { + parse: Default::default(), + type_: Default::default(), + } + } +} #[doc = "DataVariant3FormatVariant0Subtype0Parse"] #[doc = r""] #[doc = r"
JSON schema"] @@ -24835,12 +25003,14 @@ pub enum DataVariant3FormatVariant0Subtype0Parse { ), Variant2(SignalRef), } -impl From<&DataVariant3FormatVariant0Subtype0Parse> for DataVariant3FormatVariant0Subtype0Parse { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype0Parse> + for DataVariant3FormatVariant0Subtype0Parse +{ fn from(value: &DataVariant3FormatVariant0Subtype0Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype0Parse { fn from(value: DataVariant3FormatVariant0Subtype0ParseVariant0) -> Self { @@ -24848,7 +25018,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant3FormatVariant0Subtype0ParseVariant1Value, @@ -24864,7 +25034,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant3FormatVariant0Subtype0Parse { +impl ::std::convert::From for DataVariant3FormatVariant0Subtype0Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -24897,7 +25067,7 @@ pub enum DataVariant3FormatVariant0Subtype0ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant3FormatVariant0Subtype0ParseVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype0ParseVariant0> for DataVariant3FormatVariant0Subtype0ParseVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype0ParseVariant0) -> Self { @@ -24911,7 +25081,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype0ParseVariant0 { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -24920,13 +25090,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype0ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype0ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype0ParseVariant0 { type Error = self::error::ConversionError; @@ -24936,7 +25106,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype0ParseVariant0 { type Error = self::error::ConversionError; @@ -24975,14 +25145,14 @@ pub enum DataVariant3FormatVariant0Subtype0ParseVariant1Value { Variant0(DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0), Variant1(DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1), } -impl From<&DataVariant3FormatVariant0Subtype0ParseVariant1Value> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype0ParseVariant1Value> for DataVariant3FormatVariant0Subtype0ParseVariant1Value { fn from(value: &DataVariant3FormatVariant0Subtype0ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant1Value { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -24994,13 +25164,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype0ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype0ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype0ParseVariant1Value { type Error = self::error::ConversionError; @@ -25010,7 +25180,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype0ParseVariant1Value { type Error = self::error::ConversionError; @@ -25028,14 +25198,14 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype0ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype0ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype0ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1) -> Self { @@ -25079,7 +25249,7 @@ pub enum DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0> for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0) -> Self { @@ -25096,7 +25266,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype0ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25108,13 +25278,15 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype0ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -25124,7 +25296,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -25153,12 +25325,14 @@ impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype0ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1> for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1 { fn from(value: &DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1) -> Self { @@ -25291,11 +25465,23 @@ pub struct DataVariant3FormatVariant0Subtype1 { )] pub type_: ::std::option::Option, } -impl From<&DataVariant3FormatVariant0Subtype1> for DataVariant3FormatVariant0Subtype1 { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1> + for DataVariant3FormatVariant0Subtype1 +{ fn from(value: &DataVariant3FormatVariant0Subtype1) -> Self { value.clone() } } +impl ::std::default::Default for DataVariant3FormatVariant0Subtype1 { + fn default() -> Self { + Self { + copy: Default::default(), + parse: Default::default(), + property: Default::default(), + type_: Default::default(), + } + } +} #[doc = "DataVariant3FormatVariant0Subtype1Parse"] #[doc = r""] #[doc = r"
JSON schema"] @@ -25346,12 +25532,14 @@ pub enum DataVariant3FormatVariant0Subtype1Parse { ), Variant2(SignalRef), } -impl From<&DataVariant3FormatVariant0Subtype1Parse> for DataVariant3FormatVariant0Subtype1Parse { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1Parse> + for DataVariant3FormatVariant0Subtype1Parse +{ fn from(value: &DataVariant3FormatVariant0Subtype1Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype1Parse { fn from(value: DataVariant3FormatVariant0Subtype1ParseVariant0) -> Self { @@ -25359,7 +25547,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant3FormatVariant0Subtype1ParseVariant1Value, @@ -25375,7 +25563,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant3FormatVariant0Subtype1Parse { +impl ::std::convert::From for DataVariant3FormatVariant0Subtype1Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -25408,7 +25596,7 @@ pub enum DataVariant3FormatVariant0Subtype1ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant3FormatVariant0Subtype1ParseVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1ParseVariant0> for DataVariant3FormatVariant0Subtype1ParseVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype1ParseVariant0) -> Self { @@ -25422,7 +25610,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype1ParseVariant0 { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25431,13 +25619,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype1ParseVariant0 { type Error = self::error::ConversionError; @@ -25447,7 +25635,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype1ParseVariant0 { type Error = self::error::ConversionError; @@ -25486,14 +25674,14 @@ pub enum DataVariant3FormatVariant0Subtype1ParseVariant1Value { Variant0(DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0), Variant1(DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1), } -impl From<&DataVariant3FormatVariant0Subtype1ParseVariant1Value> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1ParseVariant1Value> for DataVariant3FormatVariant0Subtype1ParseVariant1Value { fn from(value: &DataVariant3FormatVariant0Subtype1ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant1Value { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -25505,13 +25693,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype1ParseVariant1Value { type Error = self::error::ConversionError; @@ -25521,7 +25709,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype1ParseVariant1Value { type Error = self::error::ConversionError; @@ -25539,14 +25727,14 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype1ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype1ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype1ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1) -> Self { @@ -25590,7 +25778,7 @@ pub enum DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0> for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0) -> Self { @@ -25607,7 +25795,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype1ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25619,13 +25807,15 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype1ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -25635,7 +25825,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -25664,12 +25854,14 @@ impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype1ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1> for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1 { fn from(value: &DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1) -> Self { @@ -25759,7 +25951,9 @@ pub enum DataVariant3FormatVariant0Subtype1Type { #[serde(rename = "json")] Json, } -impl From<&DataVariant3FormatVariant0Subtype1Type> for DataVariant3FormatVariant0Subtype1Type { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype1Type> + for DataVariant3FormatVariant0Subtype1Type +{ fn from(value: &DataVariant3FormatVariant0Subtype1Type) -> Self { value.clone() } @@ -25771,7 +25965,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype1Type { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype1Type { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype1Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -25780,13 +25974,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype1Type { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1Type { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype1Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype1Type { +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype1Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -25794,7 +25988,7 @@ impl std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype1Type { +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype1Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -25871,7 +26065,9 @@ pub struct DataVariant3FormatVariant0Subtype2 { #[serde(rename = "type")] pub type_: DataVariant3FormatVariant0Subtype2Type, } -impl From<&DataVariant3FormatVariant0Subtype2> for DataVariant3FormatVariant0Subtype2 { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2> + for DataVariant3FormatVariant0Subtype2 +{ fn from(value: &DataVariant3FormatVariant0Subtype2) -> Self { value.clone() } @@ -25926,12 +26122,14 @@ pub enum DataVariant3FormatVariant0Subtype2Parse { ), Variant2(SignalRef), } -impl From<&DataVariant3FormatVariant0Subtype2Parse> for DataVariant3FormatVariant0Subtype2Parse { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2Parse> + for DataVariant3FormatVariant0Subtype2Parse +{ fn from(value: &DataVariant3FormatVariant0Subtype2Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype2Parse { fn from(value: DataVariant3FormatVariant0Subtype2ParseVariant0) -> Self { @@ -25939,7 +26137,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant3FormatVariant0Subtype2ParseVariant1Value, @@ -25955,7 +26153,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant3FormatVariant0Subtype2Parse { +impl ::std::convert::From for DataVariant3FormatVariant0Subtype2Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -25988,7 +26186,7 @@ pub enum DataVariant3FormatVariant0Subtype2ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant3FormatVariant0Subtype2ParseVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2ParseVariant0> for DataVariant3FormatVariant0Subtype2ParseVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype2ParseVariant0) -> Self { @@ -26002,7 +26200,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype2ParseVariant0 { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26011,13 +26209,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype2ParseVariant0 { type Error = self::error::ConversionError; @@ -26027,7 +26225,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype2ParseVariant0 { type Error = self::error::ConversionError; @@ -26066,14 +26264,14 @@ pub enum DataVariant3FormatVariant0Subtype2ParseVariant1Value { Variant0(DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0), Variant1(DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1), } -impl From<&DataVariant3FormatVariant0Subtype2ParseVariant1Value> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2ParseVariant1Value> for DataVariant3FormatVariant0Subtype2ParseVariant1Value { fn from(value: &DataVariant3FormatVariant0Subtype2ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant1Value { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -26085,13 +26283,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype2ParseVariant1Value { type Error = self::error::ConversionError; @@ -26101,7 +26299,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype2ParseVariant1Value { type Error = self::error::ConversionError; @@ -26119,14 +26317,14 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype2ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype2ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype2ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1) -> Self { @@ -26170,7 +26368,7 @@ pub enum DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0> for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0) -> Self { @@ -26187,7 +26385,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype2ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26199,13 +26397,15 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype2ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -26215,7 +26415,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -26244,12 +26444,14 @@ impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype2ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1> for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1 { fn from(value: &DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1) -> Self { @@ -26342,7 +26544,9 @@ pub enum DataVariant3FormatVariant0Subtype2Type { #[serde(rename = "tsv")] Tsv, } -impl From<&DataVariant3FormatVariant0Subtype2Type> for DataVariant3FormatVariant0Subtype2Type { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype2Type> + for DataVariant3FormatVariant0Subtype2Type +{ fn from(value: &DataVariant3FormatVariant0Subtype2Type) -> Self { value.clone() } @@ -26355,7 +26559,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype2Type { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype2Type { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype2Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26365,13 +26569,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype2Type { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2Type { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype2Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype2Type { +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype2Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26379,7 +26583,7 @@ impl std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype2Type { +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype2Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -26460,7 +26664,9 @@ pub struct DataVariant3FormatVariant0Subtype3 { #[serde(rename = "type")] pub type_: DataVariant3FormatVariant0Subtype3Type, } -impl From<&DataVariant3FormatVariant0Subtype3> for DataVariant3FormatVariant0Subtype3 { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3> + for DataVariant3FormatVariant0Subtype3 +{ fn from(value: &DataVariant3FormatVariant0Subtype3) -> Self { value.clone() } @@ -26515,12 +26721,14 @@ pub enum DataVariant3FormatVariant0Subtype3Parse { ), Variant2(SignalRef), } -impl From<&DataVariant3FormatVariant0Subtype3Parse> for DataVariant3FormatVariant0Subtype3Parse { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3Parse> + for DataVariant3FormatVariant0Subtype3Parse +{ fn from(value: &DataVariant3FormatVariant0Subtype3Parse) -> Self { value.clone() } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype3Parse { fn from(value: DataVariant3FormatVariant0Subtype3ParseVariant0) -> Self { @@ -26528,7 +26736,7 @@ impl From } } impl - From< + ::std::convert::From< ::std::collections::HashMap< ::std::string::String, DataVariant3FormatVariant0Subtype3ParseVariant1Value, @@ -26544,7 +26752,7 @@ impl Self::Variant1(value) } } -impl From for DataVariant3FormatVariant0Subtype3Parse { +impl ::std::convert::From for DataVariant3FormatVariant0Subtype3Parse { fn from(value: SignalRef) -> Self { Self::Variant2(value) } @@ -26577,7 +26785,7 @@ pub enum DataVariant3FormatVariant0Subtype3ParseVariant0 { #[serde(rename = "auto")] Auto, } -impl From<&DataVariant3FormatVariant0Subtype3ParseVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3ParseVariant0> for DataVariant3FormatVariant0Subtype3ParseVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype3ParseVariant0) -> Self { @@ -26591,7 +26799,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype3ParseVariant0 { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26600,13 +26808,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant0 { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3ParseVariant0 { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3ParseVariant0 { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype3ParseVariant0 { type Error = self::error::ConversionError; @@ -26616,7 +26824,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype3ParseVariant0 { type Error = self::error::ConversionError; @@ -26655,14 +26863,14 @@ pub enum DataVariant3FormatVariant0Subtype3ParseVariant1Value { Variant0(DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0), Variant1(DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1), } -impl From<&DataVariant3FormatVariant0Subtype3ParseVariant1Value> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3ParseVariant1Value> for DataVariant3FormatVariant0Subtype3ParseVariant1Value { fn from(value: &DataVariant3FormatVariant0Subtype3ParseVariant1Value) -> Self { value.clone() } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant1Value { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -26674,13 +26882,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant1Value } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3ParseVariant1Value { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3ParseVariant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype3ParseVariant1Value { type Error = self::error::ConversionError; @@ -26690,7 +26898,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype3ParseVariant1Value { type Error = self::error::ConversionError; @@ -26708,14 +26916,14 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype3ParseVariant1Valu } } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype3ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0) -> Self { Self::Variant0(value) } } -impl From +impl ::std::convert::From for DataVariant3FormatVariant0Subtype3ParseVariant1Value { fn from(value: DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1) -> Self { @@ -26759,7 +26967,7 @@ pub enum DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { #[serde(rename = "string")] String, } -impl From<&DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0> for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { fn from(value: &DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0) -> Self { @@ -26776,7 +26984,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype3ParseVariant1Valu } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26788,13 +26996,15 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype3ParseVariant1ValueV } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { +impl ::std::convert::TryFrom<&str> + for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 +{ type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -26804,7 +27014,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant0 { type Error = self::error::ConversionError; @@ -26833,12 +27043,14 @@ impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype3ParseVariant1ValueV &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From + for ::std::string::String +{ fn from(value: DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1) -> Self { value.0 } } -impl From<&DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1> for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1 { fn from(value: &DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1) -> Self { @@ -26928,7 +27140,9 @@ pub enum DataVariant3FormatVariant0Subtype3Type { #[serde(rename = "dsv")] Dsv, } -impl From<&DataVariant3FormatVariant0Subtype3Type> for DataVariant3FormatVariant0Subtype3Type { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype3Type> + for DataVariant3FormatVariant0Subtype3Type +{ fn from(value: &DataVariant3FormatVariant0Subtype3Type) -> Self { value.clone() } @@ -26940,7 +27154,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype3Type { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype3Type { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype3Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -26949,13 +27163,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype3Type { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3Type { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype3Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype3Type { +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype3Type { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -26963,7 +27177,7 @@ impl std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype3Type { +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype3Type { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -27051,7 +27265,9 @@ pub enum DataVariant3FormatVariant0Subtype4 { type_: DataVariant3FormatVariant0Subtype4Variant1Type, }, } -impl From<&DataVariant3FormatVariant0Subtype4> for DataVariant3FormatVariant0Subtype4 { +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype4> + for DataVariant3FormatVariant0Subtype4 +{ fn from(value: &DataVariant3FormatVariant0Subtype4) -> Self { value.clone() } @@ -27084,7 +27300,7 @@ pub enum DataVariant3FormatVariant0Subtype4Variant0Type { #[serde(rename = "topojson")] Topojson, } -impl From<&DataVariant3FormatVariant0Subtype4Variant0Type> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype4Variant0Type> for DataVariant3FormatVariant0Subtype4Variant0Type { fn from(value: &DataVariant3FormatVariant0Subtype4Variant0Type) -> Self { @@ -27098,7 +27314,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype4Variant0Type { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant0Type { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant0Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -27107,13 +27323,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant0Type { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype4Variant0Type { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype4Variant0Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype4Variant0Type { type Error = self::error::ConversionError; @@ -27123,7 +27339,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype4Variant0Type { type Error = self::error::ConversionError; @@ -27165,7 +27381,7 @@ pub enum DataVariant3FormatVariant0Subtype4Variant1Filter { #[serde(rename = "exterior")] Exterior, } -impl From<&DataVariant3FormatVariant0Subtype4Variant1Filter> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype4Variant1Filter> for DataVariant3FormatVariant0Subtype4Variant1Filter { fn from(value: &DataVariant3FormatVariant0Subtype4Variant1Filter) -> Self { @@ -27180,7 +27396,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype4Variant1Filter { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant1Filter { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant1Filter { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -27190,13 +27406,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant1Filter { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype4Variant1Filter { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype4Variant1Filter { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype4Variant1Filter { type Error = self::error::ConversionError; @@ -27206,7 +27422,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype4Variant1Filter { type Error = self::error::ConversionError; @@ -27244,7 +27460,7 @@ pub enum DataVariant3FormatVariant0Subtype4Variant1Type { #[serde(rename = "topojson")] Topojson, } -impl From<&DataVariant3FormatVariant0Subtype4Variant1Type> +impl ::std::convert::From<&DataVariant3FormatVariant0Subtype4Variant1Type> for DataVariant3FormatVariant0Subtype4Variant1Type { fn from(value: &DataVariant3FormatVariant0Subtype4Variant1Type) -> Self { @@ -27258,7 +27474,7 @@ impl ::std::fmt::Display for DataVariant3FormatVariant0Subtype4Variant1Type { } } } -impl std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant1Type { +impl ::std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant1Type { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -27267,13 +27483,13 @@ impl std::str::FromStr for DataVariant3FormatVariant0Subtype4Variant1Type { } } } -impl std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype4Variant1Type { +impl ::std::convert::TryFrom<&str> for DataVariant3FormatVariant0Subtype4Variant1Type { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DataVariant3FormatVariant0Subtype4Variant1Type { type Error = self::error::ConversionError; @@ -27283,7 +27499,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DataVariant3FormatVariant0Subtype4Variant1Type { type Error = self::error::ConversionError; @@ -27314,17 +27530,17 @@ pub enum DataVariant3Values { Variant0(::serde_json::Value), Variant1(SignalRef), } -impl From<&DataVariant3Values> for DataVariant3Values { +impl ::std::convert::From<&DataVariant3Values> for DataVariant3Values { fn from(value: &DataVariant3Values) -> Self { value.clone() } } -impl From<::serde_json::Value> for DataVariant3Values { +impl ::std::convert::From<::serde_json::Value> for DataVariant3Values { fn from(value: ::serde_json::Value) -> Self { Self::Variant0(value) } } -impl From for DataVariant3Values { +impl ::std::convert::From for DataVariant3Values { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -27659,7 +27875,7 @@ pub struct DensityTransform { #[serde(rename = "type")] pub type_: DensityTransformType, } -impl From<&DensityTransform> for DensityTransform { +impl ::std::convert::From<&DensityTransform> for DensityTransform { fn from(value: &DensityTransform) -> Self { value.clone() } @@ -27701,12 +27917,12 @@ pub enum DensityTransformAs { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&DensityTransformAs> for DensityTransformAs { +impl ::std::convert::From<&DensityTransformAs> for DensityTransformAs { fn from(value: &DensityTransformAs) -> Self { value.clone() } } -impl Default for DensityTransformAs { +impl ::std::default::Default for DensityTransformAs { fn default() -> Self { DensityTransformAs::Variant0(vec![ DensityTransformAsVariant0Item::Variant0("value".to_string()), @@ -27714,12 +27930,12 @@ impl Default for DensityTransformAs { ]) } } -impl From<::std::vec::Vec> for DensityTransformAs { +impl ::std::convert::From<::std::vec::Vec> for DensityTransformAs { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for DensityTransformAs { +impl ::std::convert::From for DensityTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -27747,12 +27963,12 @@ pub enum DensityTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&DensityTransformAsVariant0Item> for DensityTransformAsVariant0Item { +impl ::std::convert::From<&DensityTransformAsVariant0Item> for DensityTransformAsVariant0Item { fn from(value: &DensityTransformAsVariant0Item) -> Self { value.clone() } } -impl From for DensityTransformAsVariant0Item { +impl ::std::convert::From for DensityTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -27999,7 +28215,7 @@ pub enum DensityTransformDistribution { weights: ::std::option::Option, }, } -impl From<&DensityTransformDistribution> for DensityTransformDistribution { +impl ::std::convert::From<&DensityTransformDistribution> for DensityTransformDistribution { fn from(value: &DensityTransformDistribution) -> Self { value.clone() } @@ -28027,17 +28243,19 @@ pub enum DensityTransformDistributionBandwidth { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformDistributionBandwidth> for DensityTransformDistributionBandwidth { +impl ::std::convert::From<&DensityTransformDistributionBandwidth> + for DensityTransformDistributionBandwidth +{ fn from(value: &DensityTransformDistributionBandwidth) -> Self { value.clone() } } -impl From for DensityTransformDistributionBandwidth { +impl ::std::convert::From for DensityTransformDistributionBandwidth { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionBandwidth { +impl ::std::convert::From for DensityTransformDistributionBandwidth { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28066,19 +28284,21 @@ pub enum DensityTransformDistributionDistributions { Variant0(::std::vec::Vec<::serde_json::Value>), Variant1(SignalRef), } -impl From<&DensityTransformDistributionDistributions> +impl ::std::convert::From<&DensityTransformDistributionDistributions> for DensityTransformDistributionDistributions { fn from(value: &DensityTransformDistributionDistributions) -> Self { value.clone() } } -impl From<::std::vec::Vec<::serde_json::Value>> for DensityTransformDistributionDistributions { +impl ::std::convert::From<::std::vec::Vec<::serde_json::Value>> + for DensityTransformDistributionDistributions +{ fn from(value: ::std::vec::Vec<::serde_json::Value>) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionDistributions { +impl ::std::convert::From for DensityTransformDistributionDistributions { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28110,22 +28330,24 @@ pub enum DensityTransformDistributionField { ParamField(ParamField), Expr(Expr), } -impl From<&DensityTransformDistributionField> for DensityTransformDistributionField { +impl ::std::convert::From<&DensityTransformDistributionField> + for DensityTransformDistributionField +{ fn from(value: &DensityTransformDistributionField) -> Self { value.clone() } } -impl From for DensityTransformDistributionField { +impl ::std::convert::From for DensityTransformDistributionField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for DensityTransformDistributionField { +impl ::std::convert::From for DensityTransformDistributionField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for DensityTransformDistributionField { +impl ::std::convert::From for DensityTransformDistributionField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -28154,22 +28376,22 @@ pub enum DensityTransformDistributionMax { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformDistributionMax> for DensityTransformDistributionMax { +impl ::std::convert::From<&DensityTransformDistributionMax> for DensityTransformDistributionMax { fn from(value: &DensityTransformDistributionMax) -> Self { value.clone() } } -impl Default for DensityTransformDistributionMax { +impl ::std::default::Default for DensityTransformDistributionMax { fn default() -> Self { DensityTransformDistributionMax::Variant0(1_f64) } } -impl From for DensityTransformDistributionMax { +impl ::std::convert::From for DensityTransformDistributionMax { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionMax { +impl ::std::convert::From for DensityTransformDistributionMax { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28197,17 +28419,17 @@ pub enum DensityTransformDistributionMean { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformDistributionMean> for DensityTransformDistributionMean { +impl ::std::convert::From<&DensityTransformDistributionMean> for DensityTransformDistributionMean { fn from(value: &DensityTransformDistributionMean) -> Self { value.clone() } } -impl From for DensityTransformDistributionMean { +impl ::std::convert::From for DensityTransformDistributionMean { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionMean { +impl ::std::convert::From for DensityTransformDistributionMean { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28235,17 +28457,17 @@ pub enum DensityTransformDistributionMin { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformDistributionMin> for DensityTransformDistributionMin { +impl ::std::convert::From<&DensityTransformDistributionMin> for DensityTransformDistributionMin { fn from(value: &DensityTransformDistributionMin) -> Self { value.clone() } } -impl From for DensityTransformDistributionMin { +impl ::std::convert::From for DensityTransformDistributionMin { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionMin { +impl ::std::convert::From for DensityTransformDistributionMin { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28274,22 +28496,24 @@ pub enum DensityTransformDistributionStdev { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformDistributionStdev> for DensityTransformDistributionStdev { +impl ::std::convert::From<&DensityTransformDistributionStdev> + for DensityTransformDistributionStdev +{ fn from(value: &DensityTransformDistributionStdev) -> Self { value.clone() } } -impl Default for DensityTransformDistributionStdev { +impl ::std::default::Default for DensityTransformDistributionStdev { fn default() -> Self { DensityTransformDistributionStdev::Variant0(1_f64) } } -impl From for DensityTransformDistributionStdev { +impl ::std::convert::From for DensityTransformDistributionStdev { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionStdev { +impl ::std::convert::From for DensityTransformDistributionStdev { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28327,19 +28551,21 @@ pub enum DensityTransformDistributionWeights { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&DensityTransformDistributionWeights> for DensityTransformDistributionWeights { +impl ::std::convert::From<&DensityTransformDistributionWeights> + for DensityTransformDistributionWeights +{ fn from(value: &DensityTransformDistributionWeights) -> Self { value.clone() } } -impl From<::std::vec::Vec> +impl ::std::convert::From<::std::vec::Vec> for DensityTransformDistributionWeights { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionWeights { +impl ::std::convert::From for DensityTransformDistributionWeights { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28367,19 +28593,19 @@ pub enum DensityTransformDistributionWeightsVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformDistributionWeightsVariant0Item> +impl ::std::convert::From<&DensityTransformDistributionWeightsVariant0Item> for DensityTransformDistributionWeightsVariant0Item { fn from(value: &DensityTransformDistributionWeightsVariant0Item) -> Self { value.clone() } } -impl From for DensityTransformDistributionWeightsVariant0Item { +impl ::std::convert::From for DensityTransformDistributionWeightsVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformDistributionWeightsVariant0Item { +impl ::std::convert::From for DensityTransformDistributionWeightsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28419,17 +28645,17 @@ pub enum DensityTransformExtent { Variant0([DensityTransformExtentVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&DensityTransformExtent> for DensityTransformExtent { +impl ::std::convert::From<&DensityTransformExtent> for DensityTransformExtent { fn from(value: &DensityTransformExtent) -> Self { value.clone() } } -impl From<[DensityTransformExtentVariant0Item; 2usize]> for DensityTransformExtent { +impl ::std::convert::From<[DensityTransformExtentVariant0Item; 2usize]> for DensityTransformExtent { fn from(value: [DensityTransformExtentVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for DensityTransformExtent { +impl ::std::convert::From for DensityTransformExtent { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28457,17 +28683,19 @@ pub enum DensityTransformExtentVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformExtentVariant0Item> for DensityTransformExtentVariant0Item { +impl ::std::convert::From<&DensityTransformExtentVariant0Item> + for DensityTransformExtentVariant0Item +{ fn from(value: &DensityTransformExtentVariant0Item) -> Self { value.clone() } } -impl From for DensityTransformExtentVariant0Item { +impl ::std::convert::From for DensityTransformExtentVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformExtentVariant0Item { +impl ::std::convert::From for DensityTransformExtentVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28496,22 +28724,22 @@ pub enum DensityTransformMaxsteps { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformMaxsteps> for DensityTransformMaxsteps { +impl ::std::convert::From<&DensityTransformMaxsteps> for DensityTransformMaxsteps { fn from(value: &DensityTransformMaxsteps) -> Self { value.clone() } } -impl Default for DensityTransformMaxsteps { +impl ::std::default::Default for DensityTransformMaxsteps { fn default() -> Self { DensityTransformMaxsteps::Variant0(200_f64) } } -impl From for DensityTransformMaxsteps { +impl ::std::convert::From for DensityTransformMaxsteps { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformMaxsteps { +impl ::std::convert::From for DensityTransformMaxsteps { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28540,17 +28768,17 @@ pub enum DensityTransformMethod { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&DensityTransformMethod> for DensityTransformMethod { +impl ::std::convert::From<&DensityTransformMethod> for DensityTransformMethod { fn from(value: &DensityTransformMethod) -> Self { value.clone() } } -impl Default for DensityTransformMethod { +impl ::std::default::Default for DensityTransformMethod { fn default() -> Self { DensityTransformMethod::Variant0("pdf".to_string()) } } -impl From for DensityTransformMethod { +impl ::std::convert::From for DensityTransformMethod { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28579,22 +28807,22 @@ pub enum DensityTransformMinsteps { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformMinsteps> for DensityTransformMinsteps { +impl ::std::convert::From<&DensityTransformMinsteps> for DensityTransformMinsteps { fn from(value: &DensityTransformMinsteps) -> Self { value.clone() } } -impl Default for DensityTransformMinsteps { +impl ::std::default::Default for DensityTransformMinsteps { fn default() -> Self { DensityTransformMinsteps::Variant0(25_f64) } } -impl From for DensityTransformMinsteps { +impl ::std::convert::From for DensityTransformMinsteps { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformMinsteps { +impl ::std::convert::From for DensityTransformMinsteps { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28622,17 +28850,17 @@ pub enum DensityTransformSteps { Variant0(f64), Variant1(SignalRef), } -impl From<&DensityTransformSteps> for DensityTransformSteps { +impl ::std::convert::From<&DensityTransformSteps> for DensityTransformSteps { fn from(value: &DensityTransformSteps) -> Self { value.clone() } } -impl From for DensityTransformSteps { +impl ::std::convert::From for DensityTransformSteps { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DensityTransformSteps { +impl ::std::convert::From for DensityTransformSteps { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -28665,7 +28893,7 @@ pub enum DensityTransformType { #[serde(rename = "density")] Density, } -impl From<&DensityTransformType> for DensityTransformType { +impl ::std::convert::From<&DensityTransformType> for DensityTransformType { fn from(value: &DensityTransformType) -> Self { value.clone() } @@ -28677,7 +28905,7 @@ impl ::std::fmt::Display for DensityTransformType { } } } -impl std::str::FromStr for DensityTransformType { +impl ::std::str::FromStr for DensityTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -28686,13 +28914,13 @@ impl std::str::FromStr for DensityTransformType { } } } -impl std::convert::TryFrom<&str> for DensityTransformType { +impl ::std::convert::TryFrom<&str> for DensityTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DensityTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for DensityTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -28700,7 +28928,7 @@ impl std::convert::TryFrom<&::std::string::String> for DensityTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DensityTransformType { +impl ::std::convert::TryFrom<::std::string::String> for DensityTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -28897,17 +29125,17 @@ pub enum DirectionValue { Variant0(::std::vec::Vec), Variant1(DirectionValueVariant1), } -impl From<&DirectionValue> for DirectionValue { +impl ::std::convert::From<&DirectionValue> for DirectionValue { fn from(value: &DirectionValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for DirectionValue { +impl ::std::convert::From<::std::vec::Vec> for DirectionValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for DirectionValue { +impl ::std::convert::From for DirectionValue { fn from(value: DirectionValueVariant1) -> Self { Self::Variant1(value) } @@ -29019,22 +29247,22 @@ pub enum DirectionValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&DirectionValueVariant0Item> for DirectionValueVariant0Item { +impl ::std::convert::From<&DirectionValueVariant0Item> for DirectionValueVariant0Item { fn from(value: &DirectionValueVariant0Item) -> Self { value.clone() } } -impl From for DirectionValueVariant0Item { +impl ::std::convert::From for DirectionValueVariant0Item { fn from(value: DirectionValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for DirectionValueVariant0Item { +impl ::std::convert::From for DirectionValueVariant0Item { fn from(value: DirectionValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for DirectionValueVariant0Item { +impl ::std::convert::From for DirectionValueVariant0Item { fn from(value: DirectionValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -29169,7 +29397,9 @@ pub enum DirectionValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&DirectionValueVariant0ItemVariant0> for DirectionValueVariant0ItemVariant0 { +impl ::std::convert::From<&DirectionValueVariant0ItemVariant0> + for DirectionValueVariant0ItemVariant0 +{ fn from(value: &DirectionValueVariant0ItemVariant0) -> Self { value.clone() } @@ -29205,7 +29435,7 @@ pub enum DirectionValueVariant0ItemVariant0Variant1Value { #[serde(rename = "vertical")] Vertical, } -impl From<&DirectionValueVariant0ItemVariant0Variant1Value> +impl ::std::convert::From<&DirectionValueVariant0ItemVariant0Variant1Value> for DirectionValueVariant0ItemVariant0Variant1Value { fn from(value: &DirectionValueVariant0ItemVariant0Variant1Value) -> Self { @@ -29220,7 +29450,7 @@ impl ::std::fmt::Display for DirectionValueVariant0ItemVariant0Variant1Value { } } } -impl std::str::FromStr for DirectionValueVariant0ItemVariant0Variant1Value { +impl ::std::str::FromStr for DirectionValueVariant0ItemVariant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -29230,13 +29460,13 @@ impl std::str::FromStr for DirectionValueVariant0ItemVariant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for DirectionValueVariant0ItemVariant0Variant1Value { +impl ::std::convert::TryFrom<&str> for DirectionValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DirectionValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; @@ -29246,7 +29476,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DirectionValueVariant0ItemVariant0Variant1Value { type Error = self::error::ConversionError; @@ -29279,14 +29509,14 @@ pub enum DirectionValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&DirectionValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&DirectionValueVariant0ItemVariant0Variant3Range> for DirectionValueVariant0ItemVariant0Variant3Range { fn from(value: &DirectionValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for DirectionValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for DirectionValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -29298,13 +29528,13 @@ impl std::str::FromStr for DirectionValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for DirectionValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for DirectionValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for DirectionValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -29314,7 +29544,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for DirectionValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -29332,12 +29562,12 @@ impl ::std::fmt::Display for DirectionValueVariant0ItemVariant0Variant3Range { } } } -impl From for DirectionValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for DirectionValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DirectionValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for DirectionValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -29454,7 +29684,9 @@ impl From for DirectionValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum DirectionValueVariant0ItemVariant1 {} -impl From<&DirectionValueVariant0ItemVariant1> for DirectionValueVariant0ItemVariant1 { +impl ::std::convert::From<&DirectionValueVariant0ItemVariant1> + for DirectionValueVariant0ItemVariant1 +{ fn from(value: &DirectionValueVariant0ItemVariant1) -> Self { value.clone() } @@ -29571,7 +29803,9 @@ impl From<&DirectionValueVariant0ItemVariant1> for DirectionValueVariant0ItemVar )] #[serde(deny_unknown_fields)] pub enum DirectionValueVariant0ItemVariant2 {} -impl From<&DirectionValueVariant0ItemVariant2> for DirectionValueVariant0ItemVariant2 { +impl ::std::convert::From<&DirectionValueVariant0ItemVariant2> + for DirectionValueVariant0ItemVariant2 +{ fn from(value: &DirectionValueVariant0ItemVariant2) -> Self { value.clone() } @@ -29672,22 +29906,22 @@ pub enum DirectionValueVariant1 { Variant2(DirectionValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&DirectionValueVariant1> for DirectionValueVariant1 { +impl ::std::convert::From<&DirectionValueVariant1> for DirectionValueVariant1 { fn from(value: &DirectionValueVariant1) -> Self { value.clone() } } -impl From for DirectionValueVariant1 { +impl ::std::convert::From for DirectionValueVariant1 { fn from(value: DirectionValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for DirectionValueVariant1 { +impl ::std::convert::From for DirectionValueVariant1 { fn from(value: DirectionValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for DirectionValueVariant1 { +impl ::std::convert::From for DirectionValueVariant1 { fn from(value: DirectionValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -29811,7 +30045,7 @@ pub enum DirectionValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&DirectionValueVariant1Variant0> for DirectionValueVariant1Variant0 { +impl ::std::convert::From<&DirectionValueVariant1Variant0> for DirectionValueVariant1Variant0 { fn from(value: &DirectionValueVariant1Variant0) -> Self { value.clone() } @@ -29847,7 +30081,7 @@ pub enum DirectionValueVariant1Variant0Variant1Value { #[serde(rename = "vertical")] Vertical, } -impl From<&DirectionValueVariant1Variant0Variant1Value> +impl ::std::convert::From<&DirectionValueVariant1Variant0Variant1Value> for DirectionValueVariant1Variant0Variant1Value { fn from(value: &DirectionValueVariant1Variant0Variant1Value) -> Self { @@ -29862,7 +30096,7 @@ impl ::std::fmt::Display for DirectionValueVariant1Variant0Variant1Value { } } } -impl std::str::FromStr for DirectionValueVariant1Variant0Variant1Value { +impl ::std::str::FromStr for DirectionValueVariant1Variant0Variant1Value { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -29872,13 +30106,15 @@ impl std::str::FromStr for DirectionValueVariant1Variant0Variant1Value { } } } -impl std::convert::TryFrom<&str> for DirectionValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&str> for DirectionValueVariant1Variant0Variant1Value { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DirectionValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<&::std::string::String> + for DirectionValueVariant1Variant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -29886,7 +30122,9 @@ impl std::convert::TryFrom<&::std::string::String> for DirectionValueVariant1Var value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DirectionValueVariant1Variant0Variant1Value { +impl ::std::convert::TryFrom<::std::string::String> + for DirectionValueVariant1Variant0Variant1Value +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -29917,14 +30155,14 @@ pub enum DirectionValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&DirectionValueVariant1Variant0Variant3Range> +impl ::std::convert::From<&DirectionValueVariant1Variant0Variant3Range> for DirectionValueVariant1Variant0Variant3Range { fn from(value: &DirectionValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for DirectionValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for DirectionValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -29936,13 +30174,15 @@ impl std::str::FromStr for DirectionValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for DirectionValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for DirectionValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DirectionValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&::std::string::String> + for DirectionValueVariant1Variant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -29950,7 +30190,9 @@ impl std::convert::TryFrom<&::std::string::String> for DirectionValueVariant1Var value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DirectionValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for DirectionValueVariant1Variant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -29966,12 +30208,12 @@ impl ::std::fmt::Display for DirectionValueVariant1Variant0Variant3Range { } } } -impl From for DirectionValueVariant1Variant0Variant3Range { +impl ::std::convert::From for DirectionValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DirectionValueVariant1Variant0Variant3Range { +impl ::std::convert::From for DirectionValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -30085,7 +30327,7 @@ impl From for DirectionValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum DirectionValueVariant1Variant1 {} -impl From<&DirectionValueVariant1Variant1> for DirectionValueVariant1Variant1 { +impl ::std::convert::From<&DirectionValueVariant1Variant1> for DirectionValueVariant1Variant1 { fn from(value: &DirectionValueVariant1Variant1) -> Self { value.clone() } @@ -30199,7 +30441,7 @@ impl From<&DirectionValueVariant1Variant1> for DirectionValueVariant1Variant1 { )] #[serde(deny_unknown_fields)] pub enum DirectionValueVariant1Variant2 {} -impl From<&DirectionValueVariant1Variant2> for DirectionValueVariant1Variant2 { +impl ::std::convert::From<&DirectionValueVariant1Variant2> for DirectionValueVariant1Variant2 { fn from(value: &DirectionValueVariant1Variant2) -> Self { value.clone() } @@ -30313,7 +30555,7 @@ pub struct DotbinTransform { #[serde(rename = "type")] pub type_: DotbinTransformType, } -impl From<&DotbinTransform> for DotbinTransform { +impl ::std::convert::From<&DotbinTransform> for DotbinTransform { fn from(value: &DotbinTransform) -> Self { value.clone() } @@ -30342,17 +30584,17 @@ pub enum DotbinTransformAs { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&DotbinTransformAs> for DotbinTransformAs { +impl ::std::convert::From<&DotbinTransformAs> for DotbinTransformAs { fn from(value: &DotbinTransformAs) -> Self { value.clone() } } -impl Default for DotbinTransformAs { +impl ::std::default::Default for DotbinTransformAs { fn default() -> Self { DotbinTransformAs::Variant0("bin".to_string()) } } -impl From for DotbinTransformAs { +impl ::std::convert::From for DotbinTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -30384,22 +30626,22 @@ pub enum DotbinTransformField { ParamField(ParamField), Expr(Expr), } -impl From<&DotbinTransformField> for DotbinTransformField { +impl ::std::convert::From<&DotbinTransformField> for DotbinTransformField { fn from(value: &DotbinTransformField) -> Self { value.clone() } } -impl From for DotbinTransformField { +impl ::std::convert::From for DotbinTransformField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for DotbinTransformField { +impl ::std::convert::From for DotbinTransformField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for DotbinTransformField { +impl ::std::convert::From for DotbinTransformField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -30440,17 +30682,19 @@ pub enum DotbinTransformGroupby { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&DotbinTransformGroupby> for DotbinTransformGroupby { +impl ::std::convert::From<&DotbinTransformGroupby> for DotbinTransformGroupby { fn from(value: &DotbinTransformGroupby) -> Self { value.clone() } } -impl From<::std::vec::Vec> for DotbinTransformGroupby { +impl ::std::convert::From<::std::vec::Vec> + for DotbinTransformGroupby +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for DotbinTransformGroupby { +impl ::std::convert::From for DotbinTransformGroupby { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -30482,22 +30726,24 @@ pub enum DotbinTransformGroupbyVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&DotbinTransformGroupbyVariant0Item> for DotbinTransformGroupbyVariant0Item { +impl ::std::convert::From<&DotbinTransformGroupbyVariant0Item> + for DotbinTransformGroupbyVariant0Item +{ fn from(value: &DotbinTransformGroupbyVariant0Item) -> Self { value.clone() } } -impl From for DotbinTransformGroupbyVariant0Item { +impl ::std::convert::From for DotbinTransformGroupbyVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for DotbinTransformGroupbyVariant0Item { +impl ::std::convert::From for DotbinTransformGroupbyVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for DotbinTransformGroupbyVariant0Item { +impl ::std::convert::From for DotbinTransformGroupbyVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -30525,17 +30771,17 @@ pub enum DotbinTransformSmooth { Variant0(bool), Variant1(SignalRef), } -impl From<&DotbinTransformSmooth> for DotbinTransformSmooth { +impl ::std::convert::From<&DotbinTransformSmooth> for DotbinTransformSmooth { fn from(value: &DotbinTransformSmooth) -> Self { value.clone() } } -impl From for DotbinTransformSmooth { +impl ::std::convert::From for DotbinTransformSmooth { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for DotbinTransformSmooth { +impl ::std::convert::From for DotbinTransformSmooth { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -30563,17 +30809,17 @@ pub enum DotbinTransformStep { Variant0(f64), Variant1(SignalRef), } -impl From<&DotbinTransformStep> for DotbinTransformStep { +impl ::std::convert::From<&DotbinTransformStep> for DotbinTransformStep { fn from(value: &DotbinTransformStep) -> Self { value.clone() } } -impl From for DotbinTransformStep { +impl ::std::convert::From for DotbinTransformStep { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for DotbinTransformStep { +impl ::std::convert::From for DotbinTransformStep { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -30606,7 +30852,7 @@ pub enum DotbinTransformType { #[serde(rename = "dotbin")] Dotbin, } -impl From<&DotbinTransformType> for DotbinTransformType { +impl ::std::convert::From<&DotbinTransformType> for DotbinTransformType { fn from(value: &DotbinTransformType) -> Self { value.clone() } @@ -30618,7 +30864,7 @@ impl ::std::fmt::Display for DotbinTransformType { } } } -impl std::str::FromStr for DotbinTransformType { +impl ::std::str::FromStr for DotbinTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -30627,13 +30873,13 @@ impl std::str::FromStr for DotbinTransformType { } } } -impl std::convert::TryFrom<&str> for DotbinTransformType { +impl ::std::convert::TryFrom<&str> for DotbinTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for DotbinTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for DotbinTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -30641,7 +30887,7 @@ impl std::convert::TryFrom<&::std::string::String> for DotbinTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for DotbinTransformType { +impl ::std::convert::TryFrom<::std::string::String> for DotbinTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -30677,17 +30923,17 @@ impl ::std::ops::Deref for Element { &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From for ::std::string::String { fn from(value: Element) -> Self { value.0 } } -impl From<&Element> for Element { +impl ::std::convert::From<&Element> for Element { fn from(value: &Element) -> Self { value.clone() } } -impl From<::std::string::String> for Element { +impl ::std::convert::From<::std::string::String> for Element { fn from(value: ::std::string::String) -> Self { Self(value) } @@ -30727,17 +30973,17 @@ impl ::std::ops::Deref for Encode { &self.0 } } -impl From for ::std::collections::HashMap { +impl ::std::convert::From for ::std::collections::HashMap { fn from(value: Encode) -> Self { value.0 } } -impl From<&Encode> for Encode { +impl ::std::convert::From<&Encode> for Encode { fn from(value: &Encode) -> Self { value.clone() } } -impl From<::std::collections::HashMap> for Encode { +impl ::std::convert::From<::std::collections::HashMap> for Encode { fn from(value: ::std::collections::HashMap) -> Self { Self(value) } @@ -31219,11 +31465,86 @@ pub struct EncodeEntry { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub zindex: ::std::option::Option, } -impl From<&EncodeEntry> for EncodeEntry { +impl ::std::convert::From<&EncodeEntry> for EncodeEntry { fn from(value: &EncodeEntry) -> Self { value.clone() } } +impl ::std::default::Default for EncodeEntry { + fn default() -> Self { + Self { + align: Default::default(), + angle: Default::default(), + aria: Default::default(), + aria_role: Default::default(), + aria_role_description: Default::default(), + aspect: Default::default(), + baseline: Default::default(), + blend: Default::default(), + clip: Default::default(), + corner_radius: Default::default(), + corner_radius_bottom_left: Default::default(), + corner_radius_bottom_right: Default::default(), + corner_radius_top_left: Default::default(), + corner_radius_top_right: Default::default(), + cursor: Default::default(), + defined: Default::default(), + description: Default::default(), + dir: Default::default(), + dx: Default::default(), + dy: Default::default(), + ellipsis: Default::default(), + end_angle: Default::default(), + fill: Default::default(), + fill_opacity: Default::default(), + font: Default::default(), + font_size: Default::default(), + font_style: Default::default(), + font_weight: Default::default(), + height: Default::default(), + inner_radius: Default::default(), + interpolate: Default::default(), + limit: Default::default(), + line_break: Default::default(), + line_height: Default::default(), + opacity: Default::default(), + orient: Default::default(), + outer_radius: Default::default(), + pad_angle: Default::default(), + path: Default::default(), + radius: Default::default(), + scale_x: Default::default(), + scale_y: Default::default(), + shape: Default::default(), + size: Default::default(), + smooth: Default::default(), + start_angle: Default::default(), + stroke: Default::default(), + stroke_cap: Default::default(), + stroke_dash: Default::default(), + stroke_dash_offset: Default::default(), + stroke_foreground: Default::default(), + stroke_join: Default::default(), + stroke_miter_limit: Default::default(), + stroke_offset: Default::default(), + stroke_opacity: Default::default(), + stroke_width: Default::default(), + tension: Default::default(), + text: Default::default(), + theta: Default::default(), + tooltip: Default::default(), + url: Default::default(), + width: Default::default(), + x: Default::default(), + x2: Default::default(), + xc: Default::default(), + y: Default::default(), + y2: Default::default(), + yc: Default::default(), + zindex: Default::default(), + } + } +} #[doc = "EncodeKey"] #[doc = r""] #[doc = r"
JSON schema"] @@ -31243,12 +31564,12 @@ impl ::std::ops::Deref for EncodeKey { &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From for ::std::string::String { fn from(value: EncodeKey) -> Self { value.0 } } -impl From<&EncodeKey> for EncodeKey { +impl ::std::convert::From<&EncodeKey> for EncodeKey { fn from(value: &EncodeKey) -> Self { value.clone() } @@ -31391,11 +31712,37 @@ pub struct Everything { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub width: ::std::option::Option, } -impl From<&Everything> for Everything { +impl ::std::convert::From<&Everything> for Everything { fn from(value: &Everything) -> Self { value.clone() } } +impl ::std::default::Default for Everything { + fn default() -> Self { + Self { + autosize: Default::default(), + axes: Default::default(), + background: Default::default(), + config: Default::default(), + data: Default::default(), + description: Default::default(), + encode: Default::default(), + height: Default::default(), + layout: Default::default(), + legends: Default::default(), + marks: Default::default(), + padding: Default::default(), + projections: Default::default(), + scales: Default::default(), + schema: Default::default(), + signals: Default::default(), + style: Default::default(), + title: Default::default(), + usermeta: Default::default(), + width: Default::default(), + } + } +} #[doc = "EverythingMarksItem"] #[doc = r""] #[doc = r"
JSON schema"] @@ -31419,17 +31766,17 @@ pub enum EverythingMarksItem { Group(MarkGroup), Visual(MarkVisual), } -impl From<&EverythingMarksItem> for EverythingMarksItem { +impl ::std::convert::From<&EverythingMarksItem> for EverythingMarksItem { fn from(value: &EverythingMarksItem) -> Self { value.clone() } } -impl From for EverythingMarksItem { +impl ::std::convert::From for EverythingMarksItem { fn from(value: MarkGroup) -> Self { Self::Group(value) } } -impl From for EverythingMarksItem { +impl ::std::convert::From for EverythingMarksItem { fn from(value: MarkVisual) -> Self { Self::Visual(value) } @@ -31465,7 +31812,7 @@ pub struct Expr { pub as_: ::std::option::Option<::std::string::String>, pub expr: ::std::string::String, } -impl From<&Expr> for Expr { +impl ::std::convert::From<&Expr> for Expr { fn from(value: &Expr) -> Self { value.clone() } @@ -31498,17 +31845,17 @@ impl ::std::ops::Deref for ExprString { &self.0 } } -impl From for ::std::string::String { +impl ::std::convert::From for ::std::string::String { fn from(value: ExprString) -> Self { value.0 } } -impl From<&ExprString> for ExprString { +impl ::std::convert::From<&ExprString> for ExprString { fn from(value: &ExprString) -> Self { value.clone() } } -impl From<::std::string::String> for ExprString { +impl ::std::convert::From<::std::string::String> for ExprString { fn from(value: ::std::string::String) -> Self { Self(value) } @@ -31571,7 +31918,7 @@ pub struct ExtentTransform { #[serde(rename = "type")] pub type_: ExtentTransformType, } -impl From<&ExtentTransform> for ExtentTransform { +impl ::std::convert::From<&ExtentTransform> for ExtentTransform { fn from(value: &ExtentTransform) -> Self { value.clone() } @@ -31603,22 +31950,22 @@ pub enum ExtentTransformField { ParamField(ParamField), Expr(Expr), } -impl From<&ExtentTransformField> for ExtentTransformField { +impl ::std::convert::From<&ExtentTransformField> for ExtentTransformField { fn from(value: &ExtentTransformField) -> Self { value.clone() } } -impl From for ExtentTransformField { +impl ::std::convert::From for ExtentTransformField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for ExtentTransformField { +impl ::std::convert::From for ExtentTransformField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for ExtentTransformField { +impl ::std::convert::From for ExtentTransformField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -31651,7 +31998,7 @@ pub enum ExtentTransformType { #[serde(rename = "extent")] Extent, } -impl From<&ExtentTransformType> for ExtentTransformType { +impl ::std::convert::From<&ExtentTransformType> for ExtentTransformType { fn from(value: &ExtentTransformType) -> Self { value.clone() } @@ -31663,7 +32010,7 @@ impl ::std::fmt::Display for ExtentTransformType { } } } -impl std::str::FromStr for ExtentTransformType { +impl ::std::str::FromStr for ExtentTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -31672,13 +32019,13 @@ impl std::str::FromStr for ExtentTransformType { } } } -impl std::convert::TryFrom<&str> for ExtentTransformType { +impl ::std::convert::TryFrom<&str> for ExtentTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ExtentTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for ExtentTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -31686,7 +32033,7 @@ impl std::convert::TryFrom<&::std::string::String> for ExtentTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ExtentTransformType { +impl ::std::convert::TryFrom<::std::string::String> for ExtentTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -31801,7 +32148,7 @@ pub struct Facet { pub data: ::std::option::Option<::std::string::String>, pub facet: FacetFacet, } -impl From<&Facet> for Facet { +impl ::std::convert::From<&Facet> for Facet { fn from(value: &Facet) -> Self { value.clone() } @@ -31910,7 +32257,7 @@ pub enum FacetFacet { name: ::std::string::String, }, } -impl From<&FacetFacet> for FacetFacet { +impl ::std::convert::From<&FacetFacet> for FacetFacet { fn from(value: &FacetFacet) -> Self { value.clone() } @@ -31965,11 +32312,21 @@ pub struct FacetFacetVariant1Aggregate { #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub ops: ::std::vec::Vec<::std::string::String>, } -impl From<&FacetFacetVariant1Aggregate> for FacetFacetVariant1Aggregate { +impl ::std::convert::From<&FacetFacetVariant1Aggregate> for FacetFacetVariant1Aggregate { fn from(value: &FacetFacetVariant1Aggregate) -> Self { value.clone() } } +impl ::std::default::Default for FacetFacetVariant1Aggregate { + fn default() -> Self { + Self { + as_: Default::default(), + cross: Default::default(), + fields: Default::default(), + ops: Default::default(), + } + } +} #[doc = "FacetFacetVariant1Groupby"] #[doc = r""] #[doc = r"
JSON schema"] @@ -31996,12 +32353,12 @@ pub enum FacetFacetVariant1Groupby { Variant0(::std::string::String), Variant1(::std::vec::Vec<::std::string::String>), } -impl From<&FacetFacetVariant1Groupby> for FacetFacetVariant1Groupby { +impl ::std::convert::From<&FacetFacetVariant1Groupby> for FacetFacetVariant1Groupby { fn from(value: &FacetFacetVariant1Groupby) -> Self { value.clone() } } -impl From<::std::vec::Vec<::std::string::String>> for FacetFacetVariant1Groupby { +impl ::std::convert::From<::std::vec::Vec<::std::string::String>> for FacetFacetVariant1Groupby { fn from(value: ::std::vec::Vec<::std::string::String>) -> Self { Self::Variant1(value) } @@ -32084,12 +32441,12 @@ pub enum Field { parent: ::std::boxed::Box, }, } -impl From<&Field> for Field { +impl ::std::convert::From<&Field> for Field { fn from(value: &Field) -> Self { value.clone() } } -impl From for Field { +impl ::std::convert::From for Field { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32131,7 +32488,7 @@ pub struct FilterTransform { #[serde(rename = "type")] pub type_: FilterTransformType, } -impl From<&FilterTransform> for FilterTransform { +impl ::std::convert::From<&FilterTransform> for FilterTransform { fn from(value: &FilterTransform) -> Self { value.clone() } @@ -32164,7 +32521,7 @@ pub enum FilterTransformType { #[serde(rename = "filter")] Filter, } -impl From<&FilterTransformType> for FilterTransformType { +impl ::std::convert::From<&FilterTransformType> for FilterTransformType { fn from(value: &FilterTransformType) -> Self { value.clone() } @@ -32176,7 +32533,7 @@ impl ::std::fmt::Display for FilterTransformType { } } } -impl std::str::FromStr for FilterTransformType { +impl ::std::str::FromStr for FilterTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32185,13 +32542,13 @@ impl std::str::FromStr for FilterTransformType { } } } -impl std::convert::TryFrom<&str> for FilterTransformType { +impl ::std::convert::TryFrom<&str> for FilterTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for FilterTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for FilterTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32199,7 +32556,7 @@ impl std::convert::TryFrom<&::std::string::String> for FilterTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for FilterTransformType { +impl ::std::convert::TryFrom<::std::string::String> for FilterTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32302,7 +32659,7 @@ pub struct FlattenTransform { #[serde(rename = "type")] pub type_: FlattenTransformType, } -impl From<&FlattenTransform> for FlattenTransform { +impl ::std::convert::From<&FlattenTransform> for FlattenTransform { fn from(value: &FlattenTransform) -> Self { value.clone() } @@ -32340,17 +32697,17 @@ pub enum FlattenTransformAs { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&FlattenTransformAs> for FlattenTransformAs { +impl ::std::convert::From<&FlattenTransformAs> for FlattenTransformAs { fn from(value: &FlattenTransformAs) -> Self { value.clone() } } -impl From<::std::vec::Vec> for FlattenTransformAs { +impl ::std::convert::From<::std::vec::Vec> for FlattenTransformAs { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for FlattenTransformAs { +impl ::std::convert::From for FlattenTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32378,12 +32735,12 @@ pub enum FlattenTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&FlattenTransformAsVariant0Item> for FlattenTransformAsVariant0Item { +impl ::std::convert::From<&FlattenTransformAsVariant0Item> for FlattenTransformAsVariant0Item { fn from(value: &FlattenTransformAsVariant0Item) -> Self { value.clone() } } -impl From for FlattenTransformAsVariant0Item { +impl ::std::convert::From for FlattenTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32424,17 +32781,19 @@ pub enum FlattenTransformFields { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&FlattenTransformFields> for FlattenTransformFields { +impl ::std::convert::From<&FlattenTransformFields> for FlattenTransformFields { fn from(value: &FlattenTransformFields) -> Self { value.clone() } } -impl From<::std::vec::Vec> for FlattenTransformFields { +impl ::std::convert::From<::std::vec::Vec> + for FlattenTransformFields +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for FlattenTransformFields { +impl ::std::convert::From for FlattenTransformFields { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32466,22 +32825,24 @@ pub enum FlattenTransformFieldsVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&FlattenTransformFieldsVariant0Item> for FlattenTransformFieldsVariant0Item { +impl ::std::convert::From<&FlattenTransformFieldsVariant0Item> + for FlattenTransformFieldsVariant0Item +{ fn from(value: &FlattenTransformFieldsVariant0Item) -> Self { value.clone() } } -impl From for FlattenTransformFieldsVariant0Item { +impl ::std::convert::From for FlattenTransformFieldsVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for FlattenTransformFieldsVariant0Item { +impl ::std::convert::From for FlattenTransformFieldsVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for FlattenTransformFieldsVariant0Item { +impl ::std::convert::From for FlattenTransformFieldsVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -32509,12 +32870,12 @@ pub enum FlattenTransformIndex { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&FlattenTransformIndex> for FlattenTransformIndex { +impl ::std::convert::From<&FlattenTransformIndex> for FlattenTransformIndex { fn from(value: &FlattenTransformIndex) -> Self { value.clone() } } -impl From for FlattenTransformIndex { +impl ::std::convert::From for FlattenTransformIndex { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32547,7 +32908,7 @@ pub enum FlattenTransformType { #[serde(rename = "flatten")] Flatten, } -impl From<&FlattenTransformType> for FlattenTransformType { +impl ::std::convert::From<&FlattenTransformType> for FlattenTransformType { fn from(value: &FlattenTransformType) -> Self { value.clone() } @@ -32559,7 +32920,7 @@ impl ::std::fmt::Display for FlattenTransformType { } } } -impl std::str::FromStr for FlattenTransformType { +impl ::std::str::FromStr for FlattenTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32568,13 +32929,13 @@ impl std::str::FromStr for FlattenTransformType { } } } -impl std::convert::TryFrom<&str> for FlattenTransformType { +impl ::std::convert::TryFrom<&str> for FlattenTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for FlattenTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for FlattenTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32582,7 +32943,7 @@ impl std::convert::TryFrom<&::std::string::String> for FlattenTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for FlattenTransformType { +impl ::std::convert::TryFrom<::std::string::String> for FlattenTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -32675,7 +33036,7 @@ pub struct FoldTransform { #[serde(rename = "type")] pub type_: FoldTransformType, } -impl From<&FoldTransform> for FoldTransform { +impl ::std::convert::From<&FoldTransform> for FoldTransform { fn from(value: &FoldTransform) -> Self { value.clone() } @@ -32719,12 +33080,12 @@ pub enum FoldTransformAs { Variant0([FoldTransformAsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&FoldTransformAs> for FoldTransformAs { +impl ::std::convert::From<&FoldTransformAs> for FoldTransformAs { fn from(value: &FoldTransformAs) -> Self { value.clone() } } -impl Default for FoldTransformAs { +impl ::std::default::Default for FoldTransformAs { fn default() -> Self { FoldTransformAs::Variant0([ FoldTransformAsVariant0Item::Variant0("key".to_string()), @@ -32732,12 +33093,12 @@ impl Default for FoldTransformAs { ]) } } -impl From<[FoldTransformAsVariant0Item; 2usize]> for FoldTransformAs { +impl ::std::convert::From<[FoldTransformAsVariant0Item; 2usize]> for FoldTransformAs { fn from(value: [FoldTransformAsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for FoldTransformAs { +impl ::std::convert::From for FoldTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32765,12 +33126,12 @@ pub enum FoldTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&FoldTransformAsVariant0Item> for FoldTransformAsVariant0Item { +impl ::std::convert::From<&FoldTransformAsVariant0Item> for FoldTransformAsVariant0Item { fn from(value: &FoldTransformAsVariant0Item) -> Self { value.clone() } } -impl From for FoldTransformAsVariant0Item { +impl ::std::convert::From for FoldTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32811,17 +33172,19 @@ pub enum FoldTransformFields { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&FoldTransformFields> for FoldTransformFields { +impl ::std::convert::From<&FoldTransformFields> for FoldTransformFields { fn from(value: &FoldTransformFields) -> Self { value.clone() } } -impl From<::std::vec::Vec> for FoldTransformFields { +impl ::std::convert::From<::std::vec::Vec> + for FoldTransformFields +{ fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for FoldTransformFields { +impl ::std::convert::From for FoldTransformFields { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -32853,22 +33216,22 @@ pub enum FoldTransformFieldsVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&FoldTransformFieldsVariant0Item> for FoldTransformFieldsVariant0Item { +impl ::std::convert::From<&FoldTransformFieldsVariant0Item> for FoldTransformFieldsVariant0Item { fn from(value: &FoldTransformFieldsVariant0Item) -> Self { value.clone() } } -impl From for FoldTransformFieldsVariant0Item { +impl ::std::convert::From for FoldTransformFieldsVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for FoldTransformFieldsVariant0Item { +impl ::std::convert::From for FoldTransformFieldsVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for FoldTransformFieldsVariant0Item { +impl ::std::convert::From for FoldTransformFieldsVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -32901,7 +33264,7 @@ pub enum FoldTransformType { #[serde(rename = "fold")] Fold, } -impl From<&FoldTransformType> for FoldTransformType { +impl ::std::convert::From<&FoldTransformType> for FoldTransformType { fn from(value: &FoldTransformType) -> Self { value.clone() } @@ -32913,7 +33276,7 @@ impl ::std::fmt::Display for FoldTransformType { } } } -impl std::str::FromStr for FoldTransformType { +impl ::std::str::FromStr for FoldTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -32922,13 +33285,13 @@ impl std::str::FromStr for FoldTransformType { } } } -impl std::convert::TryFrom<&str> for FoldTransformType { +impl ::std::convert::TryFrom<&str> for FoldTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for FoldTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for FoldTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -32936,7 +33299,7 @@ impl std::convert::TryFrom<&::std::string::String> for FoldTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for FoldTransformType { +impl ::std::convert::TryFrom<::std::string::String> for FoldTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -33175,17 +33538,17 @@ pub enum FontWeightValue { Variant0(::std::vec::Vec), Variant1(FontWeightValueVariant1), } -impl From<&FontWeightValue> for FontWeightValue { +impl ::std::convert::From<&FontWeightValue> for FontWeightValue { fn from(value: &FontWeightValue) -> Self { value.clone() } } -impl From<::std::vec::Vec> for FontWeightValue { +impl ::std::convert::From<::std::vec::Vec> for FontWeightValue { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for FontWeightValue { +impl ::std::convert::From for FontWeightValue { fn from(value: FontWeightValueVariant1) -> Self { Self::Variant1(value) } @@ -33318,22 +33681,22 @@ pub enum FontWeightValueVariant0Item { test: ::std::option::Option<::std::string::String>, }, } -impl From<&FontWeightValueVariant0Item> for FontWeightValueVariant0Item { +impl ::std::convert::From<&FontWeightValueVariant0Item> for FontWeightValueVariant0Item { fn from(value: &FontWeightValueVariant0Item) -> Self { value.clone() } } -impl From for FontWeightValueVariant0Item { +impl ::std::convert::From for FontWeightValueVariant0Item { fn from(value: FontWeightValueVariant0ItemVariant0) -> Self { Self::Variant0(value) } } -impl From for FontWeightValueVariant0Item { +impl ::std::convert::From for FontWeightValueVariant0Item { fn from(value: FontWeightValueVariant0ItemVariant1) -> Self { Self::Variant1(value) } } -impl From for FontWeightValueVariant0Item { +impl ::std::convert::From for FontWeightValueVariant0Item { fn from(value: FontWeightValueVariant0ItemVariant2) -> Self { Self::Variant2(value) } @@ -33489,7 +33852,9 @@ pub enum FontWeightValueVariant0ItemVariant0 { test: ::std::option::Option<::std::string::String>, }, } -impl From<&FontWeightValueVariant0ItemVariant0> for FontWeightValueVariant0ItemVariant0 { +impl ::std::convert::From<&FontWeightValueVariant0ItemVariant0> + for FontWeightValueVariant0ItemVariant0 +{ fn from(value: &FontWeightValueVariant0ItemVariant0) -> Self { value.clone() } @@ -33517,14 +33882,14 @@ pub enum FontWeightValueVariant0ItemVariant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&FontWeightValueVariant0ItemVariant0Variant3Range> +impl ::std::convert::From<&FontWeightValueVariant0ItemVariant0Variant3Range> for FontWeightValueVariant0ItemVariant0Variant3Range { fn from(value: &FontWeightValueVariant0ItemVariant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for FontWeightValueVariant0ItemVariant0Variant3Range { +impl ::std::str::FromStr for FontWeightValueVariant0ItemVariant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -33536,13 +33901,13 @@ impl std::str::FromStr for FontWeightValueVariant0ItemVariant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for FontWeightValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::TryFrom<&str> for FontWeightValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for FontWeightValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -33552,7 +33917,7 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> +impl ::std::convert::TryFrom<::std::string::String> for FontWeightValueVariant0ItemVariant0Variant3Range { type Error = self::error::ConversionError; @@ -33570,12 +33935,12 @@ impl ::std::fmt::Display for FontWeightValueVariant0ItemVariant0Variant3Range { } } } -impl From for FontWeightValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for FontWeightValueVariant0ItemVariant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for FontWeightValueVariant0ItemVariant0Variant3Range { +impl ::std::convert::From for FontWeightValueVariant0ItemVariant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -33713,7 +34078,9 @@ impl From for FontWeightValueVariant0ItemVariant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum FontWeightValueVariant0ItemVariant1 {} -impl From<&FontWeightValueVariant0ItemVariant1> for FontWeightValueVariant0ItemVariant1 { +impl ::std::convert::From<&FontWeightValueVariant0ItemVariant1> + for FontWeightValueVariant0ItemVariant1 +{ fn from(value: &FontWeightValueVariant0ItemVariant1) -> Self { value.clone() } @@ -33851,7 +34218,9 @@ impl From<&FontWeightValueVariant0ItemVariant1> for FontWeightValueVariant0ItemV )] #[serde(deny_unknown_fields)] pub enum FontWeightValueVariant0ItemVariant2 {} -impl From<&FontWeightValueVariant0ItemVariant2> for FontWeightValueVariant0ItemVariant2 { +impl ::std::convert::From<&FontWeightValueVariant0ItemVariant2> + for FontWeightValueVariant0ItemVariant2 +{ fn from(value: &FontWeightValueVariant0ItemVariant2) -> Self { value.clone() } @@ -33973,22 +34342,22 @@ pub enum FontWeightValueVariant1 { Variant2(FontWeightValueVariant1Variant2), Variant3 { offset: ::serde_json::Value }, } -impl From<&FontWeightValueVariant1> for FontWeightValueVariant1 { +impl ::std::convert::From<&FontWeightValueVariant1> for FontWeightValueVariant1 { fn from(value: &FontWeightValueVariant1) -> Self { value.clone() } } -impl From for FontWeightValueVariant1 { +impl ::std::convert::From for FontWeightValueVariant1 { fn from(value: FontWeightValueVariant1Variant0) -> Self { Self::Variant0(value) } } -impl From for FontWeightValueVariant1 { +impl ::std::convert::From for FontWeightValueVariant1 { fn from(value: FontWeightValueVariant1Variant1) -> Self { Self::Variant1(value) } } -impl From for FontWeightValueVariant1 { +impl ::std::convert::From for FontWeightValueVariant1 { fn from(value: FontWeightValueVariant1Variant2) -> Self { Self::Variant2(value) } @@ -34133,7 +34502,7 @@ pub enum FontWeightValueVariant1Variant0 { scale: ::std::option::Option, }, } -impl From<&FontWeightValueVariant1Variant0> for FontWeightValueVariant1Variant0 { +impl ::std::convert::From<&FontWeightValueVariant1Variant0> for FontWeightValueVariant1Variant0 { fn from(value: &FontWeightValueVariant1Variant0) -> Self { value.clone() } @@ -34161,14 +34530,14 @@ pub enum FontWeightValueVariant1Variant0Variant3Range { Variant0(f64), Variant1(bool), } -impl From<&FontWeightValueVariant1Variant0Variant3Range> +impl ::std::convert::From<&FontWeightValueVariant1Variant0Variant3Range> for FontWeightValueVariant1Variant0Variant3Range { fn from(value: &FontWeightValueVariant1Variant0Variant3Range) -> Self { value.clone() } } -impl std::str::FromStr for FontWeightValueVariant1Variant0Variant3Range { +impl ::std::str::FromStr for FontWeightValueVariant1Variant0Variant3Range { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -34180,13 +34549,13 @@ impl std::str::FromStr for FontWeightValueVariant1Variant0Variant3Range { } } } -impl std::convert::TryFrom<&str> for FontWeightValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<&str> for FontWeightValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> +impl ::std::convert::TryFrom<&::std::string::String> for FontWeightValueVariant1Variant0Variant3Range { type Error = self::error::ConversionError; @@ -34196,7 +34565,9 @@ impl std::convert::TryFrom<&::std::string::String> value.parse() } } -impl std::convert::TryFrom<::std::string::String> for FontWeightValueVariant1Variant0Variant3Range { +impl ::std::convert::TryFrom<::std::string::String> + for FontWeightValueVariant1Variant0Variant3Range +{ type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -34212,12 +34583,12 @@ impl ::std::fmt::Display for FontWeightValueVariant1Variant0Variant3Range { } } } -impl From for FontWeightValueVariant1Variant0Variant3Range { +impl ::std::convert::From for FontWeightValueVariant1Variant0Variant3Range { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for FontWeightValueVariant1Variant0Variant3Range { +impl ::std::convert::From for FontWeightValueVariant1Variant0Variant3Range { fn from(value: bool) -> Self { Self::Variant1(value) } @@ -34352,7 +34723,7 @@ impl From for FontWeightValueVariant1Variant0Variant3Range { )] #[serde(deny_unknown_fields)] pub enum FontWeightValueVariant1Variant1 {} -impl From<&FontWeightValueVariant1Variant1> for FontWeightValueVariant1Variant1 { +impl ::std::convert::From<&FontWeightValueVariant1Variant1> for FontWeightValueVariant1Variant1 { fn from(value: &FontWeightValueVariant1Variant1) -> Self { value.clone() } @@ -34487,7 +34858,7 @@ impl From<&FontWeightValueVariant1Variant1> for FontWeightValueVariant1Variant1 )] #[serde(deny_unknown_fields)] pub enum FontWeightValueVariant1Variant2 {} -impl From<&FontWeightValueVariant1Variant2> for FontWeightValueVariant1Variant2 { +impl ::std::convert::From<&FontWeightValueVariant1Variant2> for FontWeightValueVariant1Variant2 { fn from(value: &FontWeightValueVariant1Variant2) -> Self { value.clone() } @@ -34953,7 +35324,7 @@ pub struct ForceTransform { )] pub velocity_decay: ForceTransformVelocityDecay, } -impl From<&ForceTransform> for ForceTransform { +impl ::std::convert::From<&ForceTransform> for ForceTransform { fn from(value: &ForceTransform) -> Self { value.clone() } @@ -34982,22 +35353,22 @@ pub enum ForceTransformAlpha { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformAlpha> for ForceTransformAlpha { +impl ::std::convert::From<&ForceTransformAlpha> for ForceTransformAlpha { fn from(value: &ForceTransformAlpha) -> Self { value.clone() } } -impl Default for ForceTransformAlpha { +impl ::std::default::Default for ForceTransformAlpha { fn default() -> Self { ForceTransformAlpha::Variant0(1_f64) } } -impl From for ForceTransformAlpha { +impl ::std::convert::From for ForceTransformAlpha { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformAlpha { +impl ::std::convert::From for ForceTransformAlpha { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35026,22 +35397,22 @@ pub enum ForceTransformAlphaMin { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformAlphaMin> for ForceTransformAlphaMin { +impl ::std::convert::From<&ForceTransformAlphaMin> for ForceTransformAlphaMin { fn from(value: &ForceTransformAlphaMin) -> Self { value.clone() } } -impl Default for ForceTransformAlphaMin { +impl ::std::default::Default for ForceTransformAlphaMin { fn default() -> Self { ForceTransformAlphaMin::Variant0(0.001_f64) } } -impl From for ForceTransformAlphaMin { +impl ::std::convert::From for ForceTransformAlphaMin { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformAlphaMin { +impl ::std::convert::From for ForceTransformAlphaMin { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35069,17 +35440,17 @@ pub enum ForceTransformAlphaTarget { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformAlphaTarget> for ForceTransformAlphaTarget { +impl ::std::convert::From<&ForceTransformAlphaTarget> for ForceTransformAlphaTarget { fn from(value: &ForceTransformAlphaTarget) -> Self { value.clone() } } -impl From for ForceTransformAlphaTarget { +impl ::std::convert::From for ForceTransformAlphaTarget { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformAlphaTarget { +impl ::std::convert::From for ForceTransformAlphaTarget { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35123,12 +35494,12 @@ pub enum ForceTransformAs { Variant0(::std::vec::Vec), Variant1(SignalRef), } -impl From<&ForceTransformAs> for ForceTransformAs { +impl ::std::convert::From<&ForceTransformAs> for ForceTransformAs { fn from(value: &ForceTransformAs) -> Self { value.clone() } } -impl Default for ForceTransformAs { +impl ::std::default::Default for ForceTransformAs { fn default() -> Self { ForceTransformAs::Variant0(vec![ ForceTransformAsVariant0Item::Variant0("x".to_string()), @@ -35138,12 +35509,12 @@ impl Default for ForceTransformAs { ]) } } -impl From<::std::vec::Vec> for ForceTransformAs { +impl ::std::convert::From<::std::vec::Vec> for ForceTransformAs { fn from(value: ::std::vec::Vec) -> Self { Self::Variant0(value) } } -impl From for ForceTransformAs { +impl ::std::convert::From for ForceTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35171,12 +35542,12 @@ pub enum ForceTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&ForceTransformAsVariant0Item> for ForceTransformAsVariant0Item { +impl ::std::convert::From<&ForceTransformAsVariant0Item> for ForceTransformAsVariant0Item { fn from(value: &ForceTransformAsVariant0Item) -> Self { value.clone() } } -impl From for ForceTransformAsVariant0Item { +impl ::std::convert::From for ForceTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35550,7 +35921,7 @@ pub enum ForceTransformForcesItem { y: ::std::option::Option, }, } -impl From<&ForceTransformForcesItem> for ForceTransformForcesItem { +impl ::std::convert::From<&ForceTransformForcesItem> for ForceTransformForcesItem { fn from(value: &ForceTransformForcesItem) -> Self { value.clone() } @@ -35587,32 +35958,32 @@ pub enum ForceTransformForcesItemDistance { Variant2(Expr), Variant3(ParamField), } -impl From<&ForceTransformForcesItemDistance> for ForceTransformForcesItemDistance { +impl ::std::convert::From<&ForceTransformForcesItemDistance> for ForceTransformForcesItemDistance { fn from(value: &ForceTransformForcesItemDistance) -> Self { value.clone() } } -impl Default for ForceTransformForcesItemDistance { +impl ::std::default::Default for ForceTransformForcesItemDistance { fn default() -> Self { ForceTransformForcesItemDistance::Variant0(30_f64) } } -impl From for ForceTransformForcesItemDistance { +impl ::std::convert::From for ForceTransformForcesItemDistance { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemDistance { +impl ::std::convert::From for ForceTransformForcesItemDistance { fn from(value: SignalRef) -> Self { Self::Variant1(value) } } -impl From for ForceTransformForcesItemDistance { +impl ::std::convert::From for ForceTransformForcesItemDistance { fn from(value: Expr) -> Self { Self::Variant2(value) } } -impl From for ForceTransformForcesItemDistance { +impl ::std::convert::From for ForceTransformForcesItemDistance { fn from(value: ParamField) -> Self { Self::Variant3(value) } @@ -35640,17 +36011,19 @@ pub enum ForceTransformForcesItemDistanceMax { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemDistanceMax> for ForceTransformForcesItemDistanceMax { +impl ::std::convert::From<&ForceTransformForcesItemDistanceMax> + for ForceTransformForcesItemDistanceMax +{ fn from(value: &ForceTransformForcesItemDistanceMax) -> Self { value.clone() } } -impl From for ForceTransformForcesItemDistanceMax { +impl ::std::convert::From for ForceTransformForcesItemDistanceMax { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemDistanceMax { +impl ::std::convert::From for ForceTransformForcesItemDistanceMax { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35679,22 +36052,24 @@ pub enum ForceTransformForcesItemDistanceMin { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemDistanceMin> for ForceTransformForcesItemDistanceMin { +impl ::std::convert::From<&ForceTransformForcesItemDistanceMin> + for ForceTransformForcesItemDistanceMin +{ fn from(value: &ForceTransformForcesItemDistanceMin) -> Self { value.clone() } } -impl Default for ForceTransformForcesItemDistanceMin { +impl ::std::default::Default for ForceTransformForcesItemDistanceMin { fn default() -> Self { ForceTransformForcesItemDistanceMin::Variant0(1_f64) } } -impl From for ForceTransformForcesItemDistanceMin { +impl ::std::convert::From for ForceTransformForcesItemDistanceMin { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemDistanceMin { +impl ::std::convert::From for ForceTransformForcesItemDistanceMin { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35726,22 +36101,22 @@ pub enum ForceTransformForcesItemId { ParamField(ParamField), Expr(Expr), } -impl From<&ForceTransformForcesItemId> for ForceTransformForcesItemId { +impl ::std::convert::From<&ForceTransformForcesItemId> for ForceTransformForcesItemId { fn from(value: &ForceTransformForcesItemId) -> Self { value.clone() } } -impl From for ForceTransformForcesItemId { +impl ::std::convert::From for ForceTransformForcesItemId { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for ForceTransformForcesItemId { +impl ::std::convert::From for ForceTransformForcesItemId { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for ForceTransformForcesItemId { +impl ::std::convert::From for ForceTransformForcesItemId { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -35770,22 +36145,24 @@ pub enum ForceTransformForcesItemIterations { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemIterations> for ForceTransformForcesItemIterations { +impl ::std::convert::From<&ForceTransformForcesItemIterations> + for ForceTransformForcesItemIterations +{ fn from(value: &ForceTransformForcesItemIterations) -> Self { value.clone() } } -impl Default for ForceTransformForcesItemIterations { +impl ::std::default::Default for ForceTransformForcesItemIterations { fn default() -> Self { ForceTransformForcesItemIterations::Variant0(1_f64) } } -impl From for ForceTransformForcesItemIterations { +impl ::std::convert::From for ForceTransformForcesItemIterations { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemIterations { +impl ::std::convert::From for ForceTransformForcesItemIterations { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35821,27 +36198,27 @@ pub enum ForceTransformForcesItemRadius { Variant2(Expr), Variant3(ParamField), } -impl From<&ForceTransformForcesItemRadius> for ForceTransformForcesItemRadius { +impl ::std::convert::From<&ForceTransformForcesItemRadius> for ForceTransformForcesItemRadius { fn from(value: &ForceTransformForcesItemRadius) -> Self { value.clone() } } -impl From for ForceTransformForcesItemRadius { +impl ::std::convert::From for ForceTransformForcesItemRadius { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemRadius { +impl ::std::convert::From for ForceTransformForcesItemRadius { fn from(value: SignalRef) -> Self { Self::Variant1(value) } } -impl From for ForceTransformForcesItemRadius { +impl ::std::convert::From for ForceTransformForcesItemRadius { fn from(value: Expr) -> Self { Self::Variant2(value) } } -impl From for ForceTransformForcesItemRadius { +impl ::std::convert::From for ForceTransformForcesItemRadius { fn from(value: ParamField) -> Self { Self::Variant3(value) } @@ -35870,22 +36247,22 @@ pub enum ForceTransformForcesItemStrength { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemStrength> for ForceTransformForcesItemStrength { +impl ::std::convert::From<&ForceTransformForcesItemStrength> for ForceTransformForcesItemStrength { fn from(value: &ForceTransformForcesItemStrength) -> Self { value.clone() } } -impl Default for ForceTransformForcesItemStrength { +impl ::std::default::Default for ForceTransformForcesItemStrength { fn default() -> Self { ForceTransformForcesItemStrength::Variant0(0.7_f64) } } -impl From for ForceTransformForcesItemStrength { +impl ::std::convert::From for ForceTransformForcesItemStrength { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemStrength { +impl ::std::convert::From for ForceTransformForcesItemStrength { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35914,22 +36291,22 @@ pub enum ForceTransformForcesItemTheta { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemTheta> for ForceTransformForcesItemTheta { +impl ::std::convert::From<&ForceTransformForcesItemTheta> for ForceTransformForcesItemTheta { fn from(value: &ForceTransformForcesItemTheta) -> Self { value.clone() } } -impl Default for ForceTransformForcesItemTheta { +impl ::std::default::Default for ForceTransformForcesItemTheta { fn default() -> Self { ForceTransformForcesItemTheta::Variant0(0.9_f64) } } -impl From for ForceTransformForcesItemTheta { +impl ::std::convert::From for ForceTransformForcesItemTheta { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemTheta { +impl ::std::convert::From for ForceTransformForcesItemTheta { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35957,17 +36334,17 @@ pub enum ForceTransformForcesItemX { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemX> for ForceTransformForcesItemX { +impl ::std::convert::From<&ForceTransformForcesItemX> for ForceTransformForcesItemX { fn from(value: &ForceTransformForcesItemX) -> Self { value.clone() } } -impl From for ForceTransformForcesItemX { +impl ::std::convert::From for ForceTransformForcesItemX { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemX { +impl ::std::convert::From for ForceTransformForcesItemX { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -35995,17 +36372,17 @@ pub enum ForceTransformForcesItemY { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformForcesItemY> for ForceTransformForcesItemY { +impl ::std::convert::From<&ForceTransformForcesItemY> for ForceTransformForcesItemY { fn from(value: &ForceTransformForcesItemY) -> Self { value.clone() } } -impl From for ForceTransformForcesItemY { +impl ::std::convert::From for ForceTransformForcesItemY { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformForcesItemY { +impl ::std::convert::From for ForceTransformForcesItemY { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36034,22 +36411,22 @@ pub enum ForceTransformIterations { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformIterations> for ForceTransformIterations { +impl ::std::convert::From<&ForceTransformIterations> for ForceTransformIterations { fn from(value: &ForceTransformIterations) -> Self { value.clone() } } -impl Default for ForceTransformIterations { +impl ::std::default::Default for ForceTransformIterations { fn default() -> Self { ForceTransformIterations::Variant0(300_f64) } } -impl From for ForceTransformIterations { +impl ::std::convert::From for ForceTransformIterations { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformIterations { +impl ::std::convert::From for ForceTransformIterations { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36077,17 +36454,17 @@ pub enum ForceTransformRestart { Variant0(bool), Variant1(SignalRef), } -impl From<&ForceTransformRestart> for ForceTransformRestart { +impl ::std::convert::From<&ForceTransformRestart> for ForceTransformRestart { fn from(value: &ForceTransformRestart) -> Self { value.clone() } } -impl From for ForceTransformRestart { +impl ::std::convert::From for ForceTransformRestart { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for ForceTransformRestart { +impl ::std::convert::From for ForceTransformRestart { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36115,17 +36492,17 @@ pub enum ForceTransformStatic { Variant0(bool), Variant1(SignalRef), } -impl From<&ForceTransformStatic> for ForceTransformStatic { +impl ::std::convert::From<&ForceTransformStatic> for ForceTransformStatic { fn from(value: &ForceTransformStatic) -> Self { value.clone() } } -impl From for ForceTransformStatic { +impl ::std::convert::From for ForceTransformStatic { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for ForceTransformStatic { +impl ::std::convert::From for ForceTransformStatic { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36158,7 +36535,7 @@ pub enum ForceTransformType { #[serde(rename = "force")] Force, } -impl From<&ForceTransformType> for ForceTransformType { +impl ::std::convert::From<&ForceTransformType> for ForceTransformType { fn from(value: &ForceTransformType) -> Self { value.clone() } @@ -36170,7 +36547,7 @@ impl ::std::fmt::Display for ForceTransformType { } } } -impl std::str::FromStr for ForceTransformType { +impl ::std::str::FromStr for ForceTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36179,13 +36556,13 @@ impl std::str::FromStr for ForceTransformType { } } } -impl std::convert::TryFrom<&str> for ForceTransformType { +impl ::std::convert::TryFrom<&str> for ForceTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for ForceTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for ForceTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -36193,7 +36570,7 @@ impl std::convert::TryFrom<&::std::string::String> for ForceTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for ForceTransformType { +impl ::std::convert::TryFrom<::std::string::String> for ForceTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -36225,22 +36602,22 @@ pub enum ForceTransformVelocityDecay { Variant0(f64), Variant1(SignalRef), } -impl From<&ForceTransformVelocityDecay> for ForceTransformVelocityDecay { +impl ::std::convert::From<&ForceTransformVelocityDecay> for ForceTransformVelocityDecay { fn from(value: &ForceTransformVelocityDecay) -> Self { value.clone() } } -impl Default for ForceTransformVelocityDecay { +impl ::std::default::Default for ForceTransformVelocityDecay { fn default() -> Self { ForceTransformVelocityDecay::Variant0(0.4_f64) } } -impl From for ForceTransformVelocityDecay { +impl ::std::convert::From for ForceTransformVelocityDecay { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for ForceTransformVelocityDecay { +impl ::std::convert::From for ForceTransformVelocityDecay { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36307,7 +36684,7 @@ pub struct FormulaTransform { #[serde(rename = "type")] pub type_: FormulaTransformType, } -impl From<&FormulaTransform> for FormulaTransform { +impl ::std::convert::From<&FormulaTransform> for FormulaTransform { fn from(value: &FormulaTransform) -> Self { value.clone() } @@ -36335,12 +36712,12 @@ pub enum FormulaTransformAs { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&FormulaTransformAs> for FormulaTransformAs { +impl ::std::convert::From<&FormulaTransformAs> for FormulaTransformAs { fn from(value: &FormulaTransformAs) -> Self { value.clone() } } -impl From for FormulaTransformAs { +impl ::std::convert::From for FormulaTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36368,17 +36745,17 @@ pub enum FormulaTransformInitonly { Variant0(bool), Variant1(SignalRef), } -impl From<&FormulaTransformInitonly> for FormulaTransformInitonly { +impl ::std::convert::From<&FormulaTransformInitonly> for FormulaTransformInitonly { fn from(value: &FormulaTransformInitonly) -> Self { value.clone() } } -impl From for FormulaTransformInitonly { +impl ::std::convert::From for FormulaTransformInitonly { fn from(value: bool) -> Self { Self::Variant0(value) } } -impl From for FormulaTransformInitonly { +impl ::std::convert::From for FormulaTransformInitonly { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36411,7 +36788,7 @@ pub enum FormulaTransformType { #[serde(rename = "formula")] Formula, } -impl From<&FormulaTransformType> for FormulaTransformType { +impl ::std::convert::From<&FormulaTransformType> for FormulaTransformType { fn from(value: &FormulaTransformType) -> Self { value.clone() } @@ -36423,7 +36800,7 @@ impl ::std::fmt::Display for FormulaTransformType { } } } -impl std::str::FromStr for FormulaTransformType { +impl ::std::str::FromStr for FormulaTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36432,13 +36809,13 @@ impl std::str::FromStr for FormulaTransformType { } } } -impl std::convert::TryFrom<&str> for FormulaTransformType { +impl ::std::convert::TryFrom<&str> for FormulaTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for FormulaTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for FormulaTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -36446,7 +36823,7 @@ impl std::convert::TryFrom<&::std::string::String> for FormulaTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for FormulaTransformType { +impl ::std::convert::TryFrom<::std::string::String> for FormulaTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -36476,11 +36853,18 @@ pub struct From { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub data: ::std::option::Option<::std::string::String>, } -impl From<&From> for From { +impl ::std::convert::From<&From> for From { fn from(value: &From) -> Self { value.clone() } } +impl ::std::default::Default for From { + fn default() -> Self { + Self { + data: Default::default(), + } + } +} #[doc = "GeojsonTransform"] #[doc = r""] #[doc = r"
JSON schema"] @@ -36555,7 +36939,7 @@ pub struct GeojsonTransform { #[serde(rename = "type")] pub type_: GeojsonTransformType, } -impl From<&GeojsonTransform> for GeojsonTransform { +impl ::std::convert::From<&GeojsonTransform> for GeojsonTransform { fn from(value: &GeojsonTransform) -> Self { value.clone() } @@ -36598,17 +36982,17 @@ pub enum GeojsonTransformFields { Variant0([GeojsonTransformFieldsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&GeojsonTransformFields> for GeojsonTransformFields { +impl ::std::convert::From<&GeojsonTransformFields> for GeojsonTransformFields { fn from(value: &GeojsonTransformFields) -> Self { value.clone() } } -impl From<[GeojsonTransformFieldsVariant0Item; 2usize]> for GeojsonTransformFields { +impl ::std::convert::From<[GeojsonTransformFieldsVariant0Item; 2usize]> for GeojsonTransformFields { fn from(value: [GeojsonTransformFieldsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GeojsonTransformFields { +impl ::std::convert::From for GeojsonTransformFields { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36640,22 +37024,24 @@ pub enum GeojsonTransformFieldsVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&GeojsonTransformFieldsVariant0Item> for GeojsonTransformFieldsVariant0Item { +impl ::std::convert::From<&GeojsonTransformFieldsVariant0Item> + for GeojsonTransformFieldsVariant0Item +{ fn from(value: &GeojsonTransformFieldsVariant0Item) -> Self { value.clone() } } -impl From for GeojsonTransformFieldsVariant0Item { +impl ::std::convert::From for GeojsonTransformFieldsVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for GeojsonTransformFieldsVariant0Item { +impl ::std::convert::From for GeojsonTransformFieldsVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for GeojsonTransformFieldsVariant0Item { +impl ::std::convert::From for GeojsonTransformFieldsVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -36687,22 +37073,22 @@ pub enum GeojsonTransformGeojson { ParamField(ParamField), Expr(Expr), } -impl From<&GeojsonTransformGeojson> for GeojsonTransformGeojson { +impl ::std::convert::From<&GeojsonTransformGeojson> for GeojsonTransformGeojson { fn from(value: &GeojsonTransformGeojson) -> Self { value.clone() } } -impl From for GeojsonTransformGeojson { +impl ::std::convert::From for GeojsonTransformGeojson { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for GeojsonTransformGeojson { +impl ::std::convert::From for GeojsonTransformGeojson { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for GeojsonTransformGeojson { +impl ::std::convert::From for GeojsonTransformGeojson { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -36735,7 +37121,7 @@ pub enum GeojsonTransformType { #[serde(rename = "geojson")] Geojson, } -impl From<&GeojsonTransformType> for GeojsonTransformType { +impl ::std::convert::From<&GeojsonTransformType> for GeojsonTransformType { fn from(value: &GeojsonTransformType) -> Self { value.clone() } @@ -36747,7 +37133,7 @@ impl ::std::fmt::Display for GeojsonTransformType { } } } -impl std::str::FromStr for GeojsonTransformType { +impl ::std::str::FromStr for GeojsonTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -36756,13 +37142,13 @@ impl std::str::FromStr for GeojsonTransformType { } } } -impl std::convert::TryFrom<&str> for GeojsonTransformType { +impl ::std::convert::TryFrom<&str> for GeojsonTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GeojsonTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for GeojsonTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -36770,7 +37156,7 @@ impl std::convert::TryFrom<&::std::string::String> for GeojsonTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GeojsonTransformType { +impl ::std::convert::TryFrom<::std::string::String> for GeojsonTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -36865,7 +37251,7 @@ pub struct GeopathTransform { #[serde(rename = "type")] pub type_: GeopathTransformType, } -impl From<&GeopathTransform> for GeopathTransform { +impl ::std::convert::From<&GeopathTransform> for GeopathTransform { fn from(value: &GeopathTransform) -> Self { value.clone() } @@ -36894,17 +37280,17 @@ pub enum GeopathTransformAs { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&GeopathTransformAs> for GeopathTransformAs { +impl ::std::convert::From<&GeopathTransformAs> for GeopathTransformAs { fn from(value: &GeopathTransformAs) -> Self { value.clone() } } -impl Default for GeopathTransformAs { +impl ::std::default::Default for GeopathTransformAs { fn default() -> Self { GeopathTransformAs::Variant0("path".to_string()) } } -impl From for GeopathTransformAs { +impl ::std::convert::From for GeopathTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -36936,22 +37322,22 @@ pub enum GeopathTransformField { ParamField(ParamField), Expr(Expr), } -impl From<&GeopathTransformField> for GeopathTransformField { +impl ::std::convert::From<&GeopathTransformField> for GeopathTransformField { fn from(value: &GeopathTransformField) -> Self { value.clone() } } -impl From for GeopathTransformField { +impl ::std::convert::From for GeopathTransformField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for GeopathTransformField { +impl ::std::convert::From for GeopathTransformField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for GeopathTransformField { +impl ::std::convert::From for GeopathTransformField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -36987,27 +37373,27 @@ pub enum GeopathTransformPointRadius { Variant2(Expr), Variant3(ParamField), } -impl From<&GeopathTransformPointRadius> for GeopathTransformPointRadius { +impl ::std::convert::From<&GeopathTransformPointRadius> for GeopathTransformPointRadius { fn from(value: &GeopathTransformPointRadius) -> Self { value.clone() } } -impl From for GeopathTransformPointRadius { +impl ::std::convert::From for GeopathTransformPointRadius { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for GeopathTransformPointRadius { +impl ::std::convert::From for GeopathTransformPointRadius { fn from(value: SignalRef) -> Self { Self::Variant1(value) } } -impl From for GeopathTransformPointRadius { +impl ::std::convert::From for GeopathTransformPointRadius { fn from(value: Expr) -> Self { Self::Variant2(value) } } -impl From for GeopathTransformPointRadius { +impl ::std::convert::From for GeopathTransformPointRadius { fn from(value: ParamField) -> Self { Self::Variant3(value) } @@ -37040,7 +37426,7 @@ pub enum GeopathTransformType { #[serde(rename = "geopath")] Geopath, } -impl From<&GeopathTransformType> for GeopathTransformType { +impl ::std::convert::From<&GeopathTransformType> for GeopathTransformType { fn from(value: &GeopathTransformType) -> Self { value.clone() } @@ -37052,7 +37438,7 @@ impl ::std::fmt::Display for GeopathTransformType { } } } -impl std::str::FromStr for GeopathTransformType { +impl ::std::str::FromStr for GeopathTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37061,13 +37447,13 @@ impl std::str::FromStr for GeopathTransformType { } } } -impl std::convert::TryFrom<&str> for GeopathTransformType { +impl ::std::convert::TryFrom<&str> for GeopathTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GeopathTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for GeopathTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -37075,7 +37461,7 @@ impl std::convert::TryFrom<&::std::string::String> for GeopathTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GeopathTransformType { +impl ::std::convert::TryFrom<::std::string::String> for GeopathTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -37175,7 +37561,7 @@ pub struct GeopointTransform { #[serde(rename = "type")] pub type_: GeopointTransformType, } -impl From<&GeopointTransform> for GeopointTransform { +impl ::std::convert::From<&GeopointTransform> for GeopointTransform { fn from(value: &GeopointTransform) -> Self { value.clone() } @@ -37219,12 +37605,12 @@ pub enum GeopointTransformAs { Variant0([GeopointTransformAsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&GeopointTransformAs> for GeopointTransformAs { +impl ::std::convert::From<&GeopointTransformAs> for GeopointTransformAs { fn from(value: &GeopointTransformAs) -> Self { value.clone() } } -impl Default for GeopointTransformAs { +impl ::std::default::Default for GeopointTransformAs { fn default() -> Self { GeopointTransformAs::Variant0([ GeopointTransformAsVariant0Item::Variant0("x".to_string()), @@ -37232,12 +37618,12 @@ impl Default for GeopointTransformAs { ]) } } -impl From<[GeopointTransformAsVariant0Item; 2usize]> for GeopointTransformAs { +impl ::std::convert::From<[GeopointTransformAsVariant0Item; 2usize]> for GeopointTransformAs { fn from(value: [GeopointTransformAsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GeopointTransformAs { +impl ::std::convert::From for GeopointTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -37265,12 +37651,12 @@ pub enum GeopointTransformAsVariant0Item { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&GeopointTransformAsVariant0Item> for GeopointTransformAsVariant0Item { +impl ::std::convert::From<&GeopointTransformAsVariant0Item> for GeopointTransformAsVariant0Item { fn from(value: &GeopointTransformAsVariant0Item) -> Self { value.clone() } } -impl From for GeopointTransformAsVariant0Item { +impl ::std::convert::From for GeopointTransformAsVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -37313,17 +37699,19 @@ pub enum GeopointTransformFields { Variant0([GeopointTransformFieldsVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&GeopointTransformFields> for GeopointTransformFields { +impl ::std::convert::From<&GeopointTransformFields> for GeopointTransformFields { fn from(value: &GeopointTransformFields) -> Self { value.clone() } } -impl From<[GeopointTransformFieldsVariant0Item; 2usize]> for GeopointTransformFields { +impl ::std::convert::From<[GeopointTransformFieldsVariant0Item; 2usize]> + for GeopointTransformFields +{ fn from(value: [GeopointTransformFieldsVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GeopointTransformFields { +impl ::std::convert::From for GeopointTransformFields { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -37355,22 +37743,24 @@ pub enum GeopointTransformFieldsVariant0Item { ParamField(ParamField), Expr(Expr), } -impl From<&GeopointTransformFieldsVariant0Item> for GeopointTransformFieldsVariant0Item { +impl ::std::convert::From<&GeopointTransformFieldsVariant0Item> + for GeopointTransformFieldsVariant0Item +{ fn from(value: &GeopointTransformFieldsVariant0Item) -> Self { value.clone() } } -impl From for GeopointTransformFieldsVariant0Item { +impl ::std::convert::From for GeopointTransformFieldsVariant0Item { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for GeopointTransformFieldsVariant0Item { +impl ::std::convert::From for GeopointTransformFieldsVariant0Item { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for GeopointTransformFieldsVariant0Item { +impl ::std::convert::From for GeopointTransformFieldsVariant0Item { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -37403,7 +37793,7 @@ pub enum GeopointTransformType { #[serde(rename = "geopoint")] Geopoint, } -impl From<&GeopointTransformType> for GeopointTransformType { +impl ::std::convert::From<&GeopointTransformType> for GeopointTransformType { fn from(value: &GeopointTransformType) -> Self { value.clone() } @@ -37415,7 +37805,7 @@ impl ::std::fmt::Display for GeopointTransformType { } } } -impl std::str::FromStr for GeopointTransformType { +impl ::std::str::FromStr for GeopointTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37424,13 +37814,13 @@ impl std::str::FromStr for GeopointTransformType { } } } -impl std::convert::TryFrom<&str> for GeopointTransformType { +impl ::std::convert::TryFrom<&str> for GeopointTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GeopointTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for GeopointTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -37438,7 +37828,7 @@ impl std::convert::TryFrom<&::std::string::String> for GeopointTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GeopointTransformType { +impl ::std::convert::TryFrom<::std::string::String> for GeopointTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -37534,7 +37924,7 @@ pub struct GeoshapeTransform { #[serde(rename = "type")] pub type_: GeoshapeTransformType, } -impl From<&GeoshapeTransform> for GeoshapeTransform { +impl ::std::convert::From<&GeoshapeTransform> for GeoshapeTransform { fn from(value: &GeoshapeTransform) -> Self { value.clone() } @@ -37563,17 +37953,17 @@ pub enum GeoshapeTransformAs { Variant0(::std::string::String), Variant1(SignalRef), } -impl From<&GeoshapeTransformAs> for GeoshapeTransformAs { +impl ::std::convert::From<&GeoshapeTransformAs> for GeoshapeTransformAs { fn from(value: &GeoshapeTransformAs) -> Self { value.clone() } } -impl Default for GeoshapeTransformAs { +impl ::std::default::Default for GeoshapeTransformAs { fn default() -> Self { GeoshapeTransformAs::Variant0("shape".to_string()) } } -impl From for GeoshapeTransformAs { +impl ::std::convert::From for GeoshapeTransformAs { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -37606,29 +37996,29 @@ pub enum GeoshapeTransformField { ParamField(ParamField), Expr(Expr), } -impl From<&GeoshapeTransformField> for GeoshapeTransformField { +impl ::std::convert::From<&GeoshapeTransformField> for GeoshapeTransformField { fn from(value: &GeoshapeTransformField) -> Self { value.clone() } } -impl Default for GeoshapeTransformField { +impl ::std::default::Default for GeoshapeTransformField { fn default() -> Self { GeoshapeTransformField::ScaleField(ScaleField(StringOrSignal::Variant0( "datum".to_string(), ))) } } -impl From for GeoshapeTransformField { +impl ::std::convert::From for GeoshapeTransformField { fn from(value: ScaleField) -> Self { Self::ScaleField(value) } } -impl From for GeoshapeTransformField { +impl ::std::convert::From for GeoshapeTransformField { fn from(value: ParamField) -> Self { Self::ParamField(value) } } -impl From for GeoshapeTransformField { +impl ::std::convert::From for GeoshapeTransformField { fn from(value: Expr) -> Self { Self::Expr(value) } @@ -37664,27 +38054,27 @@ pub enum GeoshapeTransformPointRadius { Variant2(Expr), Variant3(ParamField), } -impl From<&GeoshapeTransformPointRadius> for GeoshapeTransformPointRadius { +impl ::std::convert::From<&GeoshapeTransformPointRadius> for GeoshapeTransformPointRadius { fn from(value: &GeoshapeTransformPointRadius) -> Self { value.clone() } } -impl From for GeoshapeTransformPointRadius { +impl ::std::convert::From for GeoshapeTransformPointRadius { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for GeoshapeTransformPointRadius { +impl ::std::convert::From for GeoshapeTransformPointRadius { fn from(value: SignalRef) -> Self { Self::Variant1(value) } } -impl From for GeoshapeTransformPointRadius { +impl ::std::convert::From for GeoshapeTransformPointRadius { fn from(value: Expr) -> Self { Self::Variant2(value) } } -impl From for GeoshapeTransformPointRadius { +impl ::std::convert::From for GeoshapeTransformPointRadius { fn from(value: ParamField) -> Self { Self::Variant3(value) } @@ -37717,7 +38107,7 @@ pub enum GeoshapeTransformType { #[serde(rename = "geoshape")] Geoshape, } -impl From<&GeoshapeTransformType> for GeoshapeTransformType { +impl ::std::convert::From<&GeoshapeTransformType> for GeoshapeTransformType { fn from(value: &GeoshapeTransformType) -> Self { value.clone() } @@ -37729,7 +38119,7 @@ impl ::std::fmt::Display for GeoshapeTransformType { } } } -impl std::str::FromStr for GeoshapeTransformType { +impl ::std::str::FromStr for GeoshapeTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -37738,13 +38128,13 @@ impl std::str::FromStr for GeoshapeTransformType { } } } -impl std::convert::TryFrom<&str> for GeoshapeTransformType { +impl ::std::convert::TryFrom<&str> for GeoshapeTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GeoshapeTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for GeoshapeTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -37752,7 +38142,7 @@ impl std::convert::TryFrom<&::std::string::String> for GeoshapeTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GeoshapeTransformType { +impl ::std::convert::TryFrom<::std::string::String> for GeoshapeTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -37794,17 +38184,17 @@ impl ::std::ops::Deref for GradientStops { &self.0 } } -impl From for ::std::vec::Vec { +impl ::std::convert::From for ::std::vec::Vec { fn from(value: GradientStops) -> Self { value.0 } } -impl From<&GradientStops> for GradientStops { +impl ::std::convert::From<&GradientStops> for GradientStops { fn from(value: &GradientStops) -> Self { value.clone() } } -impl From<::std::vec::Vec> for GradientStops { +impl ::std::convert::From<::std::vec::Vec> for GradientStops { fn from(value: ::std::vec::Vec) -> Self { Self(value) } @@ -37838,7 +38228,7 @@ pub struct GradientStopsItem { pub color: ::std::string::String, pub offset: f64, } -impl From<&GradientStopsItem> for GradientStopsItem { +impl ::std::convert::From<&GradientStopsItem> for GradientStopsItem { fn from(value: &GradientStopsItem) -> Self { value.clone() } @@ -38027,7 +38417,7 @@ pub struct GraticuleTransform { #[serde(rename = "type")] pub type_: GraticuleTransformType, } -impl From<&GraticuleTransform> for GraticuleTransform { +impl ::std::convert::From<&GraticuleTransform> for GraticuleTransform { fn from(value: &GraticuleTransform) -> Self { value.clone() } @@ -38058,17 +38448,17 @@ pub enum GraticuleTransformExtent { Variant0([::serde_json::Value; 2usize]), Variant1(SignalRef), } -impl From<&GraticuleTransformExtent> for GraticuleTransformExtent { +impl ::std::convert::From<&GraticuleTransformExtent> for GraticuleTransformExtent { fn from(value: &GraticuleTransformExtent) -> Self { value.clone() } } -impl From<[::serde_json::Value; 2usize]> for GraticuleTransformExtent { +impl ::std::convert::From<[::serde_json::Value; 2usize]> for GraticuleTransformExtent { fn from(value: [::serde_json::Value; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformExtent { +impl ::std::convert::From for GraticuleTransformExtent { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38099,17 +38489,17 @@ pub enum GraticuleTransformExtentMajor { Variant0([::serde_json::Value; 2usize]), Variant1(SignalRef), } -impl From<&GraticuleTransformExtentMajor> for GraticuleTransformExtentMajor { +impl ::std::convert::From<&GraticuleTransformExtentMajor> for GraticuleTransformExtentMajor { fn from(value: &GraticuleTransformExtentMajor) -> Self { value.clone() } } -impl From<[::serde_json::Value; 2usize]> for GraticuleTransformExtentMajor { +impl ::std::convert::From<[::serde_json::Value; 2usize]> for GraticuleTransformExtentMajor { fn from(value: [::serde_json::Value; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformExtentMajor { +impl ::std::convert::From for GraticuleTransformExtentMajor { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38140,17 +38530,17 @@ pub enum GraticuleTransformExtentMinor { Variant0([::serde_json::Value; 2usize]), Variant1(SignalRef), } -impl From<&GraticuleTransformExtentMinor> for GraticuleTransformExtentMinor { +impl ::std::convert::From<&GraticuleTransformExtentMinor> for GraticuleTransformExtentMinor { fn from(value: &GraticuleTransformExtentMinor) -> Self { value.clone() } } -impl From<[::serde_json::Value; 2usize]> for GraticuleTransformExtentMinor { +impl ::std::convert::From<[::serde_json::Value; 2usize]> for GraticuleTransformExtentMinor { fn from(value: [::serde_json::Value; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformExtentMinor { +impl ::std::convert::From for GraticuleTransformExtentMinor { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38179,22 +38569,22 @@ pub enum GraticuleTransformPrecision { Variant0(f64), Variant1(SignalRef), } -impl From<&GraticuleTransformPrecision> for GraticuleTransformPrecision { +impl ::std::convert::From<&GraticuleTransformPrecision> for GraticuleTransformPrecision { fn from(value: &GraticuleTransformPrecision) -> Self { value.clone() } } -impl Default for GraticuleTransformPrecision { +impl ::std::default::Default for GraticuleTransformPrecision { fn default() -> Self { GraticuleTransformPrecision::Variant0(2.5_f64) } } -impl From for GraticuleTransformPrecision { +impl ::std::convert::From for GraticuleTransformPrecision { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformPrecision { +impl ::std::convert::From for GraticuleTransformPrecision { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38234,17 +38624,17 @@ pub enum GraticuleTransformStep { Variant0([GraticuleTransformStepVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&GraticuleTransformStep> for GraticuleTransformStep { +impl ::std::convert::From<&GraticuleTransformStep> for GraticuleTransformStep { fn from(value: &GraticuleTransformStep) -> Self { value.clone() } } -impl From<[GraticuleTransformStepVariant0Item; 2usize]> for GraticuleTransformStep { +impl ::std::convert::From<[GraticuleTransformStepVariant0Item; 2usize]> for GraticuleTransformStep { fn from(value: [GraticuleTransformStepVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformStep { +impl ::std::convert::From for GraticuleTransformStep { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38288,12 +38678,12 @@ pub enum GraticuleTransformStepMajor { Variant0([GraticuleTransformStepMajorVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&GraticuleTransformStepMajor> for GraticuleTransformStepMajor { +impl ::std::convert::From<&GraticuleTransformStepMajor> for GraticuleTransformStepMajor { fn from(value: &GraticuleTransformStepMajor) -> Self { value.clone() } } -impl Default for GraticuleTransformStepMajor { +impl ::std::default::Default for GraticuleTransformStepMajor { fn default() -> Self { GraticuleTransformStepMajor::Variant0([ GraticuleTransformStepMajorVariant0Item::Variant0(90_f64), @@ -38301,12 +38691,14 @@ impl Default for GraticuleTransformStepMajor { ]) } } -impl From<[GraticuleTransformStepMajorVariant0Item; 2usize]> for GraticuleTransformStepMajor { +impl ::std::convert::From<[GraticuleTransformStepMajorVariant0Item; 2usize]> + for GraticuleTransformStepMajor +{ fn from(value: [GraticuleTransformStepMajorVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformStepMajor { +impl ::std::convert::From for GraticuleTransformStepMajor { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38334,17 +38726,19 @@ pub enum GraticuleTransformStepMajorVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&GraticuleTransformStepMajorVariant0Item> for GraticuleTransformStepMajorVariant0Item { +impl ::std::convert::From<&GraticuleTransformStepMajorVariant0Item> + for GraticuleTransformStepMajorVariant0Item +{ fn from(value: &GraticuleTransformStepMajorVariant0Item) -> Self { value.clone() } } -impl From for GraticuleTransformStepMajorVariant0Item { +impl ::std::convert::From for GraticuleTransformStepMajorVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformStepMajorVariant0Item { +impl ::std::convert::From for GraticuleTransformStepMajorVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38388,12 +38782,12 @@ pub enum GraticuleTransformStepMinor { Variant0([GraticuleTransformStepMinorVariant0Item; 2usize]), Variant1(SignalRef), } -impl From<&GraticuleTransformStepMinor> for GraticuleTransformStepMinor { +impl ::std::convert::From<&GraticuleTransformStepMinor> for GraticuleTransformStepMinor { fn from(value: &GraticuleTransformStepMinor) -> Self { value.clone() } } -impl Default for GraticuleTransformStepMinor { +impl ::std::default::Default for GraticuleTransformStepMinor { fn default() -> Self { GraticuleTransformStepMinor::Variant0([ GraticuleTransformStepMinorVariant0Item::Variant0(10_f64), @@ -38401,12 +38795,14 @@ impl Default for GraticuleTransformStepMinor { ]) } } -impl From<[GraticuleTransformStepMinorVariant0Item; 2usize]> for GraticuleTransformStepMinor { +impl ::std::convert::From<[GraticuleTransformStepMinorVariant0Item; 2usize]> + for GraticuleTransformStepMinor +{ fn from(value: [GraticuleTransformStepMinorVariant0Item; 2usize]) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformStepMinor { +impl ::std::convert::From for GraticuleTransformStepMinor { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38434,17 +38830,19 @@ pub enum GraticuleTransformStepMinorVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&GraticuleTransformStepMinorVariant0Item> for GraticuleTransformStepMinorVariant0Item { +impl ::std::convert::From<&GraticuleTransformStepMinorVariant0Item> + for GraticuleTransformStepMinorVariant0Item +{ fn from(value: &GraticuleTransformStepMinorVariant0Item) -> Self { value.clone() } } -impl From for GraticuleTransformStepMinorVariant0Item { +impl ::std::convert::From for GraticuleTransformStepMinorVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformStepMinorVariant0Item { +impl ::std::convert::From for GraticuleTransformStepMinorVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38472,17 +38870,19 @@ pub enum GraticuleTransformStepVariant0Item { Variant0(f64), Variant1(SignalRef), } -impl From<&GraticuleTransformStepVariant0Item> for GraticuleTransformStepVariant0Item { +impl ::std::convert::From<&GraticuleTransformStepVariant0Item> + for GraticuleTransformStepVariant0Item +{ fn from(value: &GraticuleTransformStepVariant0Item) -> Self { value.clone() } } -impl From for GraticuleTransformStepVariant0Item { +impl ::std::convert::From for GraticuleTransformStepVariant0Item { fn from(value: f64) -> Self { Self::Variant0(value) } } -impl From for GraticuleTransformStepVariant0Item { +impl ::std::convert::From for GraticuleTransformStepVariant0Item { fn from(value: SignalRef) -> Self { Self::Variant1(value) } @@ -38515,7 +38915,7 @@ pub enum GraticuleTransformType { #[serde(rename = "graticule")] Graticule, } -impl From<&GraticuleTransformType> for GraticuleTransformType { +impl ::std::convert::From<&GraticuleTransformType> for GraticuleTransformType { fn from(value: &GraticuleTransformType) -> Self { value.clone() } @@ -38527,7 +38927,7 @@ impl ::std::fmt::Display for GraticuleTransformType { } } } -impl std::str::FromStr for GraticuleTransformType { +impl ::std::str::FromStr for GraticuleTransformType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -38536,13 +38936,13 @@ impl std::str::FromStr for GraticuleTransformType { } } } -impl std::convert::TryFrom<&str> for GraticuleTransformType { +impl ::std::convert::TryFrom<&str> for GraticuleTransformType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } -impl std::convert::TryFrom<&::std::string::String> for GraticuleTransformType { +impl ::std::convert::TryFrom<&::std::string::String> for GraticuleTransformType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -38550,7 +38950,7 @@ impl std::convert::TryFrom<&::std::string::String> for GraticuleTransformType { value.parse() } } -impl std::convert::TryFrom<::std::string::String> for GraticuleTransformType { +impl ::std::convert::TryFrom<::std::string::String> for GraticuleTransformType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -38596,11 +38996,20 @@ pub struct GuideEncode { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub style: ::std::option::Option