diff --git a/cargo-typify/tests/outputs/builder.rs b/cargo-typify/tests/outputs/builder.rs index 5ad371e1..84fb4400 100644 --- a/cargo-typify/tests/outputs/builder.rs +++ b/cargo-typify/tests/outputs/builder.rs @@ -182,9 +182,9 @@ impl Veggie { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Veggies { - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub fruits: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { diff --git a/cargo-typify/tests/outputs/derive.rs b/cargo-typify/tests/outputs/derive.rs index 4cf5c2bf..3e9bbc49 100644 --- a/cargo-typify/tests/outputs/derive.rs +++ b/cargo-typify/tests/outputs/derive.rs @@ -177,9 +177,9 @@ impl From<&Veggie> for Veggie { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, ExtraDerive)] pub struct Veggies { - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub fruits: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { diff --git a/cargo-typify/tests/outputs/multi_derive.rs b/cargo-typify/tests/outputs/multi_derive.rs index f1920dff..862849b0 100644 --- a/cargo-typify/tests/outputs/multi_derive.rs +++ b/cargo-typify/tests/outputs/multi_derive.rs @@ -185,9 +185,9 @@ impl From<&Veggie> for Veggie { :: serde :: Deserialize, :: serde :: Serialize, AnotherDerive, Clone, Debug, ExtraDerive, )] pub struct Veggies { - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub fruits: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { diff --git a/cargo-typify/tests/outputs/no-builder.rs b/cargo-typify/tests/outputs/no-builder.rs index 55d67dad..6f2637fb 100644 --- a/cargo-typify/tests/outputs/no-builder.rs +++ b/cargo-typify/tests/outputs/no-builder.rs @@ -177,9 +177,9 @@ impl From<&Veggie> for Veggie { #[doc = r" "] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Veggies { - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub fruits: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub vegetables: ::std::vec::Vec, } impl From<&Veggies> for Veggies { diff --git a/typify-impl/Cargo.toml b/typify-impl/Cargo.toml index e0d3f23d..fcfa6657 100644 --- a/typify-impl/Cargo.toml +++ b/typify-impl/Cargo.toml @@ -17,7 +17,7 @@ schemars = "0.8.21" semver = "1.0.23" serde = "1.0.215" serde_json = "1.0.133" -syn = { version = "2.0.89", features = ["full", "visit-mut"] } +syn = { version = "2.0.89", features = ["full"] } thiserror = "2.0.3" unicode-ident = "1.0.14" @@ -29,5 +29,5 @@ paste = "1.0.15" rustfmt-wrapper = "0.2.1" schema = "0.1.0" schemars = { version = "0.8.21", features = ["uuid1", "impl_json_schema"] } -syn = { version = "2.0.89", features = ["full", "extra-traits"] } +syn = { version = "2.0.89", features = ["full", "extra-traits", "visit-mut"] } uuid = "1.11.0" diff --git a/typify-impl/src/structs.rs b/typify-impl/src/structs.rs index d92f5dd2..5f8dfb47 100644 --- a/typify-impl/src/structs.rs +++ b/typify-impl/src/structs.rs @@ -373,12 +373,12 @@ pub(crate) fn generate_serde_attr( let default_fn = match (state, &prop_type.details) { (StructPropertyState::Optional, TypeEntryDetails::Option(_)) => { serde_options.push(quote! { default }); - serde_options.push(quote! { skip_serializing_if = "std::option::Option::is_none" }); + serde_options.push(quote! { skip_serializing_if = "::std::option::Option::is_none" }); DefaultFunction::Default } (StructPropertyState::Optional, TypeEntryDetails::Vec(_)) => { serde_options.push(quote! { default }); - serde_options.push(quote! { skip_serializing_if = "std::vec::Vec::is_empty" }); + serde_options.push(quote! { skip_serializing_if = "::std::vec::Vec::is_empty" }); DefaultFunction::Default } (StructPropertyState::Optional, TypeEntryDetails::Map(key_id, value_id)) => { diff --git a/typify-impl/src/test_util.rs b/typify-impl/src/test_util.rs index 193f14b1..419eeae1 100644 --- a/typify-impl/src/test_util.rs +++ b/typify-impl/src/test_util.rs @@ -3,7 +3,7 @@ use std::{any::type_name, collections::HashSet}; use proc_macro2::TokenStream; -use quote::{quote, ToTokens}; +use quote::ToTokens; use rustfmt_wrapper::rustfmt; use schema::Schema; use schemars::{schema_for, JsonSchema}; diff --git a/typify-impl/tests/github.out b/typify-impl/tests/github.out index 7a5abe3c..1bf4a317 100644 --- a/typify-impl/tests/github.out +++ b/typify-impl/tests/github.out @@ -110,15 +110,15 @@ pub mod error { pub struct AlertInstance { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: ::std::string::String, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub classifications: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub location: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] @@ -162,15 +162,15 @@ impl From<&AlertInstance> for AlertInstance { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstanceLocation { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_line: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub path: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } impl From<&AlertInstanceLocation> for AlertInstanceLocation { @@ -197,7 +197,7 @@ impl From<&AlertInstanceLocation> for AlertInstanceLocation { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstanceMessage { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } impl From<&AlertInstanceMessage> for AlertInstanceMessage { @@ -659,7 +659,7 @@ pub struct App { pub created_at: chrono::DateTime, pub description: ::std::option::Option<::std::string::String>, #[doc = "The list of events for the GitHub app"] - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub events: ::std::vec::Vec, pub external_url: ::std::string::String, pub html_url: ::std::string::String, @@ -669,10 +669,10 @@ pub struct App { pub name: ::std::string::String, pub node_id: ::std::string::String, pub owner: User, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub permissions: ::std::option::Option, #[doc = "The slug name of the GitHub app"] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub slug: ::std::option::Option<::std::string::String>, pub updated_at: chrono::DateTime, } @@ -1223,75 +1223,75 @@ impl std::convert::TryFrom<::std::string::String> for AppEventsItem { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AppPermissions { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub actions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub checks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub content_references: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub contents: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub emails: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub environments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub issues: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub members: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub metadata: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_plan: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_self_hosted_runners: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_user_blocking: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pull_requests: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secret_scanning_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_scanning_alert: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub single_file: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub statuses: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub team_discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub vulnerability_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } impl From<&AppPermissions> for AppPermissions { @@ -4458,9 +4458,9 @@ impl std::convert::TryFrom<::std::string::String> #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleCreated { pub action: BranchProtectionRuleCreatedAction, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub rule: BranchProtectionRule, @@ -4590,9 +4590,9 @@ impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleCreate #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleDeleted { pub action: BranchProtectionRuleDeletedAction, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub rule: BranchProtectionRule, @@ -4758,9 +4758,9 @@ impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleDelete pub struct BranchProtectionRuleEdited { pub action: BranchProtectionRuleEditedAction, pub changes: BranchProtectionRuleEditedChanges, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub rule: BranchProtectionRule, @@ -4887,10 +4887,10 @@ impl std::convert::TryFrom<::std::string::String> for BranchProtectionRuleEdited #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEditedChanges { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub authorized_actor_names: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub authorized_actors_only: ::std::option::Option, } @@ -5915,13 +5915,13 @@ impl std::convert::TryFrom<::std::string::String> pub struct CheckRunCompleted { pub action: CheckRunCompletedAction, pub check_run: CheckRunCompletedCheckRun, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, #[doc = "The action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub requested_action: ::std::option::Option, pub sender: User, } @@ -6248,7 +6248,7 @@ pub struct CheckRunCompletedCheckRun { pub completed_at: ::std::string::String, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub details_url: ::std::option::Option<::std::string::String>, pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] @@ -6258,7 +6258,7 @@ pub struct CheckRunCompletedCheckRun { pub id: i64, #[doc = "The name of the check run."] pub name: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunCompletedCheckRunOutput, pub pull_requests: ::std::vec::Vec, @@ -6386,14 +6386,14 @@ pub struct CheckRunCompletedCheckRunCheckSuite { pub before: ::std::option::Option<::std::string::String>, pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployment: ::std::option::Option, pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: ::std::vec::Vec, @@ -6757,7 +6757,7 @@ pub struct CheckRunCompletedCheckRunOutput { pub annotations_url: ::std::string::String, pub summary: ::std::option::Option<::std::string::String>, pub text: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCompletedCheckRunOutput> for CheckRunCompletedCheckRunOutput { @@ -6860,7 +6860,7 @@ impl std::convert::TryFrom<::std::string::String> for CheckRunCompletedCheckRunS #[serde(deny_unknown_fields)] pub struct CheckRunCompletedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedAction { @@ -7161,13 +7161,13 @@ impl From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedActio pub struct CheckRunCreated { pub action: CheckRunCreatedAction, pub check_run: CheckRunCreatedCheckRun, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, #[doc = "The action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub requested_action: ::std::option::Option, pub sender: User, } @@ -7499,7 +7499,7 @@ pub struct CheckRunCreatedCheckRun { pub completed_at: ::std::option::Option<::std::string::String>, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub details_url: ::std::option::Option<::std::string::String>, pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] @@ -7509,7 +7509,7 @@ pub struct CheckRunCreatedCheckRun { pub id: i64, #[doc = "The name of the check run."] pub name: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunCreatedCheckRunOutput, pub pull_requests: ::std::vec::Vec, @@ -7637,14 +7637,14 @@ pub struct CheckRunCreatedCheckRunCheckSuite { pub before: ::std::option::Option<::std::string::String>, pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployment: ::std::option::Option, pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: ::std::vec::Vec, @@ -8002,7 +8002,7 @@ pub struct CheckRunCreatedCheckRunOutput { pub annotations_url: ::std::string::String, pub summary: ::std::option::Option<::std::string::String>, pub text: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCreatedCheckRunOutput> for CheckRunCreatedCheckRunOutput { @@ -8115,7 +8115,7 @@ impl std::convert::TryFrom<::std::string::String> for CheckRunCreatedCheckRunSta #[serde(deny_unknown_fields)] pub struct CheckRunCreatedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunCreatedRequestedAction> for CheckRunCreatedRequestedAction { @@ -8726,9 +8726,9 @@ impl From<&CheckRunPullRequestHead> for CheckRunPullRequestHead { pub struct CheckRunRequestedAction { pub action: CheckRunRequestedActionAction, pub check_run: CheckRunRequestedActionCheckRun, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub requested_action: CheckRunRequestedActionRequestedAction, @@ -9062,7 +9062,7 @@ pub struct CheckRunRequestedActionCheckRun { pub completed_at: ::std::option::Option<::std::string::String>, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub details_url: ::std::option::Option<::std::string::String>, pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] @@ -9072,7 +9072,7 @@ pub struct CheckRunRequestedActionCheckRun { pub id: i64, #[doc = "The name of the check run."] pub name: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunRequestedActionCheckRunOutput, pub pull_requests: ::std::vec::Vec, @@ -9200,14 +9200,14 @@ pub struct CheckRunRequestedActionCheckRunCheckSuite { pub before: ::std::option::Option<::std::string::String>, pub conclusion: ::std::option::Option, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployment: ::std::option::Option, pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: ::std::vec::Vec, @@ -9579,7 +9579,7 @@ pub struct CheckRunRequestedActionCheckRunOutput { pub annotations_url: ::std::string::String, pub summary: ::std::option::Option<::std::string::String>, pub text: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRequestedActionCheckRunOutput> for CheckRunRequestedActionCheckRunOutput { @@ -9692,7 +9692,7 @@ impl std::convert::TryFrom<::std::string::String> for CheckRunRequestedActionChe #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRequestedActionRequestedAction> for CheckRunRequestedActionRequestedAction { @@ -9982,13 +9982,13 @@ impl From<&CheckRunRequestedActionRequestedAction> for CheckRunRequestedActionRe pub struct CheckRunRerequested { pub action: CheckRunRerequestedAction, pub check_run: CheckRunRerequestedCheckRun, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, #[doc = "The action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub requested_action: ::std::option::Option, pub sender: User, } @@ -10309,7 +10309,7 @@ pub struct CheckRunRerequestedCheckRun { pub completed_at: ::std::string::String, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."] pub conclusion: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub details_url: ::std::option::Option<::std::string::String>, pub external_id: ::std::string::String, #[doc = "The SHA of the commit that is being checked."] @@ -10319,7 +10319,7 @@ pub struct CheckRunRerequestedCheckRun { pub id: i64, #[doc = "The name of the check."] pub name: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, pub output: CheckRunRerequestedCheckRunOutput, pub pull_requests: ::std::vec::Vec, @@ -10441,14 +10441,14 @@ pub struct CheckRunRerequestedCheckRunCheckSuite { pub before: ::std::option::Option<::std::string::String>, pub conclusion: CheckRunRerequestedCheckRunCheckSuiteConclusion, pub created_at: chrono::DateTime, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployment: ::std::option::Option, pub head_branch: ::std::option::Option<::std::string::String>, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: ::std::string::String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: ::std::vec::Vec, @@ -10802,7 +10802,7 @@ pub struct CheckRunRerequestedCheckRunOutput { pub annotations_url: ::std::string::String, pub summary: ::std::option::Option<::std::string::String>, pub text: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRerequestedCheckRunOutput> for CheckRunRerequestedCheckRunOutput { @@ -10905,7 +10905,7 @@ impl std::convert::TryFrom<::std::string::String> for CheckRunRerequestedCheckRu #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub identifier: ::std::option::Option<::std::string::String>, } impl From<&CheckRunRerequestedRequestedAction> for CheckRunRerequestedRequestedAction { @@ -11072,9 +11072,9 @@ impl From<&CheckRunRerequestedRequestedAction> for CheckRunRerequestedRequestedA pub struct CheckSuiteCompleted { pub action: CheckSuiteCompletedAction, pub check_suite: CheckSuiteCompletedCheckSuite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -11706,9 +11706,9 @@ impl From for CheckSuiteEvent { pub struct CheckSuiteRequested { pub action: CheckSuiteRequestedAction, pub check_suite: CheckSuiteRequestedCheckSuite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -12293,9 +12293,9 @@ impl std::convert::TryFrom<::std::string::String> for CheckSuiteRequestedCheckSu pub struct CheckSuiteRerequested { pub action: CheckSuiteRerequestedAction, pub check_suite: CheckSuiteRerequestedCheckSuite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -12920,9 +12920,9 @@ pub struct CodeScanningAlertAppearedInBranch { pub alert: CodeScanningAlertAppearedInBranchAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] @@ -13169,7 +13169,7 @@ pub struct CodeScanningAlertAppearedInBranchAlert { #[doc = "The GitHub URL of the alert resource."] pub html_url: ::std::string::String, pub instances: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, @@ -13771,9 +13771,9 @@ pub struct CodeScanningAlertClosedByUser { pub alert: CodeScanningAlertClosedByUserAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] @@ -14041,7 +14041,7 @@ pub struct CodeScanningAlertClosedByUserAlert { #[doc = "The GitHub URL of the alert resource."] pub html_url: ::std::string::String, pub instances: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, @@ -14180,15 +14180,15 @@ impl std::convert::TryFrom<::std::string::String> pub struct CodeScanningAlertClosedByUserAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: ::std::string::String, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub classifications: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub location: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] @@ -14233,15 +14233,15 @@ impl From<&CodeScanningAlertClosedByUserAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_line: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub path: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> @@ -14270,7 +14270,7 @@ impl From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemMessage> @@ -14415,13 +14415,13 @@ impl std::convert::TryFrom<::std::string::String> pub struct CodeScanningAlertClosedByUserAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] pub severity: ::std::option::Option, @@ -14637,7 +14637,7 @@ impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertClosedByU #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertTool { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: ::std::string::String, @@ -14863,9 +14863,9 @@ pub struct CodeScanningAlertCreated { pub alert: CodeScanningAlertCreatedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] @@ -15128,7 +15128,7 @@ pub struct CodeScanningAlertCreatedAlert { #[doc = "The GitHub URL of the alert resource."] pub html_url: ::std::string::String, pub instances: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, @@ -15178,15 +15178,15 @@ impl From<&CodeScanningAlertCreatedAlert> for CodeScanningAlertCreatedAlert { pub struct CodeScanningAlertCreatedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: ::std::string::String, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub classifications: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub location: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] @@ -15231,15 +15231,15 @@ impl From<&CodeScanningAlertCreatedAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_line: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub path: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertCreatedAlertInstancesItemLocation> @@ -15268,7 +15268,7 @@ impl From<&CodeScanningAlertCreatedAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertCreatedAlertInstancesItemMessage> @@ -15418,13 +15418,13 @@ impl std::convert::TryFrom<::std::string::String> pub struct CodeScanningAlertCreatedAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] pub severity: ::std::option::Option, @@ -15641,7 +15641,7 @@ impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertCreatedAl #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertTool { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: ::std::string::String, @@ -15963,9 +15963,9 @@ pub struct CodeScanningAlertFixed { pub alert: CodeScanningAlertFixedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] @@ -16250,9 +16250,9 @@ pub struct CodeScanningAlertFixedAlert { #[doc = "The GitHub URL of the alert resource."] pub html_url: ::std::string::String, pub instances: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub instances_url: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, @@ -16386,15 +16386,15 @@ impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAler pub struct CodeScanningAlertFixedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: ::std::string::String, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub classifications: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub location: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] @@ -16437,15 +16437,15 @@ impl From<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedA #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_line: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub path: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertFixedAlertInstancesItemLocation> @@ -16474,7 +16474,7 @@ impl From<&CodeScanningAlertFixedAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertFixedAlertInstancesItemMessage> @@ -16619,13 +16619,13 @@ impl std::convert::TryFrom<::std::string::String> pub struct CodeScanningAlertFixedAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] pub severity: ::std::option::Option, @@ -16835,7 +16835,7 @@ impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertFixedAler #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertTool { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: ::std::string::String, @@ -17061,9 +17061,9 @@ pub struct CodeScanningAlertReopened { pub alert: CodeScanningAlertReopenedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] @@ -17326,7 +17326,7 @@ pub struct CodeScanningAlertReopenedAlert { #[doc = "The GitHub URL of the alert resource."] pub html_url: ::std::string::String, pub instances: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, @@ -17375,15 +17375,15 @@ impl From<&CodeScanningAlertReopenedAlert> for CodeScanningAlertReopenedAlert { pub struct CodeScanningAlertReopenedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: ::std::string::String, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub classifications: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub location: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] @@ -17428,15 +17428,15 @@ impl From<&CodeScanningAlertReopenedAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_line: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub path: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertReopenedAlertInstancesItemLocation> @@ -17465,7 +17465,7 @@ impl From<&CodeScanningAlertReopenedAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertReopenedAlertInstancesItemMessage> @@ -17610,13 +17610,13 @@ impl std::convert::TryFrom<::std::string::String> pub struct CodeScanningAlertReopenedAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub full_description: ::std::option::Option<::std::string::String>, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, #[doc = "The severity of the alert."] pub severity: ::std::option::Option, @@ -17838,7 +17838,7 @@ impl std::convert::TryFrom<::std::string::String> for CodeScanningAlertReopenedA #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertTool { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub guid: ::std::option::Option<::std::string::String>, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: ::std::string::String, @@ -18044,9 +18044,9 @@ pub struct CodeScanningAlertReopenedByUser { pub alert: CodeScanningAlertReopenedByUserAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] @@ -18289,7 +18289,7 @@ pub struct CodeScanningAlertReopenedByUserAlert { #[doc = "The GitHub URL of the alert resource."] pub html_url: ::std::string::String, pub instances: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub most_recent_instance: ::std::option::Option, #[doc = "The code scanning alert number."] pub number: i64, @@ -18338,15 +18338,15 @@ impl From<&CodeScanningAlertReopenedByUserAlert> for CodeScanningAlertReopenedBy pub struct CodeScanningAlertReopenedByUserAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: ::std::string::String, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub classifications: ::std::vec::Vec<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub commit_sha: ::std::option::Option<::std::string::String>, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub location: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub message: ::std::option::Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] @@ -18391,15 +18391,15 @@ impl From<&CodeScanningAlertReopenedByUserAlertInstancesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItemLocation { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub end_line: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub path: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_column: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub start_line: ::std::option::Option, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> @@ -18428,7 +18428,7 @@ impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItemMessage { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub text: ::std::option::Option<::std::string::String>, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemMessage> @@ -19012,9 +19012,9 @@ pub struct CommitCommentCreated { #[doc = "The action performed. Can be `created`."] pub action: CommitCommentCreatedAction, pub comment: CommitCommentCreatedComment, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -19351,13 +19351,13 @@ impl From<&CommitSimple> for CommitSimple { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Committer { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub date: ::std::option::Option>, #[doc = "The git author's email address."] pub email: ::std::option::Option<::std::string::String>, #[doc = "The git author's name."] pub name: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub username: ::std::option::Option<::std::string::String>, } impl From<&Committer> for Committer { @@ -19432,7 +19432,7 @@ pub struct ContentReferenceCreated { pub action: ContentReferenceCreatedAction, pub content_reference: ContentReferenceCreatedContentReference, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -19660,11 +19660,11 @@ impl From for ContentReferenceEvent { pub struct CreateEvent { #[doc = "The repository's current description."] pub description: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, #[doc = "The name of the repository's default branch (usually `main`)."] pub master_branch: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The pusher type for the event. Can be either `user` or a deploy key."] pub pusher_type: ::std::string::String, @@ -19813,9 +19813,9 @@ impl std::convert::TryFrom<::std::string::String> for CreateEventRefType { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeleteEvent { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The pusher type for the event. Can be either `user` or a deploy key."] pub pusher_type: ::std::string::String, @@ -19991,10 +19991,10 @@ impl std::convert::TryFrom<::std::string::String> for DeleteEventRefType { #[serde(deny_unknown_fields)] pub struct DeployKeyCreated { pub action: DeployKeyCreatedAction, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, pub key: DeployKeyCreatedKey, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -20218,10 +20218,10 @@ impl From<&DeployKeyCreatedKey> for DeployKeyCreatedKey { #[serde(deny_unknown_fields)] pub struct DeployKeyDeleted { pub action: DeployKeyDeletedAction, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, pub key: DeployKeyDeletedKey, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -20537,9 +20537,9 @@ impl From for DeployKeyEvent { pub struct DeploymentCreated { pub action: DeploymentCreatedAction, pub deployment: DeploymentCreatedDeployment, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -20724,7 +20724,7 @@ pub struct DeploymentCreatedDeployment { pub node_id: ::std::string::String, pub original_environment: ::std::string::String, pub payload: DeploymentCreatedDeploymentPayload, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub performed_via_github_app: ::std::option::Option, #[serde(rename = "ref")] pub ref_: ::std::string::String, @@ -20999,9 +20999,9 @@ pub struct DeploymentStatusCreated { pub action: DeploymentStatusCreatedAction, pub deployment: DeploymentStatusCreatedDeployment, pub deployment_status: DeploymentStatusCreatedDeploymentStatus, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -21310,7 +21310,7 @@ pub struct DeploymentStatusCreatedDeploymentStatus { pub environment: ::std::string::String, pub id: i64, pub node_id: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub performed_via_github_app: ::std::option::Option, pub repository_url: ::std::string::String, #[doc = "The new state. Can be `pending`, `success`, `failure`, or `error`."] @@ -21697,9 +21697,9 @@ pub struct DiscussionAnswered { pub action: DiscussionAnsweredAction, pub answer: DiscussionAnsweredAnswer, pub discussion: DiscussionAnsweredDiscussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -22076,7 +22076,7 @@ impl From<&DiscussionAnsweredDiscussion> for DiscussionAnsweredDiscussion { #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussionAnswerChosenBy { pub avatar_url: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub email: ::std::option::Option<::std::string::String>, pub events_url: ::std::string::String, pub followers_url: ::std::string::String, @@ -22086,7 +22086,7 @@ pub struct DiscussionAnsweredDiscussionAnswerChosenBy { pub html_url: ::std::string::String, pub id: i64, pub login: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, pub node_id: ::std::string::String, pub organizations_url: ::std::string::String, @@ -22528,9 +22528,9 @@ pub struct DiscussionCategoryChanged { pub action: DiscussionCategoryChangedAction, pub changes: DiscussionCategoryChangedChanges, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -22945,7 +22945,7 @@ pub struct DiscussionCommentCreated { pub comment: DiscussionCommentCreatedComment, pub discussion: Discussion, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -23224,7 +23224,7 @@ pub struct DiscussionCommentDeleted { pub comment: DiscussionCommentDeletedComment, pub discussion: Discussion, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -23526,7 +23526,7 @@ pub struct DiscussionCommentEdited { pub comment: DiscussionCommentEditedComment, pub discussion: Discussion, pub installation: InstallationLite, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -23895,9 +23895,9 @@ impl From for DiscussionCommentEvent { pub struct DiscussionCreated { pub action: DiscussionCreatedAction, pub discussion: DiscussionCreatedDiscussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -24250,9 +24250,9 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionCreatedDiscussio pub struct DiscussionDeleted { pub action: DiscussionDeletedAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -24410,12 +24410,12 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionDeletedAction { #[serde(deny_unknown_fields)] pub struct DiscussionEdited { pub action: DiscussionEditedAction, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub changes: ::std::option::Option, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -24537,9 +24537,9 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionEditedAction { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChanges { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub body: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub title: ::std::option::Option, } impl From<&DiscussionEditedChanges> for DiscussionEditedChanges { @@ -24793,10 +24793,10 @@ impl From for DiscussionEvent { pub struct DiscussionLabeled { pub action: DiscussionLabeledAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, pub label: Label, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -24951,9 +24951,9 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionLabeledAction { pub struct DiscussionLocked { pub action: DiscussionLockedAction, pub discussion: DiscussionLockedDiscussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -25288,9 +25288,9 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionLockedDiscussion pub struct DiscussionPinned { pub action: DiscussionPinnedAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -25519,9 +25519,9 @@ pub struct DiscussionTransferred { pub action: DiscussionTransferredAction, pub changes: DiscussionTransferredChanges, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -25783,10 +25783,10 @@ impl From<&DiscussionTransferredChanges> for DiscussionTransferredChanges { pub struct DiscussionUnanswered { pub action: DiscussionUnansweredAction, pub discussion: DiscussionUnansweredDiscussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, pub old_answer: DiscussionUnansweredOldAnswer, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -26238,10 +26238,10 @@ impl From<&DiscussionUnansweredOldAnswer> for DiscussionUnansweredOldAnswer { pub struct DiscussionUnlabeled { pub action: DiscussionUnlabeledAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, pub label: Label, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -26396,9 +26396,9 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionUnlabeledAction pub struct DiscussionUnlocked { pub action: DiscussionUnlockedAction, pub discussion: DiscussionUnlockedDiscussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -26733,9 +26733,9 @@ impl std::convert::TryFrom<::std::string::String> for DiscussionUnlockedDiscussi pub struct DiscussionUnpinned { pub action: DiscussionUnpinnedAction, pub discussion: Discussion, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -27389,9 +27389,9 @@ impl From for Everything { #[serde(deny_unknown_fields)] pub struct ForkEvent { pub forkee: ForkEventForkee, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, pub repository: Repository, pub sender: User, @@ -27434,7 +27434,7 @@ pub struct ForkEventForkee { #[serde(default)] pub allow_auto_merge: bool, #[doc = "Whether to allow private forks"] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub allow_forking: ::std::option::Option, #[doc = "Whether to allow merge commits for pull requests."] #[serde(default = "defaults::default_bool::")] @@ -27467,7 +27467,7 @@ pub struct ForkEventForkee { pub deployments_url: ::std::string::String, pub description: ::std::option::Option<::std::string::String>, #[doc = "Returns whether or not this repository is disabled."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub disabled: ::std::option::Option, pub downloads_url: ::std::string::String, pub events_url: ::std::string::String, @@ -27502,7 +27502,7 @@ pub struct ForkEventForkee { pub language: ::std::option::Option<::std::string::String>, pub languages_url: ::std::string::String, pub license: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub master_branch: ::std::option::Option<::std::string::String>, pub merges_url: ::std::string::String, pub milestones_url: ::std::string::String, @@ -27513,21 +27513,21 @@ pub struct ForkEventForkee { pub notifications_url: ::std::string::String, pub open_issues: i64, pub open_issues_count: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option<::std::string::String>, pub owner: User, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub permissions: ::std::option::Option, #[doc = "Whether the repository is private or public."] pub private: bool, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub public: ::std::option::Option, pub pulls_url: ::std::string::String, pub pushed_at: ForkEventForkeePushedAt, pub releases_url: ::std::string::String, pub size: i64, pub ssh_url: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub stargazers: ::std::option::Option, pub stargazers_count: i64, pub stargazers_url: ::std::string::String, @@ -27666,11 +27666,11 @@ impl From> for ForkEventForkeeCreatedAt { #[serde(deny_unknown_fields)] pub struct ForkEventForkeePermissions { pub admin: bool, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub maintain: ::std::option::Option, pub pull: bool, pub push: bool, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub triage: ::std::option::Option, } impl From<&ForkEventForkeePermissions> for ForkEventForkeePermissions { @@ -28009,7 +28009,7 @@ pub struct GithubOrg { pub html_url: ::std::string::String, pub id: i64, pub login: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, pub node_id: ::std::string::String, pub organizations_url: ::std::string::String, @@ -28109,9 +28109,9 @@ impl From<&GithubOrg> for GithubOrg { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GollumEvent { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub installation: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization: ::std::option::Option, #[doc = "The pages that were updated."] pub pages: ::std::vec::Vec, @@ -28712,11 +28712,11 @@ pub struct Installation { pub access_tokens_url: ::std::string::String, pub account: User, pub app_id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub app_slug: ::std::option::Option<::std::string::String>, pub created_at: InstallationCreatedAt, pub events: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub has_multiple_single_files: ::std::option::Option, pub html_url: ::std::string::String, #[doc = "The ID of the installation."] @@ -28726,7 +28726,7 @@ pub struct Installation { #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositorySelection, pub single_file_name: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub single_file_paths: ::std::vec::Vec<::std::string::String>, pub suspended_at: ::std::option::Option>, pub suspended_by: ::std::option::Option, @@ -28816,9 +28816,9 @@ pub struct InstallationCreated { pub action: InstallationCreatedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub repositories: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub requester: ::std::option::Option, pub sender: User, } @@ -29111,7 +29111,7 @@ pub struct InstallationDeleted { pub action: InstallationDeletedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), @@ -29721,7 +29721,7 @@ pub struct InstallationNewPermissionsAccepted { pub action: InstallationNewPermissionsAcceptedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), @@ -30122,79 +30122,79 @@ impl From<&InstallationNewPermissionsAcceptedRepositoriesItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationPermissions { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub actions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub checks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub content_references: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub contents: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub emails: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub environments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub issues: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub members: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub metadata: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_plan: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_self_hosted_runners: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_user_blocking: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pull_requests: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secret_scanning_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_scanning_alert: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub single_file: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub statuses: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub team_discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub vulnerability_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } impl From<&InstallationPermissions> for InstallationPermissions { @@ -33233,18 +33233,18 @@ impl From<&InstallationRepositoriesAddedRepositoriesAddedItem> #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesAddedRepositoriesRemovedItem { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub full_name: ::std::option::Option<::std::string::String>, #[doc = "Unique identifier of the repository"] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub id: ::std::option::Option, #[doc = "The name of the repository."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub node_id: ::std::option::Option<::std::string::String>, #[doc = "Whether the repository is private or public."] - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub private: ::std::option::Option, } impl From<&InstallationRepositoriesAddedRepositoriesRemovedItem> @@ -33966,7 +33966,7 @@ pub struct InstallationSuspend { pub action: InstallationSuspendAction, pub installation: InstallationSuspendInstallation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), @@ -34086,11 +34086,11 @@ pub struct InstallationSuspendInstallation { pub access_tokens_url: ::std::string::String, pub account: User, pub app_id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub app_slug: ::std::option::Option<::std::string::String>, pub created_at: InstallationSuspendInstallationCreatedAt, pub events: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub has_multiple_single_files: ::std::option::Option, pub html_url: ::std::string::String, #[doc = "The ID of the installation."] @@ -34100,7 +34100,7 @@ pub struct InstallationSuspendInstallation { #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationSuspendInstallationRepositorySelection, pub single_file_name: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub single_file_paths: ::std::vec::Vec<::std::string::String>, pub suspended_at: chrono::DateTime, pub suspended_by: InstallationSuspendInstallationSuspendedBy, @@ -34750,95 +34750,95 @@ impl std::convert::TryFrom<::std::string::String> for InstallationSuspendInstall #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallationPermissions { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub actions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub checks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub content_references: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub contents: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub emails: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub environments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub issues: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub members: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub metadata: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_plan: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_self_hosted_runners: ::std::option::Option< InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners, >, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_user_blocking: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pull_requests: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secret_scanning_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_scanning_alert: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub single_file: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub statuses: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub team_discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub vulnerability_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } impl From<&InstallationSuspendInstallationPermissions> @@ -37984,7 +37984,7 @@ impl std::convert::TryFrom<::std::string::String> #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallationSuspendedBy { pub avatar_url: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub email: ::std::option::Option<::std::string::String>, pub events_url: ::std::string::String, pub followers_url: ::std::string::String, @@ -37994,7 +37994,7 @@ pub struct InstallationSuspendInstallationSuspendedBy { pub html_url: ::std::string::String, pub id: i64, pub login: ::std::string::String, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub name: ::std::option::Option<::std::string::String>, pub node_id: ::std::string::String, pub organizations_url: ::std::string::String, @@ -38483,7 +38483,7 @@ pub struct InstallationUnsuspend { pub action: InstallationUnsuspendAction, pub installation: InstallationUnsuspendInstallation, #[doc = "An array of repository objects that the installation can access."] - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub repositories: ::std::vec::Vec, #[serde(default)] pub requester: (), @@ -38602,11 +38602,11 @@ pub struct InstallationUnsuspendInstallation { pub access_tokens_url: ::std::string::String, pub account: User, pub app_id: i64, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub app_slug: ::std::option::Option<::std::string::String>, pub created_at: InstallationUnsuspendInstallationCreatedAt, pub events: ::std::vec::Vec, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub has_multiple_single_files: ::std::option::Option, pub html_url: ::std::string::String, #[doc = "The ID of the installation."] @@ -38616,7 +38616,7 @@ pub struct InstallationUnsuspendInstallation { #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationUnsuspendInstallationRepositorySelection, pub single_file_name: ::std::option::Option<::std::string::String>, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub single_file_paths: ::std::vec::Vec<::std::string::String>, pub suspended_at: (), pub suspended_by: (), @@ -39268,97 +39268,97 @@ impl std::convert::TryFrom<::std::string::String> for InstallationUnsuspendInsta #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendInstallationPermissions { - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub actions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub administration: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub checks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub content_references: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub contents: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub deployments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub emails: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub environments: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub issues: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub members: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub metadata: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_administration: ::std::option::Option< InstallationUnsuspendInstallationPermissionsOrganizationAdministration, >, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_plan: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_self_hosted_runners: ::std::option::Option< InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners, >, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub organization_user_blocking: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub packages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pages: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub pull_requests: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_hooks: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub repository_projects: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secret_scanning_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub secrets: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_events: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub security_scanning_alert: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub single_file: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub statuses: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub team_discussions: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub vulnerability_alerts: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub workflows: ::std::option::Option, } impl From<&InstallationUnsuspendInstallationPermissions> @@ -42884,7 +42884,7 @@ impl From for InstallationUpdatedAt { #[serde(deny_unknown_fields)] pub struct Issue { pub active_lock_reason: ::std::option::Option, - #[serde(default, skip_serializing_if = "std::option::Option::is_none")] + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub assignee: ::std::option::Option, pub assignees: ::std::vec::Vec, pub author_association: AuthorAssociation, @@ -42897,21 +42897,21 @@ pub struct Issue { pub events_url: ::std::string::String, pub html_url: ::std::string::String, pub id: i64, - #[serde(default, skip_serializing_if = "std::vec::Vec::is_empty")] + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] pub labels: ::std::vec::Vec