#[doc = r" Error types."] pub mod error { #[doc = r" Error from a TryFrom or FromStr implementation."] pub struct ConversionError(::std::borrow::Cow<'static, str>); impl ::std::error::Error for ConversionError {} impl ::std::fmt::Display for ConversionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> { ::std::fmt::Display::fmt(&self.0, f) } } impl ::std::fmt::Debug for ConversionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> { ::std::fmt::Debug::fmt(&self.0, f) } } impl From<&'static str> for ConversionError { fn from(value: &'static str) -> Self { Self(value.into()) } } impl From for ConversionError { fn from(value: String) -> Self { Self(value.into()) } } } #[doc = "AlertInstance"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Alert Instance\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"analysis_key\","] #[doc = " \"environment\","] #[doc = " \"ref\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"analysis_key\": {"] #[doc = " \"description\": \"Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"classifications\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"commit_sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"location\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"message\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"The full Git reference, formatted as `refs/heads/`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstance { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub classifications: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub commit_sha: Option, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] pub ref_: String, #[doc = "State of a code scanning alert."] pub state: AlertInstanceState, } impl From<&AlertInstance> for AlertInstance { fn from(value: &AlertInstance) -> Self { value.clone() } } #[doc = "AlertInstanceLocation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstanceLocation { #[serde(default, skip_serializing_if = "Option::is_none")] pub end_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub end_line: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_line: Option, } impl From<&AlertInstanceLocation> for AlertInstanceLocation { fn from(value: &AlertInstanceLocation) -> Self { value.clone() } } #[doc = "AlertInstanceMessage"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AlertInstanceMessage { #[serde(default, skip_serializing_if = "Option::is_none")] pub text: Option, } impl From<&AlertInstanceMessage> for AlertInstanceMessage { fn from(value: &AlertInstanceMessage) -> Self { value.clone() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AlertInstanceState { #[serde(rename = "open")] Open, #[serde(rename = "dismissed")] Dismissed, #[serde(rename = "fixed")] Fixed, } impl From<&AlertInstanceState> for AlertInstanceState { fn from(value: &AlertInstanceState) -> Self { value.clone() } } impl ::std::fmt::Display for AlertInstanceState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Dismissed => write!(f, "dismissed"), Self::Fixed => write!(f, "fixed"), } } } impl std::str::FromStr for AlertInstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AlertInstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AlertInstanceState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AlertInstanceState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"App\","] #[doc = " \"description\": \"GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"external_url\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"owner\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"events\": {"] #[doc = " \"description\": \"The list of events for the GitHub app\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"check_run\","] #[doc = " \"check_suite\","] #[doc = " \"code_scanning_alert\","] #[doc = " \"commit_comment\","] #[doc = " \"content_reference\","] #[doc = " \"create\","] #[doc = " \"delete\","] #[doc = " \"deployment\","] #[doc = " \"deployment_review\","] #[doc = " \"deployment_status\","] #[doc = " \"deploy_key\","] #[doc = " \"discussion\","] #[doc = " \"discussion_comment\","] #[doc = " \"fork\","] #[doc = " \"gollum\","] #[doc = " \"issues\","] #[doc = " \"issue_comment\","] #[doc = " \"label\","] #[doc = " \"member\","] #[doc = " \"membership\","] #[doc = " \"milestone\","] #[doc = " \"organization\","] #[doc = " \"org_block\","] #[doc = " \"page_build\","] #[doc = " \"project\","] #[doc = " \"project_card\","] #[doc = " \"project_column\","] #[doc = " \"public\","] #[doc = " \"pull_request\","] #[doc = " \"pull_request_review\","] #[doc = " \"pull_request_review_comment\","] #[doc = " \"push\","] #[doc = " \"registry_package\","] #[doc = " \"release\","] #[doc = " \"repository\","] #[doc = " \"repository_dispatch\","] #[doc = " \"secret_scanning_alert\","] #[doc = " \"star\","] #[doc = " \"status\","] #[doc = " \"team\","] #[doc = " \"team_add\","] #[doc = " \"watch\","] #[doc = " \"workflow_dispatch\","] #[doc = " \"workflow_run\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"external_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the GitHub app\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the GitHub app\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"owner\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"permissions\": {"] #[doc = " \"description\": \"The set of permissions for the GitHub app\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"actions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"checks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_references\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"contents\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"emails\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"issues\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"members\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"metadata\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_plan\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_self_hosted_runners\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_user_blocking\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secret_scanning_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_scanning_alert\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"statuses\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"team_discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"vulnerability_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"workflows\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"description\": \"The slug name of the GitHub app\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct App { pub created_at: chrono::DateTime, pub description: Option, #[doc = "The list of events for the GitHub app"] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub events: Vec, pub external_url: String, pub html_url: String, #[doc = "Unique identifier of the GitHub app"] pub id: i64, #[doc = "The name of the GitHub app"] pub name: String, pub node_id: String, pub owner: User, #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "The slug name of the GitHub app"] #[serde(default, skip_serializing_if = "Option::is_none")] pub slug: Option, pub updated_at: chrono::DateTime, } impl From<&App> for App { fn from(value: &App) -> Self { value.clone() } } #[doc = "AppEventsItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"check_run\","] #[doc = " \"check_suite\","] #[doc = " \"code_scanning_alert\","] #[doc = " \"commit_comment\","] #[doc = " \"content_reference\","] #[doc = " \"create\","] #[doc = " \"delete\","] #[doc = " \"deployment\","] #[doc = " \"deployment_review\","] #[doc = " \"deployment_status\","] #[doc = " \"deploy_key\","] #[doc = " \"discussion\","] #[doc = " \"discussion_comment\","] #[doc = " \"fork\","] #[doc = " \"gollum\","] #[doc = " \"issues\","] #[doc = " \"issue_comment\","] #[doc = " \"label\","] #[doc = " \"member\","] #[doc = " \"membership\","] #[doc = " \"milestone\","] #[doc = " \"organization\","] #[doc = " \"org_block\","] #[doc = " \"page_build\","] #[doc = " \"project\","] #[doc = " \"project_card\","] #[doc = " \"project_column\","] #[doc = " \"public\","] #[doc = " \"pull_request\","] #[doc = " \"pull_request_review\","] #[doc = " \"pull_request_review_comment\","] #[doc = " \"push\","] #[doc = " \"registry_package\","] #[doc = " \"release\","] #[doc = " \"repository\","] #[doc = " \"repository_dispatch\","] #[doc = " \"secret_scanning_alert\","] #[doc = " \"star\","] #[doc = " \"status\","] #[doc = " \"team\","] #[doc = " \"team_add\","] #[doc = " \"watch\","] #[doc = " \"workflow_dispatch\","] #[doc = " \"workflow_run\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppEventsItem { #[serde(rename = "check_run")] CheckRun, #[serde(rename = "check_suite")] CheckSuite, #[serde(rename = "code_scanning_alert")] CodeScanningAlert, #[serde(rename = "commit_comment")] CommitComment, #[serde(rename = "content_reference")] ContentReference, #[serde(rename = "create")] Create, #[serde(rename = "delete")] Delete, #[serde(rename = "deployment")] Deployment, #[serde(rename = "deployment_review")] DeploymentReview, #[serde(rename = "deployment_status")] DeploymentStatus, #[serde(rename = "deploy_key")] DeployKey, #[serde(rename = "discussion")] Discussion, #[serde(rename = "discussion_comment")] DiscussionComment, #[serde(rename = "fork")] Fork, #[serde(rename = "gollum")] Gollum, #[serde(rename = "issues")] Issues, #[serde(rename = "issue_comment")] IssueComment, #[serde(rename = "label")] Label, #[serde(rename = "member")] Member, #[serde(rename = "membership")] Membership, #[serde(rename = "milestone")] Milestone, #[serde(rename = "organization")] Organization, #[serde(rename = "org_block")] OrgBlock, #[serde(rename = "page_build")] PageBuild, #[serde(rename = "project")] Project, #[serde(rename = "project_card")] ProjectCard, #[serde(rename = "project_column")] ProjectColumn, #[serde(rename = "public")] Public, #[serde(rename = "pull_request")] PullRequest, #[serde(rename = "pull_request_review")] PullRequestReview, #[serde(rename = "pull_request_review_comment")] PullRequestReviewComment, #[serde(rename = "push")] Push, #[serde(rename = "registry_package")] RegistryPackage, #[serde(rename = "release")] Release, #[serde(rename = "repository")] Repository, #[serde(rename = "repository_dispatch")] RepositoryDispatch, #[serde(rename = "secret_scanning_alert")] SecretScanningAlert, #[serde(rename = "star")] Star, #[serde(rename = "status")] Status, #[serde(rename = "team")] Team, #[serde(rename = "team_add")] TeamAdd, #[serde(rename = "watch")] Watch, #[serde(rename = "workflow_dispatch")] WorkflowDispatch, #[serde(rename = "workflow_run")] WorkflowRun, } impl From<&AppEventsItem> for AppEventsItem { fn from(value: &AppEventsItem) -> Self { value.clone() } } impl ::std::fmt::Display for AppEventsItem { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::CheckRun => write!(f, "check_run"), Self::CheckSuite => write!(f, "check_suite"), Self::CodeScanningAlert => write!(f, "code_scanning_alert"), Self::CommitComment => write!(f, "commit_comment"), Self::ContentReference => write!(f, "content_reference"), Self::Create => write!(f, "create"), Self::Delete => write!(f, "delete"), Self::Deployment => write!(f, "deployment"), Self::DeploymentReview => write!(f, "deployment_review"), Self::DeploymentStatus => write!(f, "deployment_status"), Self::DeployKey => write!(f, "deploy_key"), Self::Discussion => write!(f, "discussion"), Self::DiscussionComment => write!(f, "discussion_comment"), Self::Fork => write!(f, "fork"), Self::Gollum => write!(f, "gollum"), Self::Issues => write!(f, "issues"), Self::IssueComment => write!(f, "issue_comment"), Self::Label => write!(f, "label"), Self::Member => write!(f, "member"), Self::Membership => write!(f, "membership"), Self::Milestone => write!(f, "milestone"), Self::Organization => write!(f, "organization"), Self::OrgBlock => write!(f, "org_block"), Self::PageBuild => write!(f, "page_build"), Self::Project => write!(f, "project"), Self::ProjectCard => write!(f, "project_card"), Self::ProjectColumn => write!(f, "project_column"), Self::Public => write!(f, "public"), Self::PullRequest => write!(f, "pull_request"), Self::PullRequestReview => write!(f, "pull_request_review"), Self::PullRequestReviewComment => write!(f, "pull_request_review_comment"), Self::Push => write!(f, "push"), Self::RegistryPackage => write!(f, "registry_package"), Self::Release => write!(f, "release"), Self::Repository => write!(f, "repository"), Self::RepositoryDispatch => write!(f, "repository_dispatch"), Self::SecretScanningAlert => write!(f, "secret_scanning_alert"), Self::Star => write!(f, "star"), Self::Status => write!(f, "status"), Self::Team => write!(f, "team"), Self::TeamAdd => write!(f, "team_add"), Self::Watch => write!(f, "watch"), Self::WorkflowDispatch => write!(f, "workflow_dispatch"), Self::WorkflowRun => write!(f, "workflow_run"), } } } impl std::str::FromStr for AppEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), "code_scanning_alert" => Ok(Self::CodeScanningAlert), "commit_comment" => Ok(Self::CommitComment), "content_reference" => Ok(Self::ContentReference), "create" => Ok(Self::Create), "delete" => Ok(Self::Delete), "deployment" => Ok(Self::Deployment), "deployment_review" => Ok(Self::DeploymentReview), "deployment_status" => Ok(Self::DeploymentStatus), "deploy_key" => Ok(Self::DeployKey), "discussion" => Ok(Self::Discussion), "discussion_comment" => Ok(Self::DiscussionComment), "fork" => Ok(Self::Fork), "gollum" => Ok(Self::Gollum), "issues" => Ok(Self::Issues), "issue_comment" => Ok(Self::IssueComment), "label" => Ok(Self::Label), "member" => Ok(Self::Member), "membership" => Ok(Self::Membership), "milestone" => Ok(Self::Milestone), "organization" => Ok(Self::Organization), "org_block" => Ok(Self::OrgBlock), "page_build" => Ok(Self::PageBuild), "project" => Ok(Self::Project), "project_card" => Ok(Self::ProjectCard), "project_column" => Ok(Self::ProjectColumn), "public" => Ok(Self::Public), "pull_request" => Ok(Self::PullRequest), "pull_request_review" => Ok(Self::PullRequestReview), "pull_request_review_comment" => Ok(Self::PullRequestReviewComment), "push" => Ok(Self::Push), "registry_package" => Ok(Self::RegistryPackage), "release" => Ok(Self::Release), "repository" => Ok(Self::Repository), "repository_dispatch" => Ok(Self::RepositoryDispatch), "secret_scanning_alert" => Ok(Self::SecretScanningAlert), "star" => Ok(Self::Star), "status" => Ok(Self::Status), "team" => Ok(Self::Team), "team_add" => Ok(Self::TeamAdd), "watch" => Ok(Self::Watch), "workflow_dispatch" => Ok(Self::WorkflowDispatch), "workflow_run" => Ok(Self::WorkflowRun), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppEventsItem { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppEventsItem { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The set of permissions for the GitHub app"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The set of permissions for the GitHub app\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"actions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"checks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_references\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"contents\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"emails\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"issues\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"members\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"metadata\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_plan\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_self_hosted_runners\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_user_blocking\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secret_scanning_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_scanning_alert\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"statuses\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"team_discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"vulnerability_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"workflows\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct AppPermissions { #[serde(default, skip_serializing_if = "Option::is_none")] pub actions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub checks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub content_references: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub contents: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub emails: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub environments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub issues: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub members: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_plan: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_self_hosted_runners: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_user_blocking: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pull_requests: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secret_scanning_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_scanning_alert: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub single_file: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub statuses: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub team_discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub vulnerability_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub workflows: Option, } impl From<&AppPermissions> for AppPermissions { fn from(value: &AppPermissions) -> Self { value.clone() } } #[doc = "AppPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsActions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsActions> for AppPermissionsActions { fn from(value: &AppPermissionsActions) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsActions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsAdministration> for AppPermissionsAdministration { fn from(value: &AppPermissionsAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsChecks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsChecks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsChecks> for AppPermissionsChecks { fn from(value: &AppPermissionsChecks) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsChecks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsContentReferences"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsContentReferences { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsContentReferences> for AppPermissionsContentReferences { fn from(value: &AppPermissionsContentReferences) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsContentReferences { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsContents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsContents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsContents> for AppPermissionsContents { fn from(value: &AppPermissionsContents) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsContents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsDeployments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsDeployments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsDeployments> for AppPermissionsDeployments { fn from(value: &AppPermissionsDeployments) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsDeployments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsDiscussions> for AppPermissionsDiscussions { fn from(value: &AppPermissionsDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsEmails"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsEmails { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsEmails> for AppPermissionsEmails { fn from(value: &AppPermissionsEmails) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsEmails { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsEnvironments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsEnvironments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsEnvironments> for AppPermissionsEnvironments { fn from(value: &AppPermissionsEnvironments) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsEnvironments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsIssues"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsIssues { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsIssues> for AppPermissionsIssues { fn from(value: &AppPermissionsIssues) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsIssues { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsMembers"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsMembers { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsMembers> for AppPermissionsMembers { fn from(value: &AppPermissionsMembers) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsMembers { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsMetadata"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsMetadata { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsMetadata> for AppPermissionsMetadata { fn from(value: &AppPermissionsMetadata) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationAdministration> for AppPermissionsOrganizationAdministration { fn from(value: &AppPermissionsOrganizationAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationHooks> for AppPermissionsOrganizationHooks { fn from(value: &AppPermissionsOrganizationHooks) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationPackages> for AppPermissionsOrganizationPackages { fn from(value: &AppPermissionsOrganizationPackages) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationPlan"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationPlan { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationPlan> for AppPermissionsOrganizationPlan { fn from(value: &AppPermissionsOrganizationPlan) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationPlan { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationProjects> for AppPermissionsOrganizationProjects { fn from(value: &AppPermissionsOrganizationProjects) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationSecrets> for AppPermissionsOrganizationSecrets { fn from(value: &AppPermissionsOrganizationSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationSelfHostedRunners"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationSelfHostedRunners { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationSelfHostedRunners> for AppPermissionsOrganizationSelfHostedRunners { fn from(value: &AppPermissionsOrganizationSelfHostedRunners) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationSelfHostedRunners { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsOrganizationUserBlocking"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsOrganizationUserBlocking { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsOrganizationUserBlocking> for AppPermissionsOrganizationUserBlocking { fn from(value: &AppPermissionsOrganizationUserBlocking) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsOrganizationUserBlocking { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsPackages> for AppPermissionsPackages { fn from(value: &AppPermissionsPackages) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsPages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsPages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsPages> for AppPermissionsPages { fn from(value: &AppPermissionsPages) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsPages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsPullRequests"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsPullRequests { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsPullRequests> for AppPermissionsPullRequests { fn from(value: &AppPermissionsPullRequests) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsPullRequests { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsRepositoryHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsRepositoryHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsRepositoryHooks> for AppPermissionsRepositoryHooks { fn from(value: &AppPermissionsRepositoryHooks) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsRepositoryHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsRepositoryProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsRepositoryProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsRepositoryProjects> for AppPermissionsRepositoryProjects { fn from(value: &AppPermissionsRepositoryProjects) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsRepositoryProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsSecretScanningAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsSecretScanningAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsSecretScanningAlerts> for AppPermissionsSecretScanningAlerts { fn from(value: &AppPermissionsSecretScanningAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsSecretScanningAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsSecrets> for AppPermissionsSecrets { fn from(value: &AppPermissionsSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsSecurityEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsSecurityEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsSecurityEvents> for AppPermissionsSecurityEvents { fn from(value: &AppPermissionsSecurityEvents) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsSecurityEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsSecurityScanningAlert"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsSecurityScanningAlert { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsSecurityScanningAlert> for AppPermissionsSecurityScanningAlert { fn from(value: &AppPermissionsSecurityScanningAlert) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsSecurityScanningAlert { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsSingleFile"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsSingleFile { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsSingleFile> for AppPermissionsSingleFile { fn from(value: &AppPermissionsSingleFile) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsSingleFile { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsStatuses"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsStatuses { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsStatuses> for AppPermissionsStatuses { fn from(value: &AppPermissionsStatuses) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsStatuses { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsTeamDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsTeamDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsTeamDiscussions> for AppPermissionsTeamDiscussions { fn from(value: &AppPermissionsTeamDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsTeamDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsVulnerabilityAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsVulnerabilityAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsVulnerabilityAlerts> for AppPermissionsVulnerabilityAlerts { fn from(value: &AppPermissionsVulnerabilityAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsVulnerabilityAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "AppPermissionsWorkflows"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AppPermissionsWorkflows { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&AppPermissionsWorkflows> for AppPermissionsWorkflows { fn from(value: &AppPermissionsWorkflows) -> Self { value.clone() } } impl ::std::fmt::Display for AppPermissionsWorkflows { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for AppPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AppPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AppPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AppPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "How the author is associated with the repository."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"AuthorAssociation\","] #[doc = " \"description\": \"How the author is associated with the repository.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"COLLABORATOR\","] #[doc = " \"CONTRIBUTOR\","] #[doc = " \"FIRST_TIMER\","] #[doc = " \"FIRST_TIME_CONTRIBUTOR\","] #[doc = " \"MANNEQUIN\","] #[doc = " \"MEMBER\","] #[doc = " \"NONE\","] #[doc = " \"OWNER\""] #[doc = " ],"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum AuthorAssociation { #[serde(rename = "COLLABORATOR")] Collaborator, #[serde(rename = "CONTRIBUTOR")] Contributor, #[serde(rename = "FIRST_TIMER")] FirstTimer, #[serde(rename = "FIRST_TIME_CONTRIBUTOR")] FirstTimeContributor, #[serde(rename = "MANNEQUIN")] Mannequin, #[serde(rename = "MEMBER")] Member, #[serde(rename = "NONE")] None, #[serde(rename = "OWNER")] Owner, } impl From<&AuthorAssociation> for AuthorAssociation { fn from(value: &AuthorAssociation) -> Self { value.clone() } } impl ::std::fmt::Display for AuthorAssociation { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Collaborator => write!(f, "COLLABORATOR"), Self::Contributor => write!(f, "CONTRIBUTOR"), Self::FirstTimer => write!(f, "FIRST_TIMER"), Self::FirstTimeContributor => write!(f, "FIRST_TIME_CONTRIBUTOR"), Self::Mannequin => write!(f, "MANNEQUIN"), Self::Member => write!(f, "MEMBER"), Self::None => write!(f, "NONE"), Self::Owner => write!(f, "OWNER"), } } } impl std::str::FromStr for AuthorAssociation { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "COLLABORATOR" => Ok(Self::Collaborator), "CONTRIBUTOR" => Ok(Self::Contributor), "FIRST_TIMER" => Ok(Self::FirstTimer), "FIRST_TIME_CONTRIBUTOR" => Ok(Self::FirstTimeContributor), "MANNEQUIN" => Ok(Self::Mannequin), "MEMBER" => Ok(Self::Member), "NONE" => Ok(Self::None), "OWNER" => Ok(Self::Owner), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for AuthorAssociation { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for AuthorAssociation { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for AuthorAssociation { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"branch protection rule\","] #[doc = " \"description\": \"The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"admin_enforced\","] #[doc = " \"allow_deletions_enforcement_level\","] #[doc = " \"allow_force_pushes_enforcement_level\","] #[doc = " \"authorized_actor_names\","] #[doc = " \"authorized_actors_only\","] #[doc = " \"authorized_dismissal_actors_only\","] #[doc = " \"created_at\","] #[doc = " \"dismiss_stale_reviews_on_push\","] #[doc = " \"id\","] #[doc = " \"ignore_approvals_from_contributors\","] #[doc = " \"linear_history_requirement_enforcement_level\","] #[doc = " \"merge_queue_enforcement_level\","] #[doc = " \"name\","] #[doc = " \"pull_request_reviews_enforcement_level\","] #[doc = " \"repository_id\","] #[doc = " \"require_code_owner_review\","] #[doc = " \"required_approving_review_count\","] #[doc = " \"required_conversation_resolution_level\","] #[doc = " \"required_deployments_enforcement_level\","] #[doc = " \"required_status_checks\","] #[doc = " \"required_status_checks_enforcement_level\","] #[doc = " \"signature_requirement_enforcement_level\","] #[doc = " \"strict_required_status_checks_policy\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"admin_enforced\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"allow_deletions_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"allow_force_pushes_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"authorized_actor_names\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"authorized_actors_only\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"authorized_dismissal_actors_only\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismiss_stale_reviews_on_push\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"ignore_approvals_from_contributors\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"linear_history_requirement_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"merge_queue_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_request_reviews_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"require_code_owner_review\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"required_approving_review_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"required_conversation_resolution_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"required_deployments_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"required_status_checks\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"required_status_checks_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"signature_requirement_enforcement_level\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"strict_required_status_checks_policy\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRule { pub admin_enforced: bool, pub allow_deletions_enforcement_level: BranchProtectionRuleAllowDeletionsEnforcementLevel, pub allow_force_pushes_enforcement_level: BranchProtectionRuleAllowForcePushesEnforcementLevel, pub authorized_actor_names: Vec, pub authorized_actors_only: bool, pub authorized_dismissal_actors_only: bool, pub created_at: chrono::DateTime, pub dismiss_stale_reviews_on_push: bool, pub id: i64, pub ignore_approvals_from_contributors: bool, pub linear_history_requirement_enforcement_level: BranchProtectionRuleLinearHistoryRequirementEnforcementLevel, pub merge_queue_enforcement_level: BranchProtectionRuleMergeQueueEnforcementLevel, pub name: String, pub pull_request_reviews_enforcement_level: BranchProtectionRulePullRequestReviewsEnforcementLevel, pub repository_id: i64, pub require_code_owner_review: bool, pub required_approving_review_count: i64, pub required_conversation_resolution_level: BranchProtectionRuleRequiredConversationResolutionLevel, pub required_deployments_enforcement_level: BranchProtectionRuleRequiredDeploymentsEnforcementLevel, pub required_status_checks: Vec, pub required_status_checks_enforcement_level: BranchProtectionRuleRequiredStatusChecksEnforcementLevel, pub signature_requirement_enforcement_level: BranchProtectionRuleSignatureRequirementEnforcementLevel, pub strict_required_status_checks_policy: bool, pub updated_at: chrono::DateTime, } impl From<&BranchProtectionRule> for BranchProtectionRule { fn from(value: &BranchProtectionRule) -> Self { value.clone() } } #[doc = "BranchProtectionRuleAllowDeletionsEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleAllowDeletionsEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleAllowDeletionsEnforcementLevel> for BranchProtectionRuleAllowDeletionsEnforcementLevel { fn from(value: &BranchProtectionRuleAllowDeletionsEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleAllowDeletionsEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleAllowDeletionsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRuleAllowForcePushesEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleAllowForcePushesEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleAllowForcePushesEnforcementLevel> for BranchProtectionRuleAllowForcePushesEnforcementLevel { fn from(value: &BranchProtectionRuleAllowForcePushesEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleAllowForcePushesEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleAllowForcePushesEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Activity related to a branch protection rule. For more information, see \"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\""] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"branch protection rule created event\","] #[doc = " \"description\": \"Activity related to a branch protection rule. For more information, see \\\"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\\\"\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"repository\","] #[doc = " \"rule\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"$ref\": \"#/definitions/branch-protection-rule\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleCreated { pub action: BranchProtectionRuleCreatedAction, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub rule: BranchProtectionRule, pub sender: User, } impl From<&BranchProtectionRuleCreated> for BranchProtectionRuleCreated { fn from(value: &BranchProtectionRuleCreated) -> Self { value.clone() } } #[doc = "BranchProtectionRuleCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleCreatedAction { #[serde(rename = "created")] Created, } impl From<&BranchProtectionRuleCreatedAction> for BranchProtectionRuleCreatedAction { fn from(value: &BranchProtectionRuleCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for BranchProtectionRuleCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Activity related to a branch protection rule. For more information, see \"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\""] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"branch protection rule deleted event\","] #[doc = " \"description\": \"Activity related to a branch protection rule. For more information, see \\\"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\\\"\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"repository\","] #[doc = " \"rule\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"$ref\": \"#/definitions/branch-protection-rule\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleDeleted { pub action: BranchProtectionRuleDeletedAction, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub rule: BranchProtectionRule, pub sender: User, } impl From<&BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted { fn from(value: &BranchProtectionRuleDeleted) -> Self { value.clone() } } #[doc = "BranchProtectionRuleDeletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleDeletedAction { #[serde(rename = "deleted")] Deleted, } impl From<&BranchProtectionRuleDeletedAction> for BranchProtectionRuleDeletedAction { fn from(value: &BranchProtectionRuleDeletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleDeletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Deleted => write!(f, "deleted"), } } } impl std::str::FromStr for BranchProtectionRuleDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleDeletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Activity related to a branch protection rule. For more information, see \"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\""] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"branch protection rule edited event\","] #[doc = " \"description\": \"Activity related to a branch protection rule. For more information, see \\\"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\\\"\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"changes\","] #[doc = " \"repository\","] #[doc = " \"rule\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"edited\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"changes\": {"] #[doc = " \"description\": \"If the action was `edited`, the changes to the rule.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"authorized_actor_names\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"authorized_actors_only\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"$ref\": \"#/definitions/branch-protection-rule\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEdited { pub action: BranchProtectionRuleEditedAction, pub changes: BranchProtectionRuleEditedChanges, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub rule: BranchProtectionRule, pub sender: User, } impl From<&BranchProtectionRuleEdited> for BranchProtectionRuleEdited { fn from(value: &BranchProtectionRuleEdited) -> Self { value.clone() } } #[doc = "BranchProtectionRuleEditedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"edited\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleEditedAction { #[serde(rename = "edited")] Edited, } impl From<&BranchProtectionRuleEditedAction> for BranchProtectionRuleEditedAction { fn from(value: &BranchProtectionRuleEditedAction) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleEditedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Edited => write!(f, "edited"), } } } impl std::str::FromStr for BranchProtectionRuleEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleEditedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "If the action was `edited`, the changes to the rule."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"If the action was `edited`, the changes to the rule.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"authorized_actor_names\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"authorized_actors_only\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEditedChanges { #[serde(default, skip_serializing_if = "Option::is_none")] pub authorized_actor_names: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub authorized_actors_only: Option, } impl From<&BranchProtectionRuleEditedChanges> for BranchProtectionRuleEditedChanges { fn from(value: &BranchProtectionRuleEditedChanges) -> Self { value.clone() } } #[doc = "BranchProtectionRuleEditedChangesAuthorizedActorNames"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEditedChangesAuthorizedActorNames { pub from: Vec, } impl From<&BranchProtectionRuleEditedChangesAuthorizedActorNames> for BranchProtectionRuleEditedChangesAuthorizedActorNames { fn from(value: &BranchProtectionRuleEditedChangesAuthorizedActorNames) -> Self { value.clone() } } #[doc = "BranchProtectionRuleEditedChangesAuthorizedActorsOnly"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct BranchProtectionRuleEditedChangesAuthorizedActorsOnly { pub from: bool, } impl From<&BranchProtectionRuleEditedChangesAuthorizedActorsOnly> for BranchProtectionRuleEditedChangesAuthorizedActorsOnly { fn from(value: &BranchProtectionRuleEditedChangesAuthorizedActorsOnly) -> Self { value.clone() } } #[doc = "BranchProtectionRuleEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/branch_protection_rule$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/branch_protection_rule$deleted\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/branch_protection_rule$edited\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum BranchProtectionRuleEvent { Created(BranchProtectionRuleCreated), Deleted(BranchProtectionRuleDeleted), Edited(BranchProtectionRuleEdited), } impl From<&BranchProtectionRuleEvent> for BranchProtectionRuleEvent { fn from(value: &BranchProtectionRuleEvent) -> Self { value.clone() } } impl From for BranchProtectionRuleEvent { fn from(value: BranchProtectionRuleCreated) -> Self { Self::Created(value) } } impl From for BranchProtectionRuleEvent { fn from(value: BranchProtectionRuleDeleted) -> Self { Self::Deleted(value) } } impl From for BranchProtectionRuleEvent { fn from(value: BranchProtectionRuleEdited) -> Self { Self::Edited(value) } } #[doc = "BranchProtectionRuleLinearHistoryRequirementEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleLinearHistoryRequirementEnforcementLevel> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { fn from(value: &BranchProtectionRuleLinearHistoryRequirementEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleLinearHistoryRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRuleMergeQueueEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleMergeQueueEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleMergeQueueEnforcementLevel> for BranchProtectionRuleMergeQueueEnforcementLevel { fn from(value: &BranchProtectionRuleMergeQueueEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleMergeQueueEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleMergeQueueEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleMergeQueueEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRulePullRequestReviewsEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRulePullRequestReviewsEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRulePullRequestReviewsEnforcementLevel> for BranchProtectionRulePullRequestReviewsEnforcementLevel { fn from(value: &BranchProtectionRulePullRequestReviewsEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRulePullRequestReviewsEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRulePullRequestReviewsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRuleRequiredConversationResolutionLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleRequiredConversationResolutionLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleRequiredConversationResolutionLevel> for BranchProtectionRuleRequiredConversationResolutionLevel { fn from(value: &BranchProtectionRuleRequiredConversationResolutionLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleRequiredConversationResolutionLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleRequiredConversationResolutionLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleRequiredConversationResolutionLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRuleRequiredDeploymentsEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleRequiredDeploymentsEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleRequiredDeploymentsEnforcementLevel> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { fn from(value: &BranchProtectionRuleRequiredDeploymentsEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleRequiredDeploymentsEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRuleRequiredStatusChecksEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleRequiredStatusChecksEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleRequiredStatusChecksEnforcementLevel> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { fn from(value: &BranchProtectionRuleRequiredStatusChecksEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleRequiredStatusChecksEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "BranchProtectionRuleSignatureRequirementEnforcementLevel"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"off\","] #[doc = " \"non_admins\","] #[doc = " \"everyone\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum BranchProtectionRuleSignatureRequirementEnforcementLevel { #[serde(rename = "off")] Off, #[serde(rename = "non_admins")] NonAdmins, #[serde(rename = "everyone")] Everyone, } impl From<&BranchProtectionRuleSignatureRequirementEnforcementLevel> for BranchProtectionRuleSignatureRequirementEnforcementLevel { fn from(value: &BranchProtectionRuleSignatureRequirementEnforcementLevel) -> Self { value.clone() } } impl ::std::fmt::Display for BranchProtectionRuleSignatureRequirementEnforcementLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Off => write!(f, "off"), Self::NonAdmins => write!(f, "non_admins"), Self::Everyone => write!(f, "everyone"), } } } impl std::str::FromStr for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "off" => Ok(Self::Off), "non_admins" => Ok(Self::NonAdmins), "everyone" => Ok(Self::Everyone), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for BranchProtectionRuleSignatureRequirementEnforcementLevel { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunCompleted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_run completed event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_run\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_run\": {"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check run.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"requested_action\": {"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": ["] #[doc = " \"object\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCompleted { pub action: CheckRunCompletedAction, pub check_run: CheckRunCompletedCheckRun, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, #[doc = "The action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub requested_action: Option, pub sender: User, } impl From<&CheckRunCompleted> for CheckRunCompleted { fn from(value: &CheckRunCompleted) -> Self { value.clone() } } #[doc = "CheckRunCompletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCompletedAction { #[serde(rename = "completed")] Completed, } impl From<&CheckRunCompletedAction> for CheckRunCompletedAction { fn from(value: &CheckRunCompletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCompletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunCompletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCompletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check run.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCompletedCheckRun { pub app: App, pub check_suite: CheckRunCompletedCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub completed_at: String, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub details_url: Option, pub external_id: String, #[doc = "The SHA of the commit that is being checked."] pub head_sha: String, pub html_url: String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check run."] pub name: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, pub output: CheckRunCompletedCheckRunOutput, pub pull_requests: Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub started_at: String, #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] pub status: CheckRunCompletedCheckRunStatus, pub url: String, } impl From<&CheckRunCompletedCheckRun> for CheckRunCompletedCheckRun { fn from(value: &CheckRunCompletedCheckRun) -> Self { value.clone() } } #[doc = "CheckRunCompletedCheckRunCheckSuite"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCompletedCheckRunCheckSuite { pub after: Option, pub app: App, pub before: Option, pub conclusion: Option, pub created_at: chrono::DateTime, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployment: Option, pub head_branch: Option, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, pub status: CheckRunCompletedCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, pub url: String, } impl From<&CheckRunCompletedCheckRunCheckSuite> for CheckRunCompletedCheckRunCheckSuite { fn from(value: &CheckRunCompletedCheckRunCheckSuite) -> Self { value.clone() } } #[doc = "CheckRunCompletedCheckRunCheckSuiteConclusion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCompletedCheckRunCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckRunCompletedCheckRunCheckSuiteConclusion> for CheckRunCompletedCheckRunCheckSuiteConclusion { fn from(value: &CheckRunCompletedCheckRunCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCompletedCheckRunCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCompletedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunCompletedCheckRunCheckSuiteStatus"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCompletedCheckRunCheckSuiteStatus { #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, #[serde(rename = "queued")] Queued, } impl From<&CheckRunCompletedCheckRunCheckSuiteStatus> for CheckRunCompletedCheckRunCheckSuiteStatus { fn from(value: &CheckRunCompletedCheckRunCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCompletedCheckRunCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), Self::Queued => write!(f, "queued"), } } } impl std::str::FromStr for CheckRunCompletedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), "queued" => Ok(Self::Queued), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCompletedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[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."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCompletedCheckRunConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, #[serde(rename = "skipped")] Skipped, } impl From<&CheckRunCompletedCheckRunConclusion> for CheckRunCompletedCheckRunConclusion { fn from(value: &CheckRunCompletedCheckRunConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCompletedCheckRunConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), Self::Skipped => write!(f, "skipped"), } } } impl std::str::FromStr for CheckRunCompletedCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), "skipped" => Ok(Self::Skipped), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCompletedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunCompletedCheckRunOutput"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCompletedCheckRunOutput { pub annotations_count: i64, pub annotations_url: String, pub summary: Option, pub text: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub title: Option, } impl From<&CheckRunCompletedCheckRunOutput> for CheckRunCompletedCheckRunOutput { fn from(value: &CheckRunCompletedCheckRunOutput) -> Self { value.clone() } } #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCompletedCheckRunStatus { #[serde(rename = "completed")] Completed, } impl From<&CheckRunCompletedCheckRunStatus> for CheckRunCompletedCheckRunStatus { fn from(value: &CheckRunCompletedCheckRunStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCompletedCheckRunStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunCompletedCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCompletedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The action requested by the user."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCompletedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub identifier: Option, } impl From<&CheckRunCompletedRequestedAction> for CheckRunCompletedRequestedAction { fn from(value: &CheckRunCompletedRequestedAction) -> Self { value.clone() } } #[doc = "CheckRunCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_run created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_run\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_run\": {"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check run.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"requested_action\": {"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": ["] #[doc = " \"object\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCreated { pub action: CheckRunCreatedAction, pub check_run: CheckRunCreatedCheckRun, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, #[doc = "The action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub requested_action: Option, pub sender: User, } impl From<&CheckRunCreated> for CheckRunCreated { fn from(value: &CheckRunCreated) -> Self { value.clone() } } #[doc = "CheckRunCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCreatedAction { #[serde(rename = "created")] Created, } impl From<&CheckRunCreatedAction> for CheckRunCreatedAction { fn from(value: &CheckRunCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for CheckRunCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check run.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCreatedCheckRun { pub app: App, pub check_suite: CheckRunCreatedCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub completed_at: Option, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub details_url: Option, pub external_id: String, #[doc = "The SHA of the commit that is being checked."] pub head_sha: String, pub html_url: String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check run."] pub name: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, pub output: CheckRunCreatedCheckRunOutput, pub pull_requests: Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub started_at: String, #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] pub status: CheckRunCreatedCheckRunStatus, pub url: String, } impl From<&CheckRunCreatedCheckRun> for CheckRunCreatedCheckRun { fn from(value: &CheckRunCreatedCheckRun) -> Self { value.clone() } } #[doc = "CheckRunCreatedCheckRunCheckSuite"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCreatedCheckRunCheckSuite { pub after: Option, pub app: App, pub before: Option, pub conclusion: Option, pub created_at: chrono::DateTime, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployment: Option, pub head_branch: Option, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, pub status: CheckRunCreatedCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, pub url: String, } impl From<&CheckRunCreatedCheckRunCheckSuite> for CheckRunCreatedCheckRunCheckSuite { fn from(value: &CheckRunCreatedCheckRunCheckSuite) -> Self { value.clone() } } #[doc = "CheckRunCreatedCheckRunCheckSuiteConclusion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCreatedCheckRunCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckRunCreatedCheckRunCheckSuiteConclusion> for CheckRunCreatedCheckRunCheckSuiteConclusion { fn from(value: &CheckRunCreatedCheckRunCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCreatedCheckRunCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCreatedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunCreatedCheckRunCheckSuiteStatus"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCreatedCheckRunCheckSuiteStatus { #[serde(rename = "queued")] Queued, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, } impl From<&CheckRunCreatedCheckRunCheckSuiteStatus> for CheckRunCreatedCheckRunCheckSuiteStatus { fn from(value: &CheckRunCreatedCheckRunCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCreatedCheckRunCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Queued => write!(f, "queued"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunCreatedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCreatedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[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."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCreatedCheckRunConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, #[serde(rename = "skipped")] Skipped, } impl From<&CheckRunCreatedCheckRunConclusion> for CheckRunCreatedCheckRunConclusion { fn from(value: &CheckRunCreatedCheckRunConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCreatedCheckRunConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), Self::Skipped => write!(f, "skipped"), } } } impl std::str::FromStr for CheckRunCreatedCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), "skipped" => Ok(Self::Skipped), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCreatedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunCreatedCheckRunOutput"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCreatedCheckRunOutput { pub annotations_count: i64, pub annotations_url: String, pub summary: Option, pub text: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub title: Option, } impl From<&CheckRunCreatedCheckRunOutput> for CheckRunCreatedCheckRunOutput { fn from(value: &CheckRunCreatedCheckRunOutput) -> Self { value.clone() } } #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunCreatedCheckRunStatus { #[serde(rename = "queued")] Queued, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, } impl From<&CheckRunCreatedCheckRunStatus> for CheckRunCreatedCheckRunStatus { fn from(value: &CheckRunCreatedCheckRunStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunCreatedCheckRunStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Queued => write!(f, "queued"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunCreatedCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunCreatedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The action requested by the user."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunCreatedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub identifier: Option, } impl From<&CheckRunCreatedRequestedAction> for CheckRunCreatedRequestedAction { fn from(value: &CheckRunCreatedRequestedAction) -> Self { value.clone() } } #[doc = "A deployment to a repository environment. This will only be populated if the check run was created by a GitHub Actions workflow job that references an environment."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Check Run Deployment\","] #[doc = " \"description\": \"A deployment to a repository environment. This will only be populated if the check run was created by a GitHub Actions workflow job that references an environment.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"original_environment\","] #[doc = " \"repository_url\","] #[doc = " \"statuses_url\","] #[doc = " \"task\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"original_environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"statuses_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"task\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunDeployment { pub created_at: chrono::DateTime, pub description: Option, pub environment: String, pub id: i64, pub node_id: String, pub original_environment: String, pub repository_url: String, pub statuses_url: String, pub task: String, pub updated_at: chrono::DateTime, pub url: String, } impl From<&CheckRunDeployment> for CheckRunDeployment { fn from(value: &CheckRunDeployment) -> Self { value.clone() } } #[doc = "CheckRunEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_run$completed\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_run$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_run$requested_action\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_run$rerequested\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum CheckRunEvent { Completed(CheckRunCompleted), Created(CheckRunCreated), RequestedAction(CheckRunRequestedAction), Rerequested(CheckRunRerequested), } impl From<&CheckRunEvent> for CheckRunEvent { fn from(value: &CheckRunEvent) -> Self { value.clone() } } impl From for CheckRunEvent { fn from(value: CheckRunCompleted) -> Self { Self::Completed(value) } } impl From for CheckRunEvent { fn from(value: CheckRunCreated) -> Self { Self::Created(value) } } impl From for CheckRunEvent { fn from(value: CheckRunRequestedAction) -> Self { Self::RequestedAction(value) } } impl From for CheckRunEvent { fn from(value: CheckRunRerequested) -> Self { Self::Rerequested(value) } } #[doc = "CheckRunPullRequest"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Check Run Pull Request\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"base\","] #[doc = " \"head\","] #[doc = " \"id\","] #[doc = " \"number\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"base\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"ref\","] #[doc = " \"repo\","] #[doc = " \"sha\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repo\": {"] #[doc = " \"$ref\": \"#/definitions/repo-ref\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"head\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"ref\","] #[doc = " \"repo\","] #[doc = " \"sha\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repo\": {"] #[doc = " \"$ref\": \"#/definitions/repo-ref\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunPullRequest { pub base: CheckRunPullRequestBase, pub head: CheckRunPullRequestHead, pub id: i64, pub number: i64, pub url: String, } impl From<&CheckRunPullRequest> for CheckRunPullRequest { fn from(value: &CheckRunPullRequest) -> Self { value.clone() } } #[doc = "CheckRunPullRequestBase"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"ref\","] #[doc = " \"repo\","] #[doc = " \"sha\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repo\": {"] #[doc = " \"$ref\": \"#/definitions/repo-ref\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunPullRequestBase { #[serde(rename = "ref")] pub ref_: String, pub repo: RepoRef, pub sha: String, } impl From<&CheckRunPullRequestBase> for CheckRunPullRequestBase { fn from(value: &CheckRunPullRequestBase) -> Self { value.clone() } } #[doc = "CheckRunPullRequestHead"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"ref\","] #[doc = " \"repo\","] #[doc = " \"sha\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repo\": {"] #[doc = " \"$ref\": \"#/definitions/repo-ref\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunPullRequestHead { #[serde(rename = "ref")] pub ref_: String, pub repo: RepoRef, pub sha: String, } impl From<&CheckRunPullRequestHead> for CheckRunPullRequestHead { fn from(value: &CheckRunPullRequestHead) -> Self { value.clone() } } #[doc = "CheckRunRequestedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_run requested_action event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_run\","] #[doc = " \"repository\","] #[doc = " \"requested_action\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested_action\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_run\": {"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check run.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"requested_action\": {"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRequestedAction { pub action: CheckRunRequestedActionAction, pub check_run: CheckRunRequestedActionCheckRun, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub requested_action: CheckRunRequestedActionRequestedAction, pub sender: User, } impl From<&CheckRunRequestedAction> for CheckRunRequestedAction { fn from(value: &CheckRunRequestedAction) -> Self { value.clone() } } #[doc = "CheckRunRequestedActionAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested_action\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRequestedActionAction { #[serde(rename = "requested_action")] RequestedAction, } impl From<&CheckRunRequestedActionAction> for CheckRunRequestedActionAction { fn from(value: &CheckRunRequestedActionAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRequestedActionAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::RequestedAction => write!(f, "requested_action"), } } } impl std::str::FromStr for CheckRunRequestedActionAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "requested_action" => Ok(Self::RequestedAction), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRequestedActionAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRequestedActionAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check run.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionCheckRun { pub app: App, pub check_suite: CheckRunRequestedActionCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub completed_at: Option, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub details_url: Option, pub external_id: String, #[doc = "The SHA of the commit that is being checked."] pub head_sha: String, pub html_url: String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check run."] pub name: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, pub output: CheckRunRequestedActionCheckRunOutput, pub pull_requests: Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub started_at: String, #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] pub status: CheckRunRequestedActionCheckRunStatus, pub url: String, } impl From<&CheckRunRequestedActionCheckRun> for CheckRunRequestedActionCheckRun { fn from(value: &CheckRunRequestedActionCheckRun) -> Self { value.clone() } } #[doc = "CheckRunRequestedActionCheckRunCheckSuite"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionCheckRunCheckSuite { pub after: Option, pub app: App, pub before: Option, pub conclusion: Option, pub created_at: chrono::DateTime, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployment: Option, pub head_branch: Option, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, pub status: CheckRunRequestedActionCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, pub url: String, } impl From<&CheckRunRequestedActionCheckRunCheckSuite> for CheckRunRequestedActionCheckRunCheckSuite { fn from(value: &CheckRunRequestedActionCheckRunCheckSuite) -> Self { value.clone() } } #[doc = "CheckRunRequestedActionCheckRunCheckSuiteConclusion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRequestedActionCheckRunCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckRunRequestedActionCheckRunCheckSuiteConclusion> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { fn from(value: &CheckRunRequestedActionCheckRunCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRequestedActionCheckRunCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRequestedActionCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunRequestedActionCheckRunCheckSuiteStatus"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRequestedActionCheckRunCheckSuiteStatus { #[serde(rename = "queued")] Queued, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, } impl From<&CheckRunRequestedActionCheckRunCheckSuiteStatus> for CheckRunRequestedActionCheckRunCheckSuiteStatus { fn from(value: &CheckRunRequestedActionCheckRunCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRequestedActionCheckRunCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Queued => write!(f, "queued"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRequestedActionCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[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."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRequestedActionCheckRunConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, #[serde(rename = "skipped")] Skipped, } impl From<&CheckRunRequestedActionCheckRunConclusion> for CheckRunRequestedActionCheckRunConclusion { fn from(value: &CheckRunRequestedActionCheckRunConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRequestedActionCheckRunConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), Self::Skipped => write!(f, "skipped"), } } } impl std::str::FromStr for CheckRunRequestedActionCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), "skipped" => Ok(Self::Skipped), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRequestedActionCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunRequestedActionCheckRunOutput"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionCheckRunOutput { pub annotations_count: i64, pub annotations_url: String, pub summary: Option, pub text: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub title: Option, } impl From<&CheckRunRequestedActionCheckRunOutput> for CheckRunRequestedActionCheckRunOutput { fn from(value: &CheckRunRequestedActionCheckRunOutput) -> Self { value.clone() } } #[doc = "The current status of the check run. Can be `queued`, `in_progress`, or `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The current status of the check run. Can be `queued`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"queued\","] #[doc = " \"in_progress\","] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRequestedActionCheckRunStatus { #[serde(rename = "queued")] Queued, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, } impl From<&CheckRunRequestedActionCheckRunStatus> for CheckRunRequestedActionCheckRunStatus { fn from(value: &CheckRunRequestedActionCheckRunStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRequestedActionCheckRunStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Queued => write!(f, "queued"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunRequestedActionCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "queued" => Ok(Self::Queued), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRequestedActionCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The action requested by the user."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRequestedActionRequestedAction { #[doc = "The integrator reference of the action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub identifier: Option, } impl From<&CheckRunRequestedActionRequestedAction> for CheckRunRequestedActionRequestedAction { fn from(value: &CheckRunRequestedActionRequestedAction) -> Self { value.clone() } } #[doc = "CheckRunRerequested"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_run rerequested event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_run\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"rerequested\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_run\": {"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The phase of the lifecycle that the check is currently in.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"requested_action\": {"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": ["] #[doc = " \"object\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRerequested { pub action: CheckRunRerequestedAction, pub check_run: CheckRunRerequestedCheckRun, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, #[doc = "The action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub requested_action: Option, pub sender: User, } impl From<&CheckRunRerequested> for CheckRunRerequested { fn from(value: &CheckRunRerequested) -> Self { value.clone() } } #[doc = "CheckRunRerequestedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"rerequested\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRerequestedAction { #[serde(rename = "rerequested")] Rerequested, } impl From<&CheckRunRerequestedAction> for CheckRunRerequestedAction { fn from(value: &CheckRunRerequestedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRerequestedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Rerequested => write!(f, "rerequested"), } } } impl std::str::FromStr for CheckRunRerequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "rerequested" => Ok(Self::Rerequested), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_run](https://docs.github.com/en/rest/reference/checks#get-a-check-run).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"app\","] #[doc = " \"check_suite\","] #[doc = " \"completed_at\","] #[doc = " \"conclusion\","] #[doc = " \"external_id\","] #[doc = " \"head_sha\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"output\","] #[doc = " \"pull_requests\","] #[doc = " \"started_at\","] #[doc = " \"status\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"completed_at\": {"] #[doc = " \"description\": \"The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"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`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"details_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"external_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the check.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"output\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"started_at\": {"] #[doc = " \"description\": \"The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The phase of the lifecycle that the check is currently in.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedCheckRun { pub app: App, pub check_suite: CheckRunRerequestedCheckRunCheckSuite, #[doc = "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub completed_at: String, #[doc = "The result of the completed check run. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."] pub conclusion: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub details_url: Option, pub external_id: String, #[doc = "The SHA of the commit that is being checked."] pub head_sha: String, pub html_url: String, #[doc = "The id of the check."] pub id: i64, #[doc = "The name of the check."] pub name: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, pub output: CheckRunRerequestedCheckRunOutput, pub pull_requests: Vec, #[doc = "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."] pub started_at: String, #[doc = "The phase of the lifecycle that the check is currently in."] pub status: CheckRunRerequestedCheckRunStatus, pub url: String, } impl From<&CheckRunRerequestedCheckRun> for CheckRunRerequestedCheckRun { fn from(value: &CheckRunRerequestedCheckRun) -> Self { value.clone() } } #[doc = "CheckRunRerequestedCheckRunCheckSuite"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-deployment\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The id of the check suite that this check run is part of.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedCheckRunCheckSuite { pub after: Option, pub app: App, pub before: Option, pub conclusion: CheckRunRerequestedCheckRunCheckSuiteConclusion, pub created_at: chrono::DateTime, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployment: Option, pub head_branch: Option, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, #[doc = "The id of the check suite that this check run is part of."] pub id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, pub status: CheckRunRerequestedCheckRunCheckSuiteStatus, pub updated_at: chrono::DateTime, pub url: String, } impl From<&CheckRunRerequestedCheckRunCheckSuite> for CheckRunRerequestedCheckRunCheckSuite { fn from(value: &CheckRunRerequestedCheckRunCheckSuite) -> Self { value.clone() } } #[doc = "CheckRunRerequestedCheckRunCheckSuiteConclusion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRerequestedCheckRunCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckRunRerequestedCheckRunCheckSuiteConclusion> for CheckRunRerequestedCheckRunCheckSuiteConclusion { fn from(value: &CheckRunRerequestedCheckRunCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRerequestedCheckRunCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRerequestedCheckRunCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunRerequestedCheckRunCheckSuiteStatus"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRerequestedCheckRunCheckSuiteStatus { #[serde(rename = "completed")] Completed, } impl From<&CheckRunRerequestedCheckRunCheckSuiteStatus> for CheckRunRerequestedCheckRunCheckSuiteStatus { fn from(value: &CheckRunRerequestedCheckRunCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRerequestedCheckRunCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunRerequestedCheckRunCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRerequestedCheckRunCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[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`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"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`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " \"skipped\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRerequestedCheckRunConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, #[serde(rename = "skipped")] Skipped, } impl From<&CheckRunRerequestedCheckRunConclusion> for CheckRunRerequestedCheckRunConclusion { fn from(value: &CheckRunRerequestedCheckRunConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRerequestedCheckRunConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), Self::Skipped => write!(f, "skipped"), } } } impl std::str::FromStr for CheckRunRerequestedCheckRunConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), "skipped" => Ok(Self::Skipped), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRerequestedCheckRunConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckRunRerequestedCheckRunOutput"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"annotations_count\","] #[doc = " \"annotations_url\","] #[doc = " \"summary\","] #[doc = " \"text\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"annotations_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"annotations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"text\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedCheckRunOutput { pub annotations_count: i64, pub annotations_url: String, pub summary: Option, pub text: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub title: Option, } impl From<&CheckRunRerequestedCheckRunOutput> for CheckRunRerequestedCheckRunOutput { fn from(value: &CheckRunRerequestedCheckRunOutput) -> Self { value.clone() } } #[doc = "The phase of the lifecycle that the check is currently in."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The phase of the lifecycle that the check is currently in.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckRunRerequestedCheckRunStatus { #[serde(rename = "completed")] Completed, } impl From<&CheckRunRerequestedCheckRunStatus> for CheckRunRerequestedCheckRunStatus { fn from(value: &CheckRunRerequestedCheckRunStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckRunRerequestedCheckRunStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckRunRerequestedCheckRunStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckRunRerequestedCheckRunStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The action requested by the user."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The action requested by the user.\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"identifier\": {"] #[doc = " \"description\": \"The integrator reference of the action requested by the user.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckRunRerequestedRequestedAction { #[doc = "The integrator reference of the action requested by the user."] #[serde(default, skip_serializing_if = "Option::is_none")] pub identifier: Option, } impl From<&CheckRunRerequestedRequestedAction> for CheckRunRerequestedRequestedAction { fn from(value: &CheckRunRerequestedRequestedAction) -> Self { value.clone() } } #[doc = "CheckSuiteCompleted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_suite completed event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_suite\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"description\": \"The [check_suite](https://docs.github.com/en/rest/reference/checks#suites).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"check_runs_url\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_commit\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"latest_check_runs_count\","] #[doc = " \"node_id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_runs_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"description\": \"The head branch name the changes are on.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_commit\": {"] #[doc = " \"$ref\": \"#/definitions/commit-simple\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"latest_check_runs_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the check suite API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteCompleted { pub action: CheckSuiteCompletedAction, pub check_suite: CheckSuiteCompletedCheckSuite, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&CheckSuiteCompleted> for CheckSuiteCompleted { fn from(value: &CheckSuiteCompleted) -> Self { value.clone() } } #[doc = "CheckSuiteCompletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"completed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteCompletedAction { #[serde(rename = "completed")] Completed, } impl From<&CheckSuiteCompletedAction> for CheckSuiteCompletedAction { fn from(value: &CheckSuiteCompletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteCompletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Completed => write!(f, "completed"), } } } impl std::str::FromStr for CheckSuiteCompletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "completed" => Ok(Self::Completed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteCompletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteCompletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_suite](https://docs.github.com/en/rest/reference/checks#suites)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_suite](https://docs.github.com/en/rest/reference/checks#suites).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"check_runs_url\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_commit\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"latest_check_runs_count\","] #[doc = " \"node_id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_runs_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"description\": \"The head branch name the changes are on.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_commit\": {"] #[doc = " \"$ref\": \"#/definitions/commit-simple\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"latest_check_runs_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the check suite API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteCompletedCheckSuite { pub after: String, pub app: App, pub before: Option, pub check_runs_url: String, #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."] pub conclusion: Option, pub created_at: chrono::DateTime, #[doc = "The head branch name the changes are on."] pub head_branch: Option, pub head_commit: CommitSimple, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, pub id: i64, pub latest_check_runs_count: i64, pub node_id: String, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] pub status: Option, pub updated_at: chrono::DateTime, #[doc = "URL that points to the check suite API resource."] pub url: String, } impl From<&CheckSuiteCompletedCheckSuite> for CheckSuiteCompletedCheckSuite { fn from(value: &CheckSuiteCompletedCheckSuite) -> Self { value.clone() } } #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteCompletedCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckSuiteCompletedCheckSuiteConclusion> for CheckSuiteCompletedCheckSuiteConclusion { fn from(value: &CheckSuiteCompletedCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteCompletedCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckSuiteCompletedCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteCompletedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteCompletedCheckSuiteStatus { #[serde(rename = "requested")] Requested, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, #[serde(rename = "queued")] Queued, } impl From<&CheckSuiteCompletedCheckSuiteStatus> for CheckSuiteCompletedCheckSuiteStatus { fn from(value: &CheckSuiteCompletedCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteCompletedCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Requested => write!(f, "requested"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), Self::Queued => write!(f, "queued"), } } } impl std::str::FromStr for CheckSuiteCompletedCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "requested" => Ok(Self::Requested), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), "queued" => Ok(Self::Queued), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteCompletedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckSuiteEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_suite$completed\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_suite$requested\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_suite$rerequested\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum CheckSuiteEvent { Completed(CheckSuiteCompleted), Requested(CheckSuiteRequested), Rerequested(CheckSuiteRerequested), } impl From<&CheckSuiteEvent> for CheckSuiteEvent { fn from(value: &CheckSuiteEvent) -> Self { value.clone() } } impl From for CheckSuiteEvent { fn from(value: CheckSuiteCompleted) -> Self { Self::Completed(value) } } impl From for CheckSuiteEvent { fn from(value: CheckSuiteRequested) -> Self { Self::Requested(value) } } impl From for CheckSuiteEvent { fn from(value: CheckSuiteRerequested) -> Self { Self::Rerequested(value) } } #[doc = "CheckSuiteRequested"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_suite requested event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_suite\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"description\": \"The [check_suite](https://docs.github.com/en/rest/reference/checks#suites).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"check_runs_url\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_commit\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"latest_check_runs_count\","] #[doc = " \"node_id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_runs_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"description\": \"The head branch name the changes are on.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_commit\": {"] #[doc = " \"$ref\": \"#/definitions/commit-simple\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"latest_check_runs_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the check suite API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteRequested { pub action: CheckSuiteRequestedAction, pub check_suite: CheckSuiteRequestedCheckSuite, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&CheckSuiteRequested> for CheckSuiteRequested { fn from(value: &CheckSuiteRequested) -> Self { value.clone() } } #[doc = "CheckSuiteRequestedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteRequestedAction { #[serde(rename = "requested")] Requested, } impl From<&CheckSuiteRequestedAction> for CheckSuiteRequestedAction { fn from(value: &CheckSuiteRequestedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteRequestedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Requested => write!(f, "requested"), } } } impl std::str::FromStr for CheckSuiteRequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "requested" => Ok(Self::Requested), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteRequestedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteRequestedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_suite](https://docs.github.com/en/rest/reference/checks#suites)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_suite](https://docs.github.com/en/rest/reference/checks#suites).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"check_runs_url\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_commit\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"latest_check_runs_count\","] #[doc = " \"node_id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_runs_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"description\": \"The head branch name the changes are on.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_commit\": {"] #[doc = " \"$ref\": \"#/definitions/commit-simple\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"latest_check_runs_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the check suite API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteRequestedCheckSuite { pub after: String, pub app: App, pub before: Option, pub check_runs_url: String, #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: Option, pub created_at: chrono::DateTime, #[doc = "The head branch name the changes are on."] pub head_branch: Option, pub head_commit: CommitSimple, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, pub id: i64, pub latest_check_runs_count: i64, pub node_id: String, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] pub status: Option, pub updated_at: chrono::DateTime, #[doc = "URL that points to the check suite API resource."] pub url: String, } impl From<&CheckSuiteRequestedCheckSuite> for CheckSuiteRequestedCheckSuite { fn from(value: &CheckSuiteRequestedCheckSuite) -> Self { value.clone() } } #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteRequestedCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckSuiteRequestedCheckSuiteConclusion> for CheckSuiteRequestedCheckSuiteConclusion { fn from(value: &CheckSuiteRequestedCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteRequestedCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckSuiteRequestedCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteRequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteRequestedCheckSuiteStatus { #[serde(rename = "requested")] Requested, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, #[serde(rename = "queued")] Queued, } impl From<&CheckSuiteRequestedCheckSuiteStatus> for CheckSuiteRequestedCheckSuiteStatus { fn from(value: &CheckSuiteRequestedCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteRequestedCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Requested => write!(f, "requested"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), Self::Queued => write!(f, "queued"), } } } impl std::str::FromStr for CheckSuiteRequestedCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "requested" => Ok(Self::Requested), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), "queued" => Ok(Self::Queued), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteRequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CheckSuiteRerequested"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"check_suite rerequested event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"check_suite\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"rerequested\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_suite\": {"] #[doc = " \"description\": \"The [check_suite](https://docs.github.com/en/rest/reference/checks#suites).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"check_runs_url\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_commit\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"latest_check_runs_count\","] #[doc = " \"node_id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_runs_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"description\": \"The head branch name the changes are on.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_commit\": {"] #[doc = " \"$ref\": \"#/definitions/commit-simple\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"latest_check_runs_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the check suite API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteRerequested { pub action: CheckSuiteRerequestedAction, pub check_suite: CheckSuiteRerequestedCheckSuite, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&CheckSuiteRerequested> for CheckSuiteRerequested { fn from(value: &CheckSuiteRerequested) -> Self { value.clone() } } #[doc = "CheckSuiteRerequestedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"rerequested\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteRerequestedAction { #[serde(rename = "rerequested")] Rerequested, } impl From<&CheckSuiteRerequestedAction> for CheckSuiteRerequestedAction { fn from(value: &CheckSuiteRerequestedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteRerequestedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Rerequested => write!(f, "rerequested"), } } } impl std::str::FromStr for CheckSuiteRerequestedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "rerequested" => Ok(Self::Rerequested), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteRerequestedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [check_suite](https://docs.github.com/en/rest/reference/checks#suites)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [check_suite](https://docs.github.com/en/rest/reference/checks#suites).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"after\","] #[doc = " \"app\","] #[doc = " \"before\","] #[doc = " \"check_runs_url\","] #[doc = " \"conclusion\","] #[doc = " \"created_at\","] #[doc = " \"head_branch\","] #[doc = " \"head_commit\","] #[doc = " \"head_sha\","] #[doc = " \"id\","] #[doc = " \"latest_check_runs_count\","] #[doc = " \"node_id\","] #[doc = " \"pull_requests\","] #[doc = " \"status\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"after\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"app\": {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " \"before\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"check_runs_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"conclusion\": {"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"head_branch\": {"] #[doc = " \"description\": \"The head branch name the changes are on.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"head_commit\": {"] #[doc = " \"$ref\": \"#/definitions/commit-simple\""] #[doc = " },"] #[doc = " \"head_sha\": {"] #[doc = " \"description\": \"The SHA of the head commit that is being checked.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"latest_check_runs_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/check-run-pull-request\""] #[doc = " }"] #[doc = " },"] #[doc = " \"status\": {"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the check suite API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CheckSuiteRerequestedCheckSuite { pub after: String, pub app: App, pub before: Option, pub check_runs_url: String, #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] pub conclusion: Option, pub created_at: chrono::DateTime, #[doc = "The head branch name the changes are on."] pub head_branch: Option, pub head_commit: CommitSimple, #[doc = "The SHA of the head commit that is being checked."] pub head_sha: String, pub id: i64, pub latest_check_runs_count: i64, pub node_id: String, #[doc = "An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty."] pub pull_requests: Vec, #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] pub status: Option, pub updated_at: chrono::DateTime, #[doc = "URL that points to the check suite API resource."] pub url: String, } impl From<&CheckSuiteRerequestedCheckSuite> for CheckSuiteRerequestedCheckSuite { fn from(value: &CheckSuiteRerequestedCheckSuite) -> Self { value.clone() } } #[doc = "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"success\","] #[doc = " \"failure\","] #[doc = " \"neutral\","] #[doc = " \"cancelled\","] #[doc = " \"timed_out\","] #[doc = " \"action_required\","] #[doc = " \"stale\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteRerequestedCheckSuiteConclusion { #[serde(rename = "success")] Success, #[serde(rename = "failure")] Failure, #[serde(rename = "neutral")] Neutral, #[serde(rename = "cancelled")] Cancelled, #[serde(rename = "timed_out")] TimedOut, #[serde(rename = "action_required")] ActionRequired, #[serde(rename = "stale")] Stale, } impl From<&CheckSuiteRerequestedCheckSuiteConclusion> for CheckSuiteRerequestedCheckSuiteConclusion { fn from(value: &CheckSuiteRerequestedCheckSuiteConclusion) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteRerequestedCheckSuiteConclusion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Success => write!(f, "success"), Self::Failure => write!(f, "failure"), Self::Neutral => write!(f, "neutral"), Self::Cancelled => write!(f, "cancelled"), Self::TimedOut => write!(f, "timed_out"), Self::ActionRequired => write!(f, "action_required"), Self::Stale => write!(f, "stale"), } } } impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteConclusion { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "success" => Ok(Self::Success), "failure" => Ok(Self::Failure), "neutral" => Ok(Self::Neutral), "cancelled" => Ok(Self::Cancelled), "timed_out" => Ok(Self::TimedOut), "action_required" => Ok(Self::ActionRequired), "stale" => Ok(Self::Stale), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteRerequestedCheckSuiteConclusion { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"requested\","] #[doc = " \"in_progress\","] #[doc = " \"completed\","] #[doc = " \"queued\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CheckSuiteRerequestedCheckSuiteStatus { #[serde(rename = "requested")] Requested, #[serde(rename = "in_progress")] InProgress, #[serde(rename = "completed")] Completed, #[serde(rename = "queued")] Queued, } impl From<&CheckSuiteRerequestedCheckSuiteStatus> for CheckSuiteRerequestedCheckSuiteStatus { fn from(value: &CheckSuiteRerequestedCheckSuiteStatus) -> Self { value.clone() } } impl ::std::fmt::Display for CheckSuiteRerequestedCheckSuiteStatus { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Requested => write!(f, "requested"), Self::InProgress => write!(f, "in_progress"), Self::Completed => write!(f, "completed"), Self::Queued => write!(f, "queued"), } } } impl std::str::FromStr for CheckSuiteRerequestedCheckSuiteStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "requested" => Ok(Self::Requested), "in_progress" => Ok(Self::InProgress), "completed" => Ok(Self::Completed), "queued" => Ok(Self::Queued), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CheckSuiteRerequestedCheckSuiteStatus { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertAppearedInBranch"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"code_scanning_alert appeared_in_branch event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"alert\","] #[doc = " \"commit_oid\","] #[doc = " \"ref\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"appeared_in_branch\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"alert\": {"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"commit_oid\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/github-org\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertAppearedInBranch { pub action: CodeScanningAlertAppearedInBranchAction, pub alert: CodeScanningAlertAppearedInBranchAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] pub ref_: String, pub repository: Repository, pub sender: GithubOrg, } impl From<&CodeScanningAlertAppearedInBranch> for CodeScanningAlertAppearedInBranch { fn from(value: &CodeScanningAlertAppearedInBranch) -> Self { value.clone() } } #[doc = "CodeScanningAlertAppearedInBranchAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"appeared_in_branch\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertAppearedInBranchAction { #[serde(rename = "appeared_in_branch")] AppearedInBranch, } impl From<&CodeScanningAlertAppearedInBranchAction> for CodeScanningAlertAppearedInBranchAction { fn from(value: &CodeScanningAlertAppearedInBranchAction) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::AppearedInBranch => write!(f, "appeared_in_branch"), } } } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "appeared_in_branch" => Ok(Self::AppearedInBranch), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The code scanning alert involved in the event."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertAppearedInBranchAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] pub dismissed_at: Option>, pub dismissed_by: Option, #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: Option, #[doc = "The GitHub URL of the alert resource."] pub html_url: String, pub instances: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub most_recent_instance: Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertAppearedInBranchAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertAppearedInBranchAlertState, pub tool: CodeScanningAlertAppearedInBranchAlertTool, pub url: String, } impl From<&CodeScanningAlertAppearedInBranchAlert> for CodeScanningAlertAppearedInBranchAlert { fn from(value: &CodeScanningAlertAppearedInBranchAlert) -> Self { value.clone() } } #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertAppearedInBranchAlertDismissedReason { #[serde(rename = "false positive")] FalsePositive, #[serde(rename = "won't fix")] WontFix, #[serde(rename = "used in tests")] UsedInTests, } impl From<&CodeScanningAlertAppearedInBranchAlertDismissedReason> for CodeScanningAlertAppearedInBranchAlertDismissedReason { fn from(value: &CodeScanningAlertAppearedInBranchAlertDismissedReason) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertDismissedReason { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::FalsePositive => write!(f, "false positive"), Self::WontFix => write!(f, "won't fix"), Self::UsedInTests => write!(f, "used in tests"), } } } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "false positive" => Ok(Self::FalsePositive), "won't fix" => Ok(Self::WontFix), "used in tests" => Ok(Self::UsedInTests), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertAppearedInBranchAlertRule"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertAppearedInBranchAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: String, #[doc = "A unique identifier for the rule used to detect the alert."] pub id: String, #[doc = "The severity of the alert."] pub severity: Option, } impl From<&CodeScanningAlertAppearedInBranchAlertRule> for CodeScanningAlertAppearedInBranchAlertRule { fn from(value: &CodeScanningAlertAppearedInBranchAlertRule) -> Self { value.clone() } } #[doc = "The severity of the alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertAppearedInBranchAlertRuleSeverity { #[serde(rename = "none")] None, #[serde(rename = "note")] Note, #[serde(rename = "warning")] Warning, #[serde(rename = "error")] Error, } impl From<&CodeScanningAlertAppearedInBranchAlertRuleSeverity> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { fn from(value: &CodeScanningAlertAppearedInBranchAlertRuleSeverity) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertRuleSeverity { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::None => write!(f, "none"), Self::Note => write!(f, "note"), Self::Warning => write!(f, "warning"), Self::Error => write!(f, "error"), } } } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), "warning" => Ok(Self::Warning), "error" => Ok(Self::Error), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertAppearedInBranchAlertState { #[serde(rename = "open")] Open, #[serde(rename = "dismissed")] Dismissed, #[serde(rename = "fixed")] Fixed, } impl From<&CodeScanningAlertAppearedInBranchAlertState> for CodeScanningAlertAppearedInBranchAlertState { fn from(value: &CodeScanningAlertAppearedInBranchAlertState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertAppearedInBranchAlertState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Dismissed => write!(f, "dismissed"), Self::Fixed => write!(f, "fixed"), } } } impl std::str::FromStr for CodeScanningAlertAppearedInBranchAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertAppearedInBranchAlertState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertAppearedInBranchAlertTool"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertAppearedInBranchAlertTool { #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: String, #[doc = "The version of the tool used to detect the alert."] pub version: Option, } impl From<&CodeScanningAlertAppearedInBranchAlertTool> for CodeScanningAlertAppearedInBranchAlertTool { fn from(value: &CodeScanningAlertAppearedInBranchAlertTool) -> Self { value.clone() } } #[doc = "CodeScanningAlertClosedByUser"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"code_scanning_alert closed_by_user event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"alert\","] #[doc = " \"commit_oid\","] #[doc = " \"ref\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"closed_by_user\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"alert\": {"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"commit_oid\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUser { pub action: CodeScanningAlertClosedByUserAction, pub alert: CodeScanningAlertClosedByUserAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] pub ref_: String, pub repository: Repository, pub sender: User, } impl From<&CodeScanningAlertClosedByUser> for CodeScanningAlertClosedByUser { fn from(value: &CodeScanningAlertClosedByUser) -> Self { value.clone() } } #[doc = "CodeScanningAlertClosedByUserAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"closed_by_user\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertClosedByUserAction { #[serde(rename = "closed_by_user")] ClosedByUser, } impl From<&CodeScanningAlertClosedByUserAction> for CodeScanningAlertClosedByUserAction { fn from(value: &CodeScanningAlertClosedByUserAction) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertClosedByUserAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::ClosedByUser => write!(f, "closed_by_user"), } } } impl std::str::FromStr for CodeScanningAlertClosedByUserAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "closed_by_user" => Ok(Self::ClosedByUser), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertClosedByUserAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The code scanning alert involved in the event."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] pub dismissed_at: chrono::DateTime, pub dismissed_by: User, #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: Option, #[doc = "The GitHub URL of the alert resource."] pub html_url: String, pub instances: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub most_recent_instance: Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertClosedByUserAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertClosedByUserAlertState, pub tool: CodeScanningAlertClosedByUserAlertTool, pub url: String, } impl From<&CodeScanningAlertClosedByUserAlert> for CodeScanningAlertClosedByUserAlert { fn from(value: &CodeScanningAlertClosedByUserAlert) -> Self { value.clone() } } #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertClosedByUserAlertDismissedReason { #[serde(rename = "false positive")] FalsePositive, #[serde(rename = "won't fix")] WontFix, #[serde(rename = "used in tests")] UsedInTests, } impl From<&CodeScanningAlertClosedByUserAlertDismissedReason> for CodeScanningAlertClosedByUserAlertDismissedReason { fn from(value: &CodeScanningAlertClosedByUserAlertDismissedReason) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertDismissedReason { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::FalsePositive => write!(f, "false positive"), Self::WontFix => write!(f, "won't fix"), Self::UsedInTests => write!(f, "used in tests"), } } } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertDismissedReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "false positive" => Ok(Self::FalsePositive), "won't fix" => Ok(Self::WontFix), "used in tests" => Ok(Self::UsedInTests), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertClosedByUserAlertInstancesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub classifications: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub commit_sha: Option, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] pub ref_: String, pub state: CodeScanningAlertClosedByUserAlertInstancesItemState, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItem> for CodeScanningAlertClosedByUserAlertInstancesItem { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItem) -> Self { value.clone() } } #[doc = "CodeScanningAlertClosedByUserAlertInstancesItemLocation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "Option::is_none")] pub end_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub end_line: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_line: Option, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemLocation> for CodeScanningAlertClosedByUserAlertInstancesItemLocation { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItemLocation) -> Self { value.clone() } } #[doc = "CodeScanningAlertClosedByUserAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "Option::is_none")] pub text: Option, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemMessage> for CodeScanningAlertClosedByUserAlertInstancesItemMessage { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItemMessage) -> Self { value.clone() } } #[doc = "CodeScanningAlertClosedByUserAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertClosedByUserAlertInstancesItemState { #[serde(rename = "dismissed")] Dismissed, } impl From<&CodeScanningAlertClosedByUserAlertInstancesItemState> for CodeScanningAlertClosedByUserAlertInstancesItemState { fn from(value: &CodeScanningAlertClosedByUserAlertInstancesItemState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertInstancesItemState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Dismissed => write!(f, "dismissed"), } } } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "dismissed" => Ok(Self::Dismissed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertClosedByUserAlertRule"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub full_description: Option, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The severity of the alert."] pub severity: Option, #[serde(default)] pub tags: (), } impl From<&CodeScanningAlertClosedByUserAlertRule> for CodeScanningAlertClosedByUserAlertRule { fn from(value: &CodeScanningAlertClosedByUserAlertRule) -> Self { value.clone() } } #[doc = "The severity of the alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertClosedByUserAlertRuleSeverity { #[serde(rename = "none")] None, #[serde(rename = "note")] Note, #[serde(rename = "warning")] Warning, #[serde(rename = "error")] Error, } impl From<&CodeScanningAlertClosedByUserAlertRuleSeverity> for CodeScanningAlertClosedByUserAlertRuleSeverity { fn from(value: &CodeScanningAlertClosedByUserAlertRuleSeverity) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertRuleSeverity { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::None => write!(f, "none"), Self::Note => write!(f, "note"), Self::Warning => write!(f, "warning"), Self::Error => write!(f, "error"), } } } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), "warning" => Ok(Self::Warning), "error" => Ok(Self::Error), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertClosedByUserAlertState { #[serde(rename = "dismissed")] Dismissed, } impl From<&CodeScanningAlertClosedByUserAlertState> for CodeScanningAlertClosedByUserAlertState { fn from(value: &CodeScanningAlertClosedByUserAlertState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertClosedByUserAlertState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Dismissed => write!(f, "dismissed"), } } } impl std::str::FromStr for CodeScanningAlertClosedByUserAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "dismissed" => Ok(Self::Dismissed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertClosedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertClosedByUserAlertTool"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertClosedByUserAlertTool { #[serde(default, skip_serializing_if = "Option::is_none")] pub guid: Option, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: String, #[doc = "The version of the tool used to detect the alert."] pub version: Option, } impl From<&CodeScanningAlertClosedByUserAlertTool> for CodeScanningAlertClosedByUserAlertTool { fn from(value: &CodeScanningAlertClosedByUserAlertTool) -> Self { value.clone() } } #[doc = "CodeScanningAlertCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"code_scanning_alert created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"alert\","] #[doc = " \"commit_oid\","] #[doc = " \"ref\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"alert\": {"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"commit_oid\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/github-org\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreated { pub action: CodeScanningAlertCreatedAction, pub alert: CodeScanningAlertCreatedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] pub ref_: String, pub repository: Repository, pub sender: GithubOrg, } impl From<&CodeScanningAlertCreated> for CodeScanningAlertCreated { fn from(value: &CodeScanningAlertCreated) -> Self { value.clone() } } #[doc = "CodeScanningAlertCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertCreatedAction { #[serde(rename = "created")] Created, } impl From<&CodeScanningAlertCreatedAction> for CodeScanningAlertCreatedAction { fn from(value: &CodeScanningAlertCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for CodeScanningAlertCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The code scanning alert involved in the event."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] pub dismissed_at: (), pub dismissed_by: (), #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: (), #[doc = "The GitHub URL of the alert resource."] pub html_url: String, pub instances: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub most_recent_instance: Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertCreatedAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertCreatedAlertState, pub tool: CodeScanningAlertCreatedAlertTool, pub url: String, } impl From<&CodeScanningAlertCreatedAlert> for CodeScanningAlertCreatedAlert { fn from(value: &CodeScanningAlertCreatedAlert) -> Self { value.clone() } } #[doc = "CodeScanningAlertCreatedAlertInstancesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub classifications: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub commit_sha: Option, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] pub ref_: String, pub state: CodeScanningAlertCreatedAlertInstancesItemState, } impl From<&CodeScanningAlertCreatedAlertInstancesItem> for CodeScanningAlertCreatedAlertInstancesItem { fn from(value: &CodeScanningAlertCreatedAlertInstancesItem) -> Self { value.clone() } } #[doc = "CodeScanningAlertCreatedAlertInstancesItemLocation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "Option::is_none")] pub end_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub end_line: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_line: Option, } impl From<&CodeScanningAlertCreatedAlertInstancesItemLocation> for CodeScanningAlertCreatedAlertInstancesItemLocation { fn from(value: &CodeScanningAlertCreatedAlertInstancesItemLocation) -> Self { value.clone() } } #[doc = "CodeScanningAlertCreatedAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "Option::is_none")] pub text: Option, } impl From<&CodeScanningAlertCreatedAlertInstancesItemMessage> for CodeScanningAlertCreatedAlertInstancesItemMessage { fn from(value: &CodeScanningAlertCreatedAlertInstancesItemMessage) -> Self { value.clone() } } #[doc = "CodeScanningAlertCreatedAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertCreatedAlertInstancesItemState { #[serde(rename = "open")] Open, #[serde(rename = "dismissed")] Dismissed, } impl From<&CodeScanningAlertCreatedAlertInstancesItemState> for CodeScanningAlertCreatedAlertInstancesItemState { fn from(value: &CodeScanningAlertCreatedAlertInstancesItemState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertCreatedAlertInstancesItemState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Dismissed => write!(f, "dismissed"), } } } impl std::str::FromStr for CodeScanningAlertCreatedAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertCreatedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertCreatedAlertRule"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub full_description: Option, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The severity of the alert."] pub severity: Option, #[serde(default)] pub tags: (), } impl From<&CodeScanningAlertCreatedAlertRule> for CodeScanningAlertCreatedAlertRule { fn from(value: &CodeScanningAlertCreatedAlertRule) -> Self { value.clone() } } #[doc = "The severity of the alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertCreatedAlertRuleSeverity { #[serde(rename = "none")] None, #[serde(rename = "note")] Note, #[serde(rename = "warning")] Warning, #[serde(rename = "error")] Error, } impl From<&CodeScanningAlertCreatedAlertRuleSeverity> for CodeScanningAlertCreatedAlertRuleSeverity { fn from(value: &CodeScanningAlertCreatedAlertRuleSeverity) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertCreatedAlertRuleSeverity { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::None => write!(f, "none"), Self::Note => write!(f, "note"), Self::Warning => write!(f, "warning"), Self::Error => write!(f, "error"), } } } impl std::str::FromStr for CodeScanningAlertCreatedAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), "warning" => Ok(Self::Warning), "error" => Ok(Self::Error), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertCreatedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertCreatedAlertState { #[serde(rename = "open")] Open, #[serde(rename = "dismissed")] Dismissed, } impl From<&CodeScanningAlertCreatedAlertState> for CodeScanningAlertCreatedAlertState { fn from(value: &CodeScanningAlertCreatedAlertState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertCreatedAlertState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Dismissed => write!(f, "dismissed"), } } } impl std::str::FromStr for CodeScanningAlertCreatedAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertCreatedAlertState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertCreatedAlertTool"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertCreatedAlertTool { #[serde(default, skip_serializing_if = "Option::is_none")] pub guid: Option, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: String, #[doc = "The version of the tool used to detect the alert."] pub version: Option, } impl From<&CodeScanningAlertCreatedAlertTool> for CodeScanningAlertCreatedAlertTool { fn from(value: &CodeScanningAlertCreatedAlertTool) -> Self { value.clone() } } #[doc = "CodeScanningAlertEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert$appeared_in_branch\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert$closed_by_user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert$fixed\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert$reopened\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert$reopened_by_user\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum CodeScanningAlertEvent { AppearedInBranch(CodeScanningAlertAppearedInBranch), ClosedByUser(CodeScanningAlertClosedByUser), Created(CodeScanningAlertCreated), Fixed(CodeScanningAlertFixed), Reopened(CodeScanningAlertReopened), ReopenedByUser(CodeScanningAlertReopenedByUser), } impl From<&CodeScanningAlertEvent> for CodeScanningAlertEvent { fn from(value: &CodeScanningAlertEvent) -> Self { value.clone() } } impl From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertAppearedInBranch) -> Self { Self::AppearedInBranch(value) } } impl From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertClosedByUser) -> Self { Self::ClosedByUser(value) } } impl From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertCreated) -> Self { Self::Created(value) } } impl From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertFixed) -> Self { Self::Fixed(value) } } impl From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertReopened) -> Self { Self::Reopened(value) } } impl From for CodeScanningAlertEvent { fn from(value: CodeScanningAlertReopenedByUser) -> Self { Self::ReopenedByUser(value) } } #[doc = "CodeScanningAlertFixed"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"code_scanning_alert fixed event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"alert\","] #[doc = " \"commit_oid\","] #[doc = " \"ref\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"alert\": {"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"instances_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"commit_oid\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/github-org\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixed { pub action: CodeScanningAlertFixedAction, pub alert: CodeScanningAlertFixedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] pub ref_: String, pub repository: Repository, pub sender: GithubOrg, } impl From<&CodeScanningAlertFixed> for CodeScanningAlertFixed { fn from(value: &CodeScanningAlertFixed) -> Self { value.clone() } } #[doc = "CodeScanningAlertFixedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertFixedAction { #[serde(rename = "fixed")] Fixed, } impl From<&CodeScanningAlertFixedAction> for CodeScanningAlertFixedAction { fn from(value: &CodeScanningAlertFixedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertFixedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Fixed => write!(f, "fixed"), } } } impl std::str::FromStr for CodeScanningAlertFixedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertFixedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The code scanning alert involved in the event."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"instances_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] pub dismissed_at: Option>, pub dismissed_by: Option, #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: Option, #[doc = "The GitHub URL of the alert resource."] pub html_url: String, pub instances: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub instances_url: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub most_recent_instance: Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertFixedAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertFixedAlertState, pub tool: CodeScanningAlertFixedAlertTool, pub url: String, } impl From<&CodeScanningAlertFixedAlert> for CodeScanningAlertFixedAlert { fn from(value: &CodeScanningAlertFixedAlert) -> Self { value.clone() } } #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"false positive\","] #[doc = " \"won't fix\","] #[doc = " \"used in tests\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertFixedAlertDismissedReason { #[serde(rename = "false positive")] FalsePositive, #[serde(rename = "won't fix")] WontFix, #[serde(rename = "used in tests")] UsedInTests, } impl From<&CodeScanningAlertFixedAlertDismissedReason> for CodeScanningAlertFixedAlertDismissedReason { fn from(value: &CodeScanningAlertFixedAlertDismissedReason) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertFixedAlertDismissedReason { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::FalsePositive => write!(f, "false positive"), Self::WontFix => write!(f, "won't fix"), Self::UsedInTests => write!(f, "used in tests"), } } } impl std::str::FromStr for CodeScanningAlertFixedAlertDismissedReason { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "false positive" => Ok(Self::FalsePositive), "won't fix" => Ok(Self::WontFix), "used in tests" => Ok(Self::UsedInTests), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertFixedAlertDismissedReason { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertFixedAlertInstancesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub classifications: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub commit_sha: Option, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] pub ref_: String, pub state: CodeScanningAlertFixedAlertInstancesItemState, } impl From<&CodeScanningAlertFixedAlertInstancesItem> for CodeScanningAlertFixedAlertInstancesItem { fn from(value: &CodeScanningAlertFixedAlertInstancesItem) -> Self { value.clone() } } #[doc = "CodeScanningAlertFixedAlertInstancesItemLocation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "Option::is_none")] pub end_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub end_line: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_line: Option, } impl From<&CodeScanningAlertFixedAlertInstancesItemLocation> for CodeScanningAlertFixedAlertInstancesItemLocation { fn from(value: &CodeScanningAlertFixedAlertInstancesItemLocation) -> Self { value.clone() } } #[doc = "CodeScanningAlertFixedAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "Option::is_none")] pub text: Option, } impl From<&CodeScanningAlertFixedAlertInstancesItemMessage> for CodeScanningAlertFixedAlertInstancesItemMessage { fn from(value: &CodeScanningAlertFixedAlertInstancesItemMessage) -> Self { value.clone() } } #[doc = "CodeScanningAlertFixedAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertFixedAlertInstancesItemState { #[serde(rename = "fixed")] Fixed, } impl From<&CodeScanningAlertFixedAlertInstancesItemState> for CodeScanningAlertFixedAlertInstancesItemState { fn from(value: &CodeScanningAlertFixedAlertInstancesItemState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertFixedAlertInstancesItemState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Fixed => write!(f, "fixed"), } } } impl std::str::FromStr for CodeScanningAlertFixedAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertFixedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertFixedAlertRule"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub full_description: Option, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The severity of the alert."] pub severity: Option, #[serde(default)] pub tags: (), } impl From<&CodeScanningAlertFixedAlertRule> for CodeScanningAlertFixedAlertRule { fn from(value: &CodeScanningAlertFixedAlertRule) -> Self { value.clone() } } #[doc = "The severity of the alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertFixedAlertRuleSeverity { #[serde(rename = "none")] None, #[serde(rename = "note")] Note, #[serde(rename = "warning")] Warning, #[serde(rename = "error")] Error, } impl From<&CodeScanningAlertFixedAlertRuleSeverity> for CodeScanningAlertFixedAlertRuleSeverity { fn from(value: &CodeScanningAlertFixedAlertRuleSeverity) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertFixedAlertRuleSeverity { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::None => write!(f, "none"), Self::Note => write!(f, "note"), Self::Warning => write!(f, "warning"), Self::Error => write!(f, "error"), } } } impl std::str::FromStr for CodeScanningAlertFixedAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), "warning" => Ok(Self::Warning), "error" => Ok(Self::Error), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertFixedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertFixedAlertState { #[serde(rename = "fixed")] Fixed, } impl From<&CodeScanningAlertFixedAlertState> for CodeScanningAlertFixedAlertState { fn from(value: &CodeScanningAlertFixedAlertState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertFixedAlertState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Fixed => write!(f, "fixed"), } } } impl std::str::FromStr for CodeScanningAlertFixedAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertFixedAlertState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertFixedAlertTool"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertFixedAlertTool { #[serde(default, skip_serializing_if = "Option::is_none")] pub guid: Option, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: String, #[doc = "The version of the tool used to detect the alert."] pub version: Option, } impl From<&CodeScanningAlertFixedAlertTool> for CodeScanningAlertFixedAlertTool { fn from(value: &CodeScanningAlertFixedAlertTool) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopened"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"code_scanning_alert reopened event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"alert\","] #[doc = " \"commit_oid\","] #[doc = " \"ref\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"reopened\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"alert\": {"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"commit_oid\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/github-org\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopened { pub action: CodeScanningAlertReopenedAction, pub alert: CodeScanningAlertReopenedAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] pub ref_: String, pub repository: Repository, pub sender: GithubOrg, } impl From<&CodeScanningAlertReopened> for CodeScanningAlertReopened { fn from(value: &CodeScanningAlertReopened) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"reopened\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedAction { #[serde(rename = "reopened")] Reopened, } impl From<&CodeScanningAlertReopenedAction> for CodeScanningAlertReopenedAction { fn from(value: &CodeScanningAlertReopenedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Reopened => write!(f, "reopened"), } } } impl std::str::FromStr for CodeScanningAlertReopenedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "reopened" => Ok(Self::Reopened), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The code scanning alert involved in the event."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] pub dismissed_at: (), pub dismissed_by: (), #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: (), #[doc = "The GitHub URL of the alert resource."] pub html_url: String, pub instances: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub most_recent_instance: Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertReopenedAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertReopenedAlertState, pub tool: CodeScanningAlertReopenedAlertTool, pub url: String, } impl From<&CodeScanningAlertReopenedAlert> for CodeScanningAlertReopenedAlert { fn from(value: &CodeScanningAlertReopenedAlert) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedAlertInstancesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub classifications: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub commit_sha: Option, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] pub ref_: String, pub state: CodeScanningAlertReopenedAlertInstancesItemState, } impl From<&CodeScanningAlertReopenedAlertInstancesItem> for CodeScanningAlertReopenedAlertInstancesItem { fn from(value: &CodeScanningAlertReopenedAlertInstancesItem) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedAlertInstancesItemLocation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "Option::is_none")] pub end_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub end_line: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_line: Option, } impl From<&CodeScanningAlertReopenedAlertInstancesItemLocation> for CodeScanningAlertReopenedAlertInstancesItemLocation { fn from(value: &CodeScanningAlertReopenedAlertInstancesItemLocation) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "Option::is_none")] pub text: Option, } impl From<&CodeScanningAlertReopenedAlertInstancesItemMessage> for CodeScanningAlertReopenedAlertInstancesItemMessage { fn from(value: &CodeScanningAlertReopenedAlertInstancesItemMessage) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedAlertInstancesItemState { #[serde(rename = "open")] Open, } impl From<&CodeScanningAlertReopenedAlertInstancesItemState> for CodeScanningAlertReopenedAlertInstancesItemState { fn from(value: &CodeScanningAlertReopenedAlertInstancesItemState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedAlertInstancesItemState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), } } } impl std::str::FromStr for CodeScanningAlertReopenedAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertReopenedAlertRule"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"full_description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"help\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"tags\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub full_description: Option, #[serde(default)] pub help: (), #[doc = "A unique identifier for the rule used to detect the alert."] pub id: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The severity of the alert."] pub severity: Option, #[serde(default)] pub tags: (), } impl From<&CodeScanningAlertReopenedAlertRule> for CodeScanningAlertReopenedAlertRule { fn from(value: &CodeScanningAlertReopenedAlertRule) -> Self { value.clone() } } #[doc = "The severity of the alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedAlertRuleSeverity { #[serde(rename = "none")] None, #[serde(rename = "note")] Note, #[serde(rename = "warning")] Warning, #[serde(rename = "error")] Error, } impl From<&CodeScanningAlertReopenedAlertRuleSeverity> for CodeScanningAlertReopenedAlertRuleSeverity { fn from(value: &CodeScanningAlertReopenedAlertRuleSeverity) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedAlertRuleSeverity { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::None => write!(f, "none"), Self::Note => write!(f, "note"), Self::Warning => write!(f, "warning"), Self::Error => write!(f, "error"), } } } impl std::str::FromStr for CodeScanningAlertReopenedAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), "warning" => Ok(Self::Warning), "error" => Ok(Self::Error), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"dismissed\","] #[doc = " \"fixed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedAlertState { #[serde(rename = "open")] Open, #[serde(rename = "dismissed")] Dismissed, #[serde(rename = "fixed")] Fixed, } impl From<&CodeScanningAlertReopenedAlertState> for CodeScanningAlertReopenedAlertState { fn from(value: &CodeScanningAlertReopenedAlertState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedAlertState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Dismissed => write!(f, "dismissed"), Self::Fixed => write!(f, "fixed"), } } } impl std::str::FromStr for CodeScanningAlertReopenedAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "dismissed" => Ok(Self::Dismissed), "fixed" => Ok(Self::Fixed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedAlertState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertReopenedAlertTool"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"guid\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedAlertTool { #[serde(default, skip_serializing_if = "Option::is_none")] pub guid: Option, #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: String, #[doc = "The version of the tool used to detect the alert."] pub version: Option, } impl From<&CodeScanningAlertReopenedAlertTool> for CodeScanningAlertReopenedAlertTool { fn from(value: &CodeScanningAlertReopenedAlertTool) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedByUser"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"code_scanning_alert reopened_by_user event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"alert\","] #[doc = " \"commit_oid\","] #[doc = " \"ref\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"reopened_by_user\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"alert\": {"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"commit_oid\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"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.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUser { pub action: CodeScanningAlertReopenedByUserAction, pub alert: CodeScanningAlertReopenedByUserAlert, #[doc = "The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] pub commit_oid: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty."] #[serde(rename = "ref")] pub ref_: String, pub repository: Repository, pub sender: User, } impl From<&CodeScanningAlertReopenedByUser> for CodeScanningAlertReopenedByUser { fn from(value: &CodeScanningAlertReopenedByUser) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedByUserAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"reopened_by_user\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedByUserAction { #[serde(rename = "reopened_by_user")] ReopenedByUser, } impl From<&CodeScanningAlertReopenedByUserAction> for CodeScanningAlertReopenedByUserAction { fn from(value: &CodeScanningAlertReopenedByUserAction) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::ReopenedByUser => write!(f, "reopened_by_user"), } } } impl std::str::FromStr for CodeScanningAlertReopenedByUserAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "reopened_by_user" => Ok(Self::ReopenedByUser), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The code scanning alert involved in the event."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The code scanning alert involved in the event.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"dismissed_at\","] #[doc = " \"dismissed_by\","] #[doc = " \"dismissed_reason\","] #[doc = " \"html_url\","] #[doc = " \"instances\","] #[doc = " \"number\","] #[doc = " \"rule\","] #[doc = " \"state\","] #[doc = " \"tool\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"description\": \"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"dismissed_at\": {"] #[doc = " \"description\": \"The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"dismissed_reason\": {"] #[doc = " \"description\": \"The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.\","] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"The GitHub URL of the alert resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"instances\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"most_recent_instance\": {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"description\": \"The code scanning alert number.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"rule\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"tool\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlert { #[doc = "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`"] pub created_at: chrono::DateTime, #[doc = "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."] pub dismissed_at: (), pub dismissed_by: (), #[doc = "The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."] pub dismissed_reason: (), #[doc = "The GitHub URL of the alert resource."] pub html_url: String, pub instances: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub most_recent_instance: Option, #[doc = "The code scanning alert number."] pub number: i64, pub rule: CodeScanningAlertReopenedByUserAlertRule, #[doc = "State of a code scanning alert."] pub state: CodeScanningAlertReopenedByUserAlertState, pub tool: CodeScanningAlertReopenedByUserAlertTool, pub url: String, } impl From<&CodeScanningAlertReopenedByUserAlert> for CodeScanningAlertReopenedByUserAlert { fn from(value: &CodeScanningAlertReopenedByUserAlert) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedByUserAlertInstancesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/alert-instance\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItem { #[doc = "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."] pub analysis_key: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub classifications: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub commit_sha: Option, #[doc = "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed."] pub environment: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The full Git reference, formatted as `refs/heads/`."] #[serde(rename = "ref")] pub ref_: String, pub state: CodeScanningAlertReopenedByUserAlertInstancesItemState, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItem> for CodeScanningAlertReopenedByUserAlertInstancesItem { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItem) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedByUserAlertInstancesItemLocation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"end_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"end_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"start_column\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"start_line\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItemLocation { #[serde(default, skip_serializing_if = "Option::is_none")] pub end_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub end_line: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_column: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub start_line: Option, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemLocation> for CodeScanningAlertReopenedByUserAlertInstancesItemLocation { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItemLocation) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedByUserAlertInstancesItemMessage"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"text\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertInstancesItemMessage { #[serde(default, skip_serializing_if = "Option::is_none")] pub text: Option, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemMessage> for CodeScanningAlertReopenedByUserAlertInstancesItemMessage { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItemMessage) -> Self { value.clone() } } #[doc = "CodeScanningAlertReopenedByUserAlertInstancesItemState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedByUserAlertInstancesItemState { #[serde(rename = "open")] Open, } impl From<&CodeScanningAlertReopenedByUserAlertInstancesItemState> for CodeScanningAlertReopenedByUserAlertInstancesItemState { fn from(value: &CodeScanningAlertReopenedByUserAlertInstancesItemState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertInstancesItemState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), } } } impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertInstancesItemState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertReopenedByUserAlertRule"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"id\","] #[doc = " \"severity\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"A short description of the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"A unique identifier for the rule used to detect the alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"severity\": {"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\","] #[doc = " null"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertRule { #[doc = "A short description of the rule used to detect the alert."] pub description: String, #[doc = "A unique identifier for the rule used to detect the alert."] pub id: String, #[doc = "The severity of the alert."] pub severity: Option, } impl From<&CodeScanningAlertReopenedByUserAlertRule> for CodeScanningAlertReopenedByUserAlertRule { fn from(value: &CodeScanningAlertReopenedByUserAlertRule) -> Self { value.clone() } } #[doc = "The severity of the alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The severity of the alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"none\","] #[doc = " \"note\","] #[doc = " \"warning\","] #[doc = " \"error\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedByUserAlertRuleSeverity { #[serde(rename = "none")] None, #[serde(rename = "note")] Note, #[serde(rename = "warning")] Warning, #[serde(rename = "error")] Error, } impl From<&CodeScanningAlertReopenedByUserAlertRuleSeverity> for CodeScanningAlertReopenedByUserAlertRuleSeverity { fn from(value: &CodeScanningAlertReopenedByUserAlertRuleSeverity) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertRuleSeverity { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::None => write!(f, "none"), Self::Note => write!(f, "note"), Self::Warning => write!(f, "warning"), Self::Error => write!(f, "error"), } } } impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "none" => Ok(Self::None), "note" => Ok(Self::Note), "warning" => Ok(Self::Warning), "error" => Ok(Self::Error), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertRuleSeverity { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "State of a code scanning alert."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"State of a code scanning alert.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CodeScanningAlertReopenedByUserAlertState { #[serde(rename = "open")] Open, } impl From<&CodeScanningAlertReopenedByUserAlertState> for CodeScanningAlertReopenedByUserAlertState { fn from(value: &CodeScanningAlertReopenedByUserAlertState) -> Self { value.clone() } } impl ::std::fmt::Display for CodeScanningAlertReopenedByUserAlertState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), } } } impl std::str::FromStr for CodeScanningAlertReopenedByUserAlertState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CodeScanningAlertReopenedByUserAlertState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "CodeScanningAlertReopenedByUserAlertTool"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"name\","] #[doc = " \"version\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the tool used to generate the code scanning analysis alert.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"version\": {"] #[doc = " \"description\": \"The version of the tool used to detect the alert.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CodeScanningAlertReopenedByUserAlertTool { #[doc = "The name of the tool used to generate the code scanning analysis alert."] pub name: String, #[doc = "The version of the tool used to detect the alert."] pub version: Option, } impl From<&CodeScanningAlertReopenedByUserAlertTool> for CodeScanningAlertReopenedByUserAlertTool { fn from(value: &CodeScanningAlertReopenedByUserAlertTool) -> Self { value.clone() } } #[doc = "Commit"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Commit\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"added\","] #[doc = " \"author\","] #[doc = " \"committer\","] #[doc = " \"distinct\","] #[doc = " \"id\","] #[doc = " \"message\","] #[doc = " \"modified\","] #[doc = " \"removed\","] #[doc = " \"timestamp\","] #[doc = " \"tree_id\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"added\": {"] #[doc = " \"description\": \"An array of files added in the commit.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"author\": {"] #[doc = " \"$ref\": \"#/definitions/committer\""] #[doc = " },"] #[doc = " \"committer\": {"] #[doc = " \"$ref\": \"#/definitions/committer\""] #[doc = " },"] #[doc = " \"distinct\": {"] #[doc = " \"description\": \"Whether this commit is distinct from any that have been pushed before.\","] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"message\": {"] #[doc = " \"description\": \"The commit message.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"modified\": {"] #[doc = " \"description\": \"An array of files modified by the commit.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"removed\": {"] #[doc = " \"description\": \"An array of files removed in the commit.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"timestamp\": {"] #[doc = " \"description\": \"The ISO 8601 timestamp of the commit.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"tree_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL that points to the commit API resource.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Commit { #[doc = "An array of files added in the commit."] pub added: Vec, pub author: Committer, pub committer: Committer, #[doc = "Whether this commit is distinct from any that have been pushed before."] pub distinct: bool, pub id: String, #[doc = "The commit message."] pub message: String, #[doc = "An array of files modified by the commit."] pub modified: Vec, #[doc = "An array of files removed in the commit."] pub removed: Vec, #[doc = "The ISO 8601 timestamp of the commit."] pub timestamp: String, pub tree_id: String, #[doc = "URL that points to the commit API resource."] pub url: String, } impl From<&Commit> for Commit { fn from(value: &Commit) -> Self { value.clone() } } #[doc = "A commit comment is created. The type of activity is specified in the `action` property. "] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"commit_comment created event\","] #[doc = " \"description\": \"A commit comment is created. The type of activity is specified in the `action` property. \","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"comment\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"description\": \"The action performed. Can be `created`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"comment\": {"] #[doc = " \"description\": \"The [commit comment](https://docs.github.com/en/rest/reference/repos#get-a-commit-comment) resource.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"commit_id\","] #[doc = " \"created_at\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"line\","] #[doc = " \"node_id\","] #[doc = " \"path\","] #[doc = " \"position\","] #[doc = " \"updated_at\","] #[doc = " \"url\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"description\": \"The text of the comment.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"commit_id\": {"] #[doc = " \"description\": \"The SHA of the commit to which the comment applies.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The ID of the commit comment.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"line\": {"] #[doc = " \"description\": \"The line of the blob to which the comment applies. The last line of the range for a multi-line comment\","] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"description\": \"The node ID of the commit comment.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"description\": \"The relative path of the file to which the comment applies.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"position\": {"] #[doc = " \"description\": \"The line index in the diff to which the comment applies.\","] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CommitCommentCreated { #[doc = "The action performed. Can be `created`."] pub action: CommitCommentCreatedAction, pub comment: CommitCommentCreatedComment, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&CommitCommentCreated> for CommitCommentCreated { fn from(value: &CommitCommentCreated) -> Self { value.clone() } } #[doc = "The action performed. Can be `created`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The action performed. Can be `created`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CommitCommentCreatedAction { #[serde(rename = "created")] Created, } impl From<&CommitCommentCreatedAction> for CommitCommentCreatedAction { fn from(value: &CommitCommentCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for CommitCommentCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for CommitCommentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CommitCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CommitCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CommitCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [commit comment](https://docs.github.com/en/rest/reference/repos#get-a-commit-comment) resource."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [commit comment](https://docs.github.com/en/rest/reference/repos#get-a-commit-comment) resource.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"commit_id\","] #[doc = " \"created_at\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"line\","] #[doc = " \"node_id\","] #[doc = " \"path\","] #[doc = " \"position\","] #[doc = " \"updated_at\","] #[doc = " \"url\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"description\": \"The text of the comment.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"commit_id\": {"] #[doc = " \"description\": \"The SHA of the commit to which the comment applies.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The ID of the commit comment.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"line\": {"] #[doc = " \"description\": \"The line of the blob to which the comment applies. The last line of the range for a multi-line comment\","] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"description\": \"The node ID of the commit comment.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"path\": {"] #[doc = " \"description\": \"The relative path of the file to which the comment applies.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"position\": {"] #[doc = " \"description\": \"The line index in the diff to which the comment applies.\","] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CommitCommentCreatedComment { pub author_association: AuthorAssociation, #[doc = "The text of the comment."] pub body: String, #[doc = "The SHA of the commit to which the comment applies."] pub commit_id: String, pub created_at: String, pub html_url: String, #[doc = "The ID of the commit comment."] pub id: i64, #[doc = "The line of the blob to which the comment applies. The last line of the range for a multi-line comment"] pub line: Option, #[doc = "The node ID of the commit comment."] pub node_id: String, #[doc = "The relative path of the file to which the comment applies."] pub path: Option, #[doc = "The line index in the diff to which the comment applies."] pub position: Option, pub updated_at: String, pub url: String, pub user: User, } impl From<&CommitCommentCreatedComment> for CommitCommentCreatedComment { fn from(value: &CommitCommentCreatedComment) -> Self { value.clone() } } #[doc = "CommitCommentEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/commit_comment$created\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CommitCommentEvent(pub CommitCommentCreated); impl ::std::ops::Deref for CommitCommentEvent { type Target = CommitCommentCreated; fn deref(&self) -> &CommitCommentCreated { &self.0 } } impl From for CommitCommentCreated { fn from(value: CommitCommentEvent) -> Self { value.0 } } impl From<&CommitCommentEvent> for CommitCommentEvent { fn from(value: &CommitCommentEvent) -> Self { value.clone() } } impl From for CommitCommentEvent { fn from(value: CommitCommentCreated) -> Self { Self(value) } } #[doc = "CommitSimple"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"SimpleCommit\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author\","] #[doc = " \"committer\","] #[doc = " \"id\","] #[doc = " \"message\","] #[doc = " \"timestamp\","] #[doc = " \"tree_id\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author\": {"] #[doc = " \"$ref\": \"#/definitions/committer\""] #[doc = " },"] #[doc = " \"committer\": {"] #[doc = " \"$ref\": \"#/definitions/committer\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"message\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"timestamp\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"tree_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CommitSimple { pub author: Committer, pub committer: Committer, pub id: String, pub message: String, pub timestamp: String, pub tree_id: String, } impl From<&CommitSimple> for CommitSimple { fn from(value: &CommitSimple) -> Self { value.clone() } } #[doc = "Metaproperties for Git author/committer information."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Committer\","] #[doc = " \"description\": \"Metaproperties for Git author/committer information.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"email\","] #[doc = " \"name\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"date\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"email\": {"] #[doc = " \"description\": \"The git author's email address.\","] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"email\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The git author's name.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"username\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Committer { #[serde(default, skip_serializing_if = "Option::is_none")] pub date: Option>, #[doc = "The git author's email address."] pub email: Option, #[doc = "The git author's name."] pub name: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub username: Option, } impl From<&Committer> for Committer { fn from(value: &Committer) -> Self { value.clone() } } #[doc = "ContentReferenceCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"content_reference created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"content_reference\","] #[doc = " \"installation\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_reference\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"reference\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"reference\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct ContentReferenceCreated { pub action: ContentReferenceCreatedAction, pub content_reference: ContentReferenceCreatedContentReference, pub installation: InstallationLite, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&ContentReferenceCreated> for ContentReferenceCreated { fn from(value: &ContentReferenceCreated) -> Self { value.clone() } } #[doc = "ContentReferenceCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum ContentReferenceCreatedAction { #[serde(rename = "created")] Created, } impl From<&ContentReferenceCreatedAction> for ContentReferenceCreatedAction { fn from(value: &ContentReferenceCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for ContentReferenceCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for ContentReferenceCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for ContentReferenceCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for ContentReferenceCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "ContentReferenceCreatedContentReference"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"reference\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"reference\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct ContentReferenceCreatedContentReference { pub id: i64, pub node_id: String, pub reference: String, } impl From<&ContentReferenceCreatedContentReference> for ContentReferenceCreatedContentReference { fn from(value: &ContentReferenceCreatedContentReference) -> Self { value.clone() } } #[doc = "ContentReferenceEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/content_reference$created\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ContentReferenceEvent(pub ContentReferenceCreated); impl ::std::ops::Deref for ContentReferenceEvent { type Target = ContentReferenceCreated; fn deref(&self) -> &ContentReferenceCreated { &self.0 } } impl From for ContentReferenceCreated { fn from(value: ContentReferenceEvent) -> Self { value.0 } } impl From<&ContentReferenceEvent> for ContentReferenceEvent { fn from(value: &ContentReferenceEvent) -> Self { value.clone() } } impl From for ContentReferenceEvent { fn from(value: ContentReferenceCreated) -> Self { Self(value) } } #[doc = "A Git branch or tag is created."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"create event\","] #[doc = " \"description\": \"A Git branch or tag is created.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"description\","] #[doc = " \"master_branch\","] #[doc = " \"pusher_type\","] #[doc = " \"ref\","] #[doc = " \"ref_type\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"description\": {"] #[doc = " \"description\": \"The repository's current description.\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"master_branch\": {"] #[doc = " \"description\": \"The name of the repository's default branch (usually `main`).\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"pusher_type\": {"] #[doc = " \"description\": \"The pusher type for the event. Can be either `user` or a deploy key.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"ref_type\": {"] #[doc = " \"description\": \"The type of Git ref object created in the repository. Can be either `branch` or `tag`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"tag\","] #[doc = " \"branch\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct CreateEvent { #[doc = "The repository's current description."] pub description: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[doc = "The name of the repository's default branch (usually `main`)."] pub master_branch: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The pusher type for the event. Can be either `user` or a deploy key."] pub pusher_type: String, #[doc = "The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource."] #[serde(rename = "ref")] pub ref_: String, #[doc = "The type of Git ref object created in the repository. Can be either `branch` or `tag`."] pub ref_type: CreateEventRefType, pub repository: Repository, pub sender: User, } impl From<&CreateEvent> for CreateEvent { fn from(value: &CreateEvent) -> Self { value.clone() } } #[doc = "The type of Git ref object created in the repository. Can be either `branch` or `tag`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The type of Git ref object created in the repository. Can be either `branch` or `tag`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"tag\","] #[doc = " \"branch\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum CreateEventRefType { #[serde(rename = "tag")] Tag, #[serde(rename = "branch")] Branch, } impl From<&CreateEventRefType> for CreateEventRefType { fn from(value: &CreateEventRefType) -> Self { value.clone() } } impl ::std::fmt::Display for CreateEventRefType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Tag => write!(f, "tag"), Self::Branch => write!(f, "branch"), } } } impl std::str::FromStr for CreateEventRefType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "tag" => Ok(Self::Tag), "branch" => Ok(Self::Branch), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for CreateEventRefType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for CreateEventRefType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for CreateEventRefType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "A Git branch or tag is deleted."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"delete event\","] #[doc = " \"description\": \"A Git branch or tag is deleted.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"pusher_type\","] #[doc = " \"ref\","] #[doc = " \"ref_type\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"pusher_type\": {"] #[doc = " \"description\": \"The pusher type for the event. Can be either `user` or a deploy key.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"description\": \"The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"ref_type\": {"] #[doc = " \"description\": \"The type of Git ref object deleted in the repository. Can be either `branch` or `tag`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"tag\","] #[doc = " \"branch\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeleteEvent { #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The pusher type for the event. Can be either `user` or a deploy key."] pub pusher_type: String, #[doc = "The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource."] #[serde(rename = "ref")] pub ref_: String, #[doc = "The type of Git ref object deleted in the repository. Can be either `branch` or `tag`."] pub ref_type: DeleteEventRefType, pub repository: Repository, pub sender: User, } impl From<&DeleteEvent> for DeleteEvent { fn from(value: &DeleteEvent) -> Self { value.clone() } } #[doc = "The type of Git ref object deleted in the repository. Can be either `branch` or `tag`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The type of Git ref object deleted in the repository. Can be either `branch` or `tag`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"tag\","] #[doc = " \"branch\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DeleteEventRefType { #[serde(rename = "tag")] Tag, #[serde(rename = "branch")] Branch, } impl From<&DeleteEventRefType> for DeleteEventRefType { fn from(value: &DeleteEventRefType) -> Self { value.clone() } } impl ::std::fmt::Display for DeleteEventRefType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Tag => write!(f, "tag"), Self::Branch => write!(f, "branch"), } } } impl std::str::FromStr for DeleteEventRefType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "tag" => Ok(Self::Tag), "branch" => Ok(Self::Branch), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DeleteEventRefType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DeleteEventRefType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DeleteEventRefType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DeployKeyCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"deploy_key created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"key\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"key\": {"] #[doc = " \"description\": \"The [`deploy key`](https://docs.github.com/en/rest/reference/repos#get-a-deploy-key) resource.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"id\","] #[doc = " \"key\","] #[doc = " \"read_only\","] #[doc = " \"title\","] #[doc = " \"url\","] #[doc = " \"verified\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"key\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"read_only\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"verified\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeployKeyCreated { pub action: DeployKeyCreatedAction, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, pub key: DeployKeyCreatedKey, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DeployKeyCreated> for DeployKeyCreated { fn from(value: &DeployKeyCreated) -> Self { value.clone() } } #[doc = "DeployKeyCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DeployKeyCreatedAction { #[serde(rename = "created")] Created, } impl From<&DeployKeyCreatedAction> for DeployKeyCreatedAction { fn from(value: &DeployKeyCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DeployKeyCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for DeployKeyCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DeployKeyCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DeployKeyCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DeployKeyCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [`deploy key`](https://docs.github.com/en/rest/reference/repos#get-a-deploy-key) resource."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [`deploy key`](https://docs.github.com/en/rest/reference/repos#get-a-deploy-key) resource.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"id\","] #[doc = " \"key\","] #[doc = " \"read_only\","] #[doc = " \"title\","] #[doc = " \"url\","] #[doc = " \"verified\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"key\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"read_only\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"verified\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeployKeyCreatedKey { pub created_at: String, pub id: i64, pub key: String, pub read_only: bool, pub title: String, pub url: String, pub verified: bool, } impl From<&DeployKeyCreatedKey> for DeployKeyCreatedKey { fn from(value: &DeployKeyCreatedKey) -> Self { value.clone() } } #[doc = "DeployKeyDeleted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"deploy_key deleted event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"key\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"key\": {"] #[doc = " \"description\": \"The [`deploy key`](https://docs.github.com/en/rest/reference/repos#get-a-deploy-key) resource.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"id\","] #[doc = " \"key\","] #[doc = " \"read_only\","] #[doc = " \"title\","] #[doc = " \"url\","] #[doc = " \"verified\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"key\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"read_only\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"verified\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeployKeyDeleted { pub action: DeployKeyDeletedAction, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, pub key: DeployKeyDeletedKey, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DeployKeyDeleted> for DeployKeyDeleted { fn from(value: &DeployKeyDeleted) -> Self { value.clone() } } #[doc = "DeployKeyDeletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DeployKeyDeletedAction { #[serde(rename = "deleted")] Deleted, } impl From<&DeployKeyDeletedAction> for DeployKeyDeletedAction { fn from(value: &DeployKeyDeletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DeployKeyDeletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Deleted => write!(f, "deleted"), } } } impl std::str::FromStr for DeployKeyDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DeployKeyDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DeployKeyDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DeployKeyDeletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [`deploy key`](https://docs.github.com/en/rest/reference/repos#get-a-deploy-key) resource."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [`deploy key`](https://docs.github.com/en/rest/reference/repos#get-a-deploy-key) resource.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"id\","] #[doc = " \"key\","] #[doc = " \"read_only\","] #[doc = " \"title\","] #[doc = " \"url\","] #[doc = " \"verified\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"key\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"read_only\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"verified\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeployKeyDeletedKey { pub created_at: String, pub id: i64, pub key: String, pub read_only: bool, pub title: String, pub url: String, pub verified: bool, } impl From<&DeployKeyDeletedKey> for DeployKeyDeletedKey { fn from(value: &DeployKeyDeletedKey) -> Self { value.clone() } } #[doc = "DeployKeyEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deploy_key$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deploy_key$deleted\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum DeployKeyEvent { Created(DeployKeyCreated), Deleted(DeployKeyDeleted), } impl From<&DeployKeyEvent> for DeployKeyEvent { fn from(value: &DeployKeyEvent) -> Self { value.clone() } } impl From for DeployKeyEvent { fn from(value: DeployKeyCreated) -> Self { Self::Created(value) } } impl From for DeployKeyEvent { fn from(value: DeployKeyDeleted) -> Self { Self::Deleted(value) } } #[doc = "DeploymentCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"deployment created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"deployment\","] #[doc = " \"repository\","] #[doc = " \"sender\","] #[doc = " \"workflow\","] #[doc = " \"workflow_run\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"description\": \"The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"creator\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"original_environment\","] #[doc = " \"payload\","] #[doc = " \"ref\","] #[doc = " \"repository_url\","] #[doc = " \"sha\","] #[doc = " \"statuses_url\","] #[doc = " \"task\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"creator\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"original_environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"payload\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"statuses_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"task\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"workflow\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"workflow_run\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentCreated { pub action: DeploymentCreatedAction, pub deployment: DeploymentCreatedDeployment, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, pub workflow: (), pub workflow_run: (), } impl From<&DeploymentCreated> for DeploymentCreated { fn from(value: &DeploymentCreated) -> Self { value.clone() } } #[doc = "DeploymentCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DeploymentCreatedAction { #[serde(rename = "created")] Created, } impl From<&DeploymentCreatedAction> for DeploymentCreatedAction { fn from(value: &DeploymentCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DeploymentCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for DeploymentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DeploymentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DeploymentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DeploymentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"creator\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"original_environment\","] #[doc = " \"payload\","] #[doc = " \"ref\","] #[doc = " \"repository_url\","] #[doc = " \"sha\","] #[doc = " \"statuses_url\","] #[doc = " \"task\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"creator\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"original_environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"payload\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"statuses_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"task\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentCreatedDeployment { pub created_at: String, pub creator: User, pub description: (), pub environment: String, pub id: i64, pub node_id: String, pub original_environment: String, pub payload: DeploymentCreatedDeploymentPayload, #[serde(default, skip_serializing_if = "Option::is_none")] pub performed_via_github_app: Option, #[serde(rename = "ref")] pub ref_: String, pub repository_url: String, pub sha: String, pub statuses_url: String, pub task: String, pub updated_at: String, pub url: String, } impl From<&DeploymentCreatedDeployment> for DeploymentCreatedDeployment { fn from(value: &DeploymentCreatedDeployment) -> Self { value.clone() } } #[doc = "DeploymentCreatedDeploymentPayload"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentCreatedDeploymentPayload {} impl From<&DeploymentCreatedDeploymentPayload> for DeploymentCreatedDeploymentPayload { fn from(value: &DeploymentCreatedDeploymentPayload) -> Self { value.clone() } } #[doc = "DeploymentEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deployment$created\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeploymentEvent(pub DeploymentCreated); impl ::std::ops::Deref for DeploymentEvent { type Target = DeploymentCreated; fn deref(&self) -> &DeploymentCreated { &self.0 } } impl From for DeploymentCreated { fn from(value: DeploymentEvent) -> Self { value.0 } } impl From<&DeploymentEvent> for DeploymentEvent { fn from(value: &DeploymentEvent) -> Self { value.clone() } } impl From for DeploymentEvent { fn from(value: DeploymentCreated) -> Self { Self(value) } } #[doc = "DeploymentStatusCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"deployment_status created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"deployment\","] #[doc = " \"deployment_status\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployment\": {"] #[doc = " \"description\": \"The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments) that this status is associated with.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"creator\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"original_environment\","] #[doc = " \"payload\","] #[doc = " \"performed_via_github_app\","] #[doc = " \"ref\","] #[doc = " \"repository_url\","] #[doc = " \"sha\","] #[doc = " \"statuses_url\","] #[doc = " \"task\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"creator\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"original_environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"payload\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"statuses_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"task\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"deployment_status\": {"] #[doc = " \"description\": \"The [deployment status](https://docs.github.com/en/rest/reference/repos#list-deployment-statuses).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"creator\","] #[doc = " \"deployment_url\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"repository_url\","] #[doc = " \"state\","] #[doc = " \"target_url\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"creator\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"deployment_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"description\": \"The optional human-readable description added to the status.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"The new state. Can be `pending`, `success`, `failure`, or `error`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"target_url\": {"] #[doc = " \"description\": \"The optional link added to the status.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreated { pub action: DeploymentStatusCreatedAction, pub deployment: DeploymentStatusCreatedDeployment, pub deployment_status: DeploymentStatusCreatedDeploymentStatus, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DeploymentStatusCreated> for DeploymentStatusCreated { fn from(value: &DeploymentStatusCreated) -> Self { value.clone() } } #[doc = "DeploymentStatusCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DeploymentStatusCreatedAction { #[serde(rename = "created")] Created, } impl From<&DeploymentStatusCreatedAction> for DeploymentStatusCreatedAction { fn from(value: &DeploymentStatusCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DeploymentStatusCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for DeploymentStatusCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DeploymentStatusCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments) that this status is associated with."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [deployment](https://docs.github.com/en/rest/reference/repos#list-deployments) that this status is associated with.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"creator\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"original_environment\","] #[doc = " \"payload\","] #[doc = " \"performed_via_github_app\","] #[doc = " \"ref\","] #[doc = " \"repository_url\","] #[doc = " \"sha\","] #[doc = " \"statuses_url\","] #[doc = " \"task\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"creator\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"original_environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"payload\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"ref\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"statuses_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"task\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreatedDeployment { pub created_at: String, pub creator: User, pub description: (), pub environment: String, pub id: i64, pub node_id: String, pub original_environment: String, pub payload: DeploymentStatusCreatedDeploymentPayload, pub performed_via_github_app: Option, #[serde(rename = "ref")] pub ref_: String, pub repository_url: String, pub sha: String, pub statuses_url: String, pub task: String, pub updated_at: String, pub url: String, } impl From<&DeploymentStatusCreatedDeployment> for DeploymentStatusCreatedDeployment { fn from(value: &DeploymentStatusCreatedDeployment) -> Self { value.clone() } } #[doc = "DeploymentStatusCreatedDeploymentPayload"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreatedDeploymentPayload {} impl From<&DeploymentStatusCreatedDeploymentPayload> for DeploymentStatusCreatedDeploymentPayload { fn from(value: &DeploymentStatusCreatedDeploymentPayload) -> Self { value.clone() } } #[doc = "The [deployment status](https://docs.github.com/en/rest/reference/repos#list-deployment-statuses)."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The [deployment status](https://docs.github.com/en/rest/reference/repos#list-deployment-statuses).\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"creator\","] #[doc = " \"deployment_url\","] #[doc = " \"description\","] #[doc = " \"environment\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"repository_url\","] #[doc = " \"state\","] #[doc = " \"target_url\","] #[doc = " \"updated_at\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"creator\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"deployment_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"description\": \"The optional human-readable description added to the status.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"environment\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"The new state. Can be `pending`, `success`, `failure`, or `error`.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"target_url\": {"] #[doc = " \"description\": \"The optional link added to the status.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DeploymentStatusCreatedDeploymentStatus { pub created_at: String, pub creator: User, pub deployment_url: String, #[doc = "The optional human-readable description added to the status."] pub description: String, pub environment: String, pub id: i64, pub node_id: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub performed_via_github_app: Option, pub repository_url: String, #[doc = "The new state. Can be `pending`, `success`, `failure`, or `error`."] pub state: String, #[doc = "The optional link added to the status."] pub target_url: String, pub updated_at: String, pub url: String, } impl From<&DeploymentStatusCreatedDeploymentStatus> for DeploymentStatusCreatedDeploymentStatus { fn from(value: &DeploymentStatusCreatedDeploymentStatus) -> Self { value.clone() } } #[doc = "DeploymentStatusEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deployment_status$created\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeploymentStatusEvent(pub DeploymentStatusCreated); impl ::std::ops::Deref for DeploymentStatusEvent { type Target = DeploymentStatusCreated; fn deref(&self) -> &DeploymentStatusCreated { &self.0 } } impl From for DeploymentStatusCreated { fn from(value: DeploymentStatusEvent) -> Self { value.0 } } impl From<&DeploymentStatusEvent> for DeploymentStatusEvent { fn from(value: &DeploymentStatusEvent) -> Self { value.clone() } } impl From for DeploymentStatusEvent { fn from(value: DeploymentStatusCreated) -> Self { Self(value) } } #[doc = "Discussion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Discussion\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"active_lock_reason\","] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"category\","] #[doc = " \"comments\","] #[doc = " \"created_at\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"locked\","] #[doc = " \"node_id\","] #[doc = " \"number\","] #[doc = " \"repository_url\","] #[doc = " \"state\","] #[doc = " \"title\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"active_lock_reason\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"comments\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"locked\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Discussion { pub active_lock_reason: Option, pub answer_chosen_at: Option, pub answer_chosen_by: Option, pub answer_html_url: Option, pub author_association: AuthorAssociation, pub body: String, pub category: DiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, pub html_url: String, pub id: i64, pub locked: bool, pub node_id: String, pub number: i64, pub repository_url: String, pub state: DiscussionState, pub title: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&Discussion> for Discussion { fn from(value: &Discussion) -> Self { value.clone() } } #[doc = "DiscussionAnswered"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion answered event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"answer\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"answered\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"answer\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"category\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"is_answerable\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnswered { pub action: DiscussionAnsweredAction, pub answer: DiscussionAnsweredAnswer, pub discussion: DiscussionAnsweredDiscussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionAnswered> for DiscussionAnswered { fn from(value: &DiscussionAnswered) -> Self { value.clone() } } #[doc = "DiscussionAnsweredAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"answered\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionAnsweredAction { #[serde(rename = "answered")] Answered, } impl From<&DiscussionAnsweredAction> for DiscussionAnsweredAction { fn from(value: &DiscussionAnsweredAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionAnsweredAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Answered => write!(f, "answered"), } } } impl std::str::FromStr for DiscussionAnsweredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "answered" => Ok(Self::Answered), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionAnsweredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionAnsweredAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionAnsweredAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionAnsweredAnswer"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredAnswer { pub author_association: AuthorAssociation, pub body: String, pub child_comment_count: i64, pub created_at: chrono::DateTime, pub discussion_id: i64, pub html_url: String, pub id: i64, pub node_id: String, pub parent_id: (), pub repository_url: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionAnsweredAnswer> for DiscussionAnsweredAnswer { fn from(value: &DiscussionAnsweredAnswer) -> Self { value.clone() } } #[doc = "DiscussionAnsweredDiscussion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"category\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"is_answerable\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussion { pub active_lock_reason: Option, pub answer_chosen_at: chrono::DateTime, pub answer_chosen_by: DiscussionAnsweredDiscussionAnswerChosenBy, pub answer_html_url: String, pub author_association: AuthorAssociation, pub body: String, pub category: DiscussionAnsweredDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, pub html_url: String, pub id: i64, pub locked: bool, pub node_id: String, pub number: i64, pub repository_url: String, pub state: DiscussionAnsweredDiscussionState, pub title: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionAnsweredDiscussion> for DiscussionAnsweredDiscussion { fn from(value: &DiscussionAnsweredDiscussion) -> Self { value.clone() } } #[doc = "DiscussionAnsweredDiscussionAnswerChosenBy"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"avatar_url\","] #[doc = " \"events_url\","] #[doc = " \"followers_url\","] #[doc = " \"following_url\","] #[doc = " \"gists_url\","] #[doc = " \"gravatar_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"login\","] #[doc = " \"node_id\","] #[doc = " \"organizations_url\","] #[doc = " \"received_events_url\","] #[doc = " \"repos_url\","] #[doc = " \"site_admin\","] #[doc = " \"starred_url\","] #[doc = " \"subscriptions_url\","] #[doc = " \"type\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"avatar_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"email\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"followers_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"following_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"gists_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"gravatar_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"login\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"organizations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"received_events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"repos_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"site_admin\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"starred_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"subscriptions_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"type\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"Bot\","] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"not\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussionAnswerChosenBy { pub avatar_url: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, pub events_url: String, pub followers_url: String, pub following_url: String, pub gists_url: String, pub gravatar_id: String, pub html_url: String, pub id: i64, pub login: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, pub node_id: String, pub organizations_url: String, pub received_events_url: String, pub repos_url: String, pub site_admin: bool, pub starred_url: String, pub subscriptions_url: String, #[serde(rename = "type")] pub type_: DiscussionAnsweredDiscussionAnswerChosenByType, pub url: String, } impl From<&DiscussionAnsweredDiscussionAnswerChosenBy> for DiscussionAnsweredDiscussionAnswerChosenBy { fn from(value: &DiscussionAnsweredDiscussionAnswerChosenBy) -> Self { value.clone() } } #[doc = "DiscussionAnsweredDiscussionAnswerChosenByType"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"Bot\","] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionAnsweredDiscussionAnswerChosenByType { Bot, User, Organization, } impl From<&DiscussionAnsweredDiscussionAnswerChosenByType> for DiscussionAnsweredDiscussionAnswerChosenByType { fn from(value: &DiscussionAnsweredDiscussionAnswerChosenByType) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionAnsweredDiscussionAnswerChosenByType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Bot => write!(f, "Bot"), Self::User => write!(f, "User"), Self::Organization => write!(f, "Organization"), } } } impl std::str::FromStr for DiscussionAnsweredDiscussionAnswerChosenByType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "Bot" => Ok(Self::Bot), "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionAnsweredDiscussionAnswerChosenByType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionAnsweredDiscussionCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionAnsweredDiscussionCategory { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionAnsweredDiscussionCategory> for DiscussionAnsweredDiscussionCategory { fn from(value: &DiscussionAnsweredDiscussionCategory) -> Self { value.clone() } } #[doc = "DiscussionAnsweredDiscussionState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"locked\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionAnsweredDiscussionState { #[serde(rename = "open")] Open, #[serde(rename = "locked")] Locked, #[serde(rename = "converting")] Converting, } impl From<&DiscussionAnsweredDiscussionState> for DiscussionAnsweredDiscussionState { fn from(value: &DiscussionAnsweredDiscussionState) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionAnsweredDiscussionState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Locked => write!(f, "locked"), Self::Converting => write!(f, "converting"), } } } impl std::str::FromStr for DiscussionAnsweredDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "locked" => Ok(Self::Locked), "converting" => Ok(Self::Converting), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionAnsweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCategory { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionCategory> for DiscussionCategory { fn from(value: &DiscussionCategory) -> Self { value.clone() } } #[doc = "DiscussionCategoryChanged"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion category changed event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"changes\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"category_changed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"changes\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"category\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCategoryChanged { pub action: DiscussionCategoryChangedAction, pub changes: DiscussionCategoryChangedChanges, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionCategoryChanged> for DiscussionCategoryChanged { fn from(value: &DiscussionCategoryChanged) -> Self { value.clone() } } #[doc = "DiscussionCategoryChangedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"category_changed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionCategoryChangedAction { #[serde(rename = "category_changed")] CategoryChanged, } impl From<&DiscussionCategoryChangedAction> for DiscussionCategoryChangedAction { fn from(value: &DiscussionCategoryChangedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionCategoryChangedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::CategoryChanged => write!(f, "category_changed"), } } } impl std::str::FromStr for DiscussionCategoryChangedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "category_changed" => Ok(Self::CategoryChanged), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionCategoryChangedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionCategoryChangedChanges"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"category\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCategoryChangedChanges { pub category: DiscussionCategoryChangedChangesCategory, } impl From<&DiscussionCategoryChangedChanges> for DiscussionCategoryChangedChanges { fn from(value: &DiscussionCategoryChangedChanges) -> Self { value.clone() } } #[doc = "DiscussionCategoryChangedChangesCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCategoryChangedChangesCategory { pub from: DiscussionCategoryChangedChangesCategoryFrom, } impl From<&DiscussionCategoryChangedChangesCategory> for DiscussionCategoryChangedChangesCategory { fn from(value: &DiscussionCategoryChangedChangesCategory) -> Self { value.clone() } } #[doc = "DiscussionCategoryChangedChangesCategoryFrom"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCategoryChangedChangesCategoryFrom { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionCategoryChangedChangesCategoryFrom> for DiscussionCategoryChangedChangesCategoryFrom { fn from(value: &DiscussionCategoryChangedChangesCategoryFrom) -> Self { value.clone() } } #[doc = "DiscussionCommentCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion_comment created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"comment\","] #[doc = " \"discussion\","] #[doc = " \"installation\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"comment\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentCreated { pub action: DiscussionCommentCreatedAction, pub comment: DiscussionCommentCreatedComment, pub discussion: Discussion, pub installation: InstallationLite, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionCommentCreated> for DiscussionCommentCreated { fn from(value: &DiscussionCommentCreated) -> Self { value.clone() } } #[doc = "DiscussionCommentCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionCommentCreatedAction { #[serde(rename = "created")] Created, } impl From<&DiscussionCommentCreatedAction> for DiscussionCommentCreatedAction { fn from(value: &DiscussionCommentCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionCommentCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for DiscussionCommentCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionCommentCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionCommentCreatedComment"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentCreatedComment { pub author_association: AuthorAssociation, pub body: String, pub child_comment_count: i64, pub created_at: String, pub discussion_id: i64, pub html_url: String, pub id: i64, pub node_id: String, pub parent_id: Option, pub repository_url: String, pub updated_at: String, pub user: User, } impl From<&DiscussionCommentCreatedComment> for DiscussionCommentCreatedComment { fn from(value: &DiscussionCommentCreatedComment) -> Self { value.clone() } } #[doc = "DiscussionCommentDeleted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion_comment deleted event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"comment\","] #[doc = " \"discussion\","] #[doc = " \"installation\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"comment\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentDeleted { pub action: DiscussionCommentDeletedAction, pub comment: DiscussionCommentDeletedComment, pub discussion: Discussion, pub installation: InstallationLite, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionCommentDeleted> for DiscussionCommentDeleted { fn from(value: &DiscussionCommentDeleted) -> Self { value.clone() } } #[doc = "DiscussionCommentDeletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionCommentDeletedAction { #[serde(rename = "deleted")] Deleted, } impl From<&DiscussionCommentDeletedAction> for DiscussionCommentDeletedAction { fn from(value: &DiscussionCommentDeletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionCommentDeletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Deleted => write!(f, "deleted"), } } } impl std::str::FromStr for DiscussionCommentDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionCommentDeletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionCommentDeletedComment"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentDeletedComment { pub author_association: AuthorAssociation, pub body: String, pub child_comment_count: i64, pub created_at: String, pub discussion_id: i64, pub html_url: String, pub id: i64, pub node_id: String, pub parent_id: Option, pub repository_url: String, pub updated_at: String, pub user: User, } impl From<&DiscussionCommentDeletedComment> for DiscussionCommentDeletedComment { fn from(value: &DiscussionCommentDeletedComment) -> Self { value.clone() } } #[doc = "DiscussionCommentEdited"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion_comment edited event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"changes\","] #[doc = " \"comment\","] #[doc = " \"discussion\","] #[doc = " \"installation\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"edited\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"changes\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"body\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"body\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"comment\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentEdited { pub action: DiscussionCommentEditedAction, pub changes: DiscussionCommentEditedChanges, pub comment: DiscussionCommentEditedComment, pub discussion: Discussion, pub installation: InstallationLite, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionCommentEdited> for DiscussionCommentEdited { fn from(value: &DiscussionCommentEdited) -> Self { value.clone() } } #[doc = "DiscussionCommentEditedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"edited\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionCommentEditedAction { #[serde(rename = "edited")] Edited, } impl From<&DiscussionCommentEditedAction> for DiscussionCommentEditedAction { fn from(value: &DiscussionCommentEditedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionCommentEditedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Edited => write!(f, "edited"), } } } impl std::str::FromStr for DiscussionCommentEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionCommentEditedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionCommentEditedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionCommentEditedChanges"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"body\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"body\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentEditedChanges { pub body: DiscussionCommentEditedChangesBody, } impl From<&DiscussionCommentEditedChanges> for DiscussionCommentEditedChanges { fn from(value: &DiscussionCommentEditedChanges) -> Self { value.clone() } } #[doc = "DiscussionCommentEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentEditedChangesBody { pub from: String, } impl From<&DiscussionCommentEditedChangesBody> for DiscussionCommentEditedChangesBody { fn from(value: &DiscussionCommentEditedChangesBody) -> Self { value.clone() } } #[doc = "DiscussionCommentEditedComment"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": ["] #[doc = " \"integer\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCommentEditedComment { pub author_association: AuthorAssociation, pub body: String, pub child_comment_count: i64, pub created_at: String, pub discussion_id: i64, pub html_url: String, pub id: i64, pub node_id: String, pub parent_id: Option, pub repository_url: String, pub updated_at: String, pub user: User, } impl From<&DiscussionCommentEditedComment> for DiscussionCommentEditedComment { fn from(value: &DiscussionCommentEditedComment) -> Self { value.clone() } } #[doc = "DiscussionCommentEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion_comment$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion_comment$deleted\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion_comment$edited\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum DiscussionCommentEvent { Created(DiscussionCommentCreated), Deleted(DiscussionCommentDeleted), Edited(DiscussionCommentEdited), } impl From<&DiscussionCommentEvent> for DiscussionCommentEvent { fn from(value: &DiscussionCommentEvent) -> Self { value.clone() } } impl From for DiscussionCommentEvent { fn from(value: DiscussionCommentCreated) -> Self { Self::Created(value) } } impl From for DiscussionCommentEvent { fn from(value: DiscussionCommentDeleted) -> Self { Self::Deleted(value) } } impl From for DiscussionCommentEvent { fn from(value: DiscussionCommentEdited) -> Self { Self::Edited(value) } } #[doc = "DiscussionCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"locked\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " false"] #[doc = " ]"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCreated { pub action: DiscussionCreatedAction, pub discussion: DiscussionCreatedDiscussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionCreated> for DiscussionCreated { fn from(value: &DiscussionCreated) -> Self { value.clone() } } #[doc = "DiscussionCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionCreatedAction { #[serde(rename = "created")] Created, } impl From<&DiscussionCreatedAction> for DiscussionCreatedAction { fn from(value: &DiscussionCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for DiscussionCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionCreatedDiscussion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"locked\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " false"] #[doc = " ]"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCreatedDiscussion { pub active_lock_reason: Option, pub answer_chosen_at: (), pub answer_chosen_by: (), pub answer_html_url: (), pub author_association: AuthorAssociation, pub body: String, pub category: DiscussionCreatedDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, pub html_url: String, pub id: i64, pub locked: bool, pub node_id: String, pub number: i64, pub repository_url: String, pub state: DiscussionCreatedDiscussionState, pub title: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionCreatedDiscussion> for DiscussionCreatedDiscussion { fn from(value: &DiscussionCreatedDiscussion) -> Self { value.clone() } } #[doc = "DiscussionCreatedDiscussionCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionCreatedDiscussionCategory { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionCreatedDiscussionCategory> for DiscussionCreatedDiscussionCategory { fn from(value: &DiscussionCreatedDiscussionCategory) -> Self { value.clone() } } #[doc = "DiscussionCreatedDiscussionState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionCreatedDiscussionState { #[serde(rename = "open")] Open, #[serde(rename = "converting")] Converting, } impl From<&DiscussionCreatedDiscussionState> for DiscussionCreatedDiscussionState { fn from(value: &DiscussionCreatedDiscussionState) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionCreatedDiscussionState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Converting => write!(f, "converting"), } } } impl std::str::FromStr for DiscussionCreatedDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "converting" => Ok(Self::Converting), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionCreatedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionDeleted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion deleted event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionDeleted { pub action: DiscussionDeletedAction, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionDeleted> for DiscussionDeleted { fn from(value: &DiscussionDeleted) -> Self { value.clone() } } #[doc = "DiscussionDeletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionDeletedAction { #[serde(rename = "deleted")] Deleted, } impl From<&DiscussionDeletedAction> for DiscussionDeletedAction { fn from(value: &DiscussionDeletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionDeletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Deleted => write!(f, "deleted"), } } } impl std::str::FromStr for DiscussionDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionDeletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionEdited"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion edited event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"edited\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"changes\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"body\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEdited { pub action: DiscussionEditedAction, #[serde(default, skip_serializing_if = "Option::is_none")] pub changes: Option, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionEdited> for DiscussionEdited { fn from(value: &DiscussionEdited) -> Self { value.clone() } } #[doc = "DiscussionEditedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"edited\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionEditedAction { #[serde(rename = "edited")] Edited, } impl From<&DiscussionEditedAction> for DiscussionEditedAction { fn from(value: &DiscussionEditedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionEditedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Edited => write!(f, "edited"), } } } impl std::str::FromStr for DiscussionEditedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionEditedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionEditedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionEditedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionEditedChanges"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"body\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChanges { #[serde(default, skip_serializing_if = "Option::is_none")] pub body: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub title: Option, } impl From<&DiscussionEditedChanges> for DiscussionEditedChanges { fn from(value: &DiscussionEditedChanges) -> Self { value.clone() } } #[doc = "DiscussionEditedChangesBody"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChangesBody { pub from: String, } impl From<&DiscussionEditedChangesBody> for DiscussionEditedChangesBody { fn from(value: &DiscussionEditedChangesBody) -> Self { value.clone() } } #[doc = "DiscussionEditedChangesTitle"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"from\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"from\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionEditedChangesTitle { pub from: String, } impl From<&DiscussionEditedChangesTitle> for DiscussionEditedChangesTitle { fn from(value: &DiscussionEditedChangesTitle) -> Self { value.clone() } } #[doc = "DiscussionEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$answered\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$category_changed\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$deleted\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$edited\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$labeled\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$locked\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$pinned\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$transferred\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$unanswered\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$unlabeled\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$unlocked\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion$unpinned\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum DiscussionEvent { Answered(DiscussionAnswered), CategoryChanged(DiscussionCategoryChanged), Created(DiscussionCreated), Deleted(DiscussionDeleted), Edited(DiscussionEdited), Labeled(DiscussionLabeled), Locked(DiscussionLocked), Pinned(DiscussionPinned), Transferred(DiscussionTransferred), Unanswered(DiscussionUnanswered), Unlabeled(DiscussionUnlabeled), Unlocked(DiscussionUnlocked), Unpinned(DiscussionUnpinned), } impl From<&DiscussionEvent> for DiscussionEvent { fn from(value: &DiscussionEvent) -> Self { value.clone() } } impl From for DiscussionEvent { fn from(value: DiscussionAnswered) -> Self { Self::Answered(value) } } impl From for DiscussionEvent { fn from(value: DiscussionCategoryChanged) -> Self { Self::CategoryChanged(value) } } impl From for DiscussionEvent { fn from(value: DiscussionCreated) -> Self { Self::Created(value) } } impl From for DiscussionEvent { fn from(value: DiscussionDeleted) -> Self { Self::Deleted(value) } } impl From for DiscussionEvent { fn from(value: DiscussionEdited) -> Self { Self::Edited(value) } } impl From for DiscussionEvent { fn from(value: DiscussionLabeled) -> Self { Self::Labeled(value) } } impl From for DiscussionEvent { fn from(value: DiscussionLocked) -> Self { Self::Locked(value) } } impl From for DiscussionEvent { fn from(value: DiscussionPinned) -> Self { Self::Pinned(value) } } impl From for DiscussionEvent { fn from(value: DiscussionTransferred) -> Self { Self::Transferred(value) } } impl From for DiscussionEvent { fn from(value: DiscussionUnanswered) -> Self { Self::Unanswered(value) } } impl From for DiscussionEvent { fn from(value: DiscussionUnlabeled) -> Self { Self::Unlabeled(value) } } impl From for DiscussionEvent { fn from(value: DiscussionUnlocked) -> Self { Self::Unlocked(value) } } impl From for DiscussionEvent { fn from(value: DiscussionUnpinned) -> Self { Self::Unpinned(value) } } #[doc = "DiscussionLabeled"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion labeled event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"label\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"labeled\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"label\": {"] #[doc = " \"$ref\": \"#/definitions/label\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionLabeled { pub action: DiscussionLabeledAction, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, pub label: Label, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionLabeled> for DiscussionLabeled { fn from(value: &DiscussionLabeled) -> Self { value.clone() } } #[doc = "DiscussionLabeledAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"labeled\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionLabeledAction { #[serde(rename = "labeled")] Labeled, } impl From<&DiscussionLabeledAction> for DiscussionLabeledAction { fn from(value: &DiscussionLabeledAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionLabeledAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Labeled => write!(f, "labeled"), } } } impl std::str::FromStr for DiscussionLabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "labeled" => Ok(Self::Labeled), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionLabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionLabeledAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionLabeledAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionLocked"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion locked event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"locked\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"locked\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"locked\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionLocked { pub action: DiscussionLockedAction, pub discussion: DiscussionLockedDiscussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionLocked> for DiscussionLocked { fn from(value: &DiscussionLocked) -> Self { value.clone() } } #[doc = "DiscussionLockedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"locked\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionLockedAction { #[serde(rename = "locked")] Locked, } impl From<&DiscussionLockedAction> for DiscussionLockedAction { fn from(value: &DiscussionLockedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionLockedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Locked => write!(f, "locked"), } } } impl std::str::FromStr for DiscussionLockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "locked" => Ok(Self::Locked), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionLockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionLockedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionLockedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionLockedDiscussion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"locked\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"locked\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionLockedDiscussion { pub active_lock_reason: Option, pub answer_chosen_at: Option, pub answer_chosen_by: Option, pub answer_html_url: Option, pub author_association: AuthorAssociation, pub body: String, pub category: DiscussionLockedDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, pub html_url: String, pub id: i64, pub locked: bool, pub node_id: String, pub number: i64, pub repository_url: String, pub state: DiscussionLockedDiscussionState, pub title: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionLockedDiscussion> for DiscussionLockedDiscussion { fn from(value: &DiscussionLockedDiscussion) -> Self { value.clone() } } #[doc = "DiscussionLockedDiscussionCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionLockedDiscussionCategory { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionLockedDiscussionCategory> for DiscussionLockedDiscussionCategory { fn from(value: &DiscussionLockedDiscussionCategory) -> Self { value.clone() } } #[doc = "DiscussionLockedDiscussionState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"locked\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionLockedDiscussionState { #[serde(rename = "locked")] Locked, } impl From<&DiscussionLockedDiscussionState> for DiscussionLockedDiscussionState { fn from(value: &DiscussionLockedDiscussionState) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionLockedDiscussionState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Locked => write!(f, "locked"), } } } impl std::str::FromStr for DiscussionLockedDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "locked" => Ok(Self::Locked), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionLockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionPinned"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion pinned event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"pinned\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionPinned { pub action: DiscussionPinnedAction, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionPinned> for DiscussionPinned { fn from(value: &DiscussionPinned) -> Self { value.clone() } } #[doc = "DiscussionPinnedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"pinned\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionPinnedAction { #[serde(rename = "pinned")] Pinned, } impl From<&DiscussionPinnedAction> for DiscussionPinnedAction { fn from(value: &DiscussionPinnedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionPinnedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Pinned => write!(f, "pinned"), } } } impl std::str::FromStr for DiscussionPinnedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "pinned" => Ok(Self::Pinned), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionPinnedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionPinnedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionPinnedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"locked\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionState { #[serde(rename = "open")] Open, #[serde(rename = "locked")] Locked, #[serde(rename = "converting")] Converting, } impl From<&DiscussionState> for DiscussionState { fn from(value: &DiscussionState) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Locked => write!(f, "locked"), Self::Converting => write!(f, "converting"), } } } impl std::str::FromStr for DiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "locked" => Ok(Self::Locked), "converting" => Ok(Self::Converting), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionTransferred"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion transferred event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"changes\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"transferred\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"changes\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"new_discussion\","] #[doc = " \"new_repository\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"new_discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"new_repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionTransferred { pub action: DiscussionTransferredAction, pub changes: DiscussionTransferredChanges, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionTransferred> for DiscussionTransferred { fn from(value: &DiscussionTransferred) -> Self { value.clone() } } #[doc = "DiscussionTransferredAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"transferred\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionTransferredAction { #[serde(rename = "transferred")] Transferred, } impl From<&DiscussionTransferredAction> for DiscussionTransferredAction { fn from(value: &DiscussionTransferredAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionTransferredAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Transferred => write!(f, "transferred"), } } } impl std::str::FromStr for DiscussionTransferredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "transferred" => Ok(Self::Transferred), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionTransferredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionTransferredAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionTransferredAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionTransferredChanges"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"new_discussion\","] #[doc = " \"new_repository\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"new_discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"new_repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionTransferredChanges { pub new_discussion: Discussion, pub new_repository: Repository, } impl From<&DiscussionTransferredChanges> for DiscussionTransferredChanges { fn from(value: &DiscussionTransferredChanges) -> Self { value.clone() } } #[doc = "DiscussionUnanswered"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion unanswered event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"old_answer\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unanswered\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"category\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"is_answerable\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"old_answer\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnanswered { pub action: DiscussionUnansweredAction, pub discussion: DiscussionUnansweredDiscussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, pub old_answer: DiscussionUnansweredOldAnswer, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionUnanswered> for DiscussionUnanswered { fn from(value: &DiscussionUnanswered) -> Self { value.clone() } } #[doc = "DiscussionUnansweredAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unanswered\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionUnansweredAction { #[serde(rename = "unanswered")] Unanswered, } impl From<&DiscussionUnansweredAction> for DiscussionUnansweredAction { fn from(value: &DiscussionUnansweredAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionUnansweredAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Unanswered => write!(f, "unanswered"), } } } impl std::str::FromStr for DiscussionUnansweredAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "unanswered" => Ok(Self::Unanswered), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionUnansweredAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionUnansweredAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionUnansweredAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionUnansweredDiscussion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"answer_chosen_at\","] #[doc = " \"answer_chosen_by\","] #[doc = " \"answer_html_url\","] #[doc = " \"category\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"answer_chosen_at\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_chosen_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"answer_html_url\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"category\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"is_answerable\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnansweredDiscussion { pub active_lock_reason: Option, pub answer_chosen_at: (), pub answer_chosen_by: (), pub answer_html_url: (), pub author_association: AuthorAssociation, pub body: String, pub category: DiscussionUnansweredDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, pub html_url: String, pub id: i64, pub locked: bool, pub node_id: String, pub number: i64, pub repository_url: String, pub state: DiscussionUnansweredDiscussionState, pub title: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionUnansweredDiscussion> for DiscussionUnansweredDiscussion { fn from(value: &DiscussionUnansweredDiscussion) -> Self { value.clone() } } #[doc = "DiscussionUnansweredDiscussionCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnansweredDiscussionCategory { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionUnansweredDiscussionCategory> for DiscussionUnansweredDiscussionCategory { fn from(value: &DiscussionUnansweredDiscussionCategory) -> Self { value.clone() } } #[doc = "DiscussionUnansweredDiscussionState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"locked\","] #[doc = " \"converting\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionUnansweredDiscussionState { #[serde(rename = "open")] Open, #[serde(rename = "locked")] Locked, #[serde(rename = "converting")] Converting, } impl From<&DiscussionUnansweredDiscussionState> for DiscussionUnansweredDiscussionState { fn from(value: &DiscussionUnansweredDiscussionState) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionUnansweredDiscussionState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), Self::Locked => write!(f, "locked"), Self::Converting => write!(f, "converting"), } } } impl std::str::FromStr for DiscussionUnansweredDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), "locked" => Ok(Self::Locked), "converting" => Ok(Self::Converting), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionUnansweredDiscussionState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionUnansweredOldAnswer"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"child_comment_count\","] #[doc = " \"created_at\","] #[doc = " \"discussion_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"node_id\","] #[doc = " \"parent_id\","] #[doc = " \"repository_url\","] #[doc = " \"updated_at\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"child_comment_count\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"discussion_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"parent_id\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnansweredOldAnswer { pub author_association: AuthorAssociation, pub body: String, pub child_comment_count: i64, pub created_at: chrono::DateTime, pub discussion_id: i64, pub html_url: String, pub id: i64, pub node_id: String, pub parent_id: (), pub repository_url: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionUnansweredOldAnswer> for DiscussionUnansweredOldAnswer { fn from(value: &DiscussionUnansweredOldAnswer) -> Self { value.clone() } } #[doc = "DiscussionUnlabeled"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion unlabeled event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"label\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unlabeled\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"label\": {"] #[doc = " \"$ref\": \"#/definitions/label\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnlabeled { pub action: DiscussionUnlabeledAction, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, pub label: Label, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionUnlabeled> for DiscussionUnlabeled { fn from(value: &DiscussionUnlabeled) -> Self { value.clone() } } #[doc = "DiscussionUnlabeledAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unlabeled\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionUnlabeledAction { #[serde(rename = "unlabeled")] Unlabeled, } impl From<&DiscussionUnlabeledAction> for DiscussionUnlabeledAction { fn from(value: &DiscussionUnlabeledAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionUnlabeledAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Unlabeled => write!(f, "unlabeled"), } } } impl std::str::FromStr for DiscussionUnlabeledAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "unlabeled" => Ok(Self::Unlabeled), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionUnlabeledAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionUnlabeledAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionUnlocked"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion unlocked event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unlocked\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"locked\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " false"] #[doc = " ]"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnlocked { pub action: DiscussionUnlockedAction, pub discussion: DiscussionUnlockedDiscussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionUnlocked> for DiscussionUnlocked { fn from(value: &DiscussionUnlocked) -> Self { value.clone() } } #[doc = "DiscussionUnlockedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unlocked\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionUnlockedAction { #[serde(rename = "unlocked")] Unlocked, } impl From<&DiscussionUnlockedAction> for DiscussionUnlockedAction { fn from(value: &DiscussionUnlockedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionUnlockedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Unlocked => write!(f, "unlocked"), } } } impl std::str::FromStr for DiscussionUnlockedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "unlocked" => Ok(Self::Unlocked), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionUnlockedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionUnlockedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionUnlockedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionUnlockedDiscussion"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"locked\","] #[doc = " \"state\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"enum\": ["] #[doc = " false"] #[doc = " ]"] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnlockedDiscussion { pub active_lock_reason: Option, pub answer_chosen_at: Option, pub answer_chosen_by: Option, pub answer_html_url: Option, pub author_association: AuthorAssociation, pub body: String, pub category: DiscussionUnlockedDiscussionCategory, pub comments: i64, pub created_at: chrono::DateTime, pub html_url: String, pub id: i64, pub locked: bool, pub node_id: String, pub number: i64, pub repository_url: String, pub state: DiscussionUnlockedDiscussionState, pub title: String, pub updated_at: chrono::DateTime, pub user: User, } impl From<&DiscussionUnlockedDiscussion> for DiscussionUnlockedDiscussion { fn from(value: &DiscussionUnlockedDiscussion) -> Self { value.clone() } } #[doc = "DiscussionUnlockedDiscussionCategory"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"created_at\","] #[doc = " \"description\","] #[doc = " \"emoji\","] #[doc = " \"id\","] #[doc = " \"is_answerable\","] #[doc = " \"name\","] #[doc = " \"repository_id\","] #[doc = " \"slug\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"description\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"emoji\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"is_answerable\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"repository_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnlockedDiscussionCategory { pub created_at: chrono::DateTime, pub description: String, pub emoji: String, pub id: i64, pub is_answerable: bool, pub name: String, pub repository_id: i64, pub slug: String, pub updated_at: String, } impl From<&DiscussionUnlockedDiscussionCategory> for DiscussionUnlockedDiscussionCategory { fn from(value: &DiscussionUnlockedDiscussionCategory) -> Self { value.clone() } } #[doc = "DiscussionUnlockedDiscussionState"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionUnlockedDiscussionState { #[serde(rename = "open")] Open, } impl From<&DiscussionUnlockedDiscussionState> for DiscussionUnlockedDiscussionState { fn from(value: &DiscussionUnlockedDiscussionState) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionUnlockedDiscussionState { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Open => write!(f, "open"), } } } impl std::str::FromStr for DiscussionUnlockedDiscussionState { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "open" => Ok(Self::Open), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionUnlockedDiscussionState { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "DiscussionUnpinned"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"discussion unpinned event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"discussion\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unpinned\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussion\": {"] #[doc = " \"$ref\": \"#/definitions/discussion\""] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct DiscussionUnpinned { pub action: DiscussionUnpinnedAction, pub discussion: Discussion, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&DiscussionUnpinned> for DiscussionUnpinned { fn from(value: &DiscussionUnpinned) -> Self { value.clone() } } #[doc = "DiscussionUnpinnedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unpinned\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum DiscussionUnpinnedAction { #[serde(rename = "unpinned")] Unpinned, } impl From<&DiscussionUnpinnedAction> for DiscussionUnpinnedAction { fn from(value: &DiscussionUnpinnedAction) -> Self { value.clone() } } impl ::std::fmt::Display for DiscussionUnpinnedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Unpinned => write!(f, "unpinned"), } } } impl std::str::FromStr for DiscussionUnpinnedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "unpinned" => Ok(Self::Unpinned), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for DiscussionUnpinnedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for DiscussionUnpinnedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Everything"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Everything\","] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/branch_protection_rule_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_run_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/check_suite_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/code_scanning_alert_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/commit_comment_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/content_reference_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/create$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/delete$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deploy_key_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deployment_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/deployment_status_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/discussion_comment_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/fork$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/github_app_authorization_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/gollum$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation_repositories_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/issue_comment_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/issues_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/label_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/marketplace_purchase_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/member_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/membership_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/meta_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/milestone_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/org_block_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/organization_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/package_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/page_build$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/ping$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/project_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/project_card_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/project_column_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/public$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/pull_request_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/pull_request_review_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/pull_request_review_comment_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/push$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/release_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/repository_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/repository_dispatch_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/repository_import$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/repository_vulnerability_alert_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/secret_scanning_alert_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/security_advisory_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/sponsorship_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/star_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/status$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/team_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/team_add$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/watch_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/workflow_dispatch$event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/workflow_job_event\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/workflow_run_event\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum Everything { BranchProtectionRuleEvent(BranchProtectionRuleEvent), CheckRunEvent(CheckRunEvent), CheckSuiteEvent(CheckSuiteEvent), CodeScanningAlertEvent(CodeScanningAlertEvent), CommitCommentEvent(CommitCommentEvent), ContentReferenceEvent(ContentReferenceEvent), CreateEvent(CreateEvent), DeleteEvent(DeleteEvent), DeployKeyEvent(DeployKeyEvent), DeploymentEvent(DeploymentEvent), DeploymentStatusEvent(DeploymentStatusEvent), DiscussionEvent(DiscussionEvent), DiscussionCommentEvent(DiscussionCommentEvent), ForkEvent(ForkEvent), GithubAppAuthorizationEvent(GithubAppAuthorizationEvent), GollumEvent(GollumEvent), InstallationEvent(InstallationEvent), InstallationRepositoriesEvent(InstallationRepositoriesEvent), IssueCommentEvent(IssueCommentEvent), IssuesEvent(IssuesEvent), LabelEvent(LabelEvent), MarketplacePurchaseEvent(MarketplacePurchaseEvent), MemberEvent(MemberEvent), MembershipEvent(MembershipEvent), MetaEvent(MetaEvent), MilestoneEvent(MilestoneEvent), OrgBlockEvent(OrgBlockEvent), OrganizationEvent(OrganizationEvent), PackageEvent(PackageEvent), PageBuildEvent(PageBuildEvent), PingEvent(PingEvent), ProjectEvent(ProjectEvent), ProjectCardEvent(ProjectCardEvent), ProjectColumnEvent(ProjectColumnEvent), PublicEvent(PublicEvent), PullRequestEvent(PullRequestEvent), PullRequestReviewEvent(PullRequestReviewEvent), PullRequestReviewCommentEvent(PullRequestReviewCommentEvent), PushEvent(PushEvent), ReleaseEvent(ReleaseEvent), RepositoryEvent(RepositoryEvent), RepositoryDispatchEvent(RepositoryDispatchEvent), RepositoryImportEvent(RepositoryImportEvent), RepositoryVulnerabilityAlertEvent(RepositoryVulnerabilityAlertEvent), SecretScanningAlertEvent(SecretScanningAlertEvent), SecurityAdvisoryEvent(SecurityAdvisoryEvent), SponsorshipEvent(SponsorshipEvent), StarEvent(StarEvent), StatusEvent(StatusEvent), TeamEvent(TeamEvent), TeamAddEvent(TeamAddEvent), WatchEvent(WatchEvent), WorkflowDispatchEvent(WorkflowDispatchEvent), WorkflowJobEvent(WorkflowJobEvent), WorkflowRunEvent(WorkflowRunEvent), } impl From<&Everything> for Everything { fn from(value: &Everything) -> Self { value.clone() } } impl From for Everything { fn from(value: BranchProtectionRuleEvent) -> Self { Self::BranchProtectionRuleEvent(value) } } impl From for Everything { fn from(value: CheckRunEvent) -> Self { Self::CheckRunEvent(value) } } impl From for Everything { fn from(value: CheckSuiteEvent) -> Self { Self::CheckSuiteEvent(value) } } impl From for Everything { fn from(value: CodeScanningAlertEvent) -> Self { Self::CodeScanningAlertEvent(value) } } impl From for Everything { fn from(value: CommitCommentEvent) -> Self { Self::CommitCommentEvent(value) } } impl From for Everything { fn from(value: ContentReferenceEvent) -> Self { Self::ContentReferenceEvent(value) } } impl From for Everything { fn from(value: CreateEvent) -> Self { Self::CreateEvent(value) } } impl From for Everything { fn from(value: DeleteEvent) -> Self { Self::DeleteEvent(value) } } impl From for Everything { fn from(value: DeployKeyEvent) -> Self { Self::DeployKeyEvent(value) } } impl From for Everything { fn from(value: DeploymentEvent) -> Self { Self::DeploymentEvent(value) } } impl From for Everything { fn from(value: DeploymentStatusEvent) -> Self { Self::DeploymentStatusEvent(value) } } impl From for Everything { fn from(value: DiscussionEvent) -> Self { Self::DiscussionEvent(value) } } impl From for Everything { fn from(value: DiscussionCommentEvent) -> Self { Self::DiscussionCommentEvent(value) } } impl From for Everything { fn from(value: ForkEvent) -> Self { Self::ForkEvent(value) } } impl From for Everything { fn from(value: GithubAppAuthorizationEvent) -> Self { Self::GithubAppAuthorizationEvent(value) } } impl From for Everything { fn from(value: GollumEvent) -> Self { Self::GollumEvent(value) } } impl From for Everything { fn from(value: InstallationEvent) -> Self { Self::InstallationEvent(value) } } impl From for Everything { fn from(value: InstallationRepositoriesEvent) -> Self { Self::InstallationRepositoriesEvent(value) } } impl From for Everything { fn from(value: IssueCommentEvent) -> Self { Self::IssueCommentEvent(value) } } impl From for Everything { fn from(value: IssuesEvent) -> Self { Self::IssuesEvent(value) } } impl From for Everything { fn from(value: LabelEvent) -> Self { Self::LabelEvent(value) } } impl From for Everything { fn from(value: MarketplacePurchaseEvent) -> Self { Self::MarketplacePurchaseEvent(value) } } impl From for Everything { fn from(value: MemberEvent) -> Self { Self::MemberEvent(value) } } impl From for Everything { fn from(value: MembershipEvent) -> Self { Self::MembershipEvent(value) } } impl From for Everything { fn from(value: MetaEvent) -> Self { Self::MetaEvent(value) } } impl From for Everything { fn from(value: MilestoneEvent) -> Self { Self::MilestoneEvent(value) } } impl From for Everything { fn from(value: OrgBlockEvent) -> Self { Self::OrgBlockEvent(value) } } impl From for Everything { fn from(value: OrganizationEvent) -> Self { Self::OrganizationEvent(value) } } impl From for Everything { fn from(value: PackageEvent) -> Self { Self::PackageEvent(value) } } impl From for Everything { fn from(value: PageBuildEvent) -> Self { Self::PageBuildEvent(value) } } impl From for Everything { fn from(value: PingEvent) -> Self { Self::PingEvent(value) } } impl From for Everything { fn from(value: ProjectEvent) -> Self { Self::ProjectEvent(value) } } impl From for Everything { fn from(value: ProjectCardEvent) -> Self { Self::ProjectCardEvent(value) } } impl From for Everything { fn from(value: ProjectColumnEvent) -> Self { Self::ProjectColumnEvent(value) } } impl From for Everything { fn from(value: PublicEvent) -> Self { Self::PublicEvent(value) } } impl From for Everything { fn from(value: PullRequestEvent) -> Self { Self::PullRequestEvent(value) } } impl From for Everything { fn from(value: PullRequestReviewEvent) -> Self { Self::PullRequestReviewEvent(value) } } impl From for Everything { fn from(value: PullRequestReviewCommentEvent) -> Self { Self::PullRequestReviewCommentEvent(value) } } impl From for Everything { fn from(value: PushEvent) -> Self { Self::PushEvent(value) } } impl From for Everything { fn from(value: ReleaseEvent) -> Self { Self::ReleaseEvent(value) } } impl From for Everything { fn from(value: RepositoryEvent) -> Self { Self::RepositoryEvent(value) } } impl From for Everything { fn from(value: RepositoryDispatchEvent) -> Self { Self::RepositoryDispatchEvent(value) } } impl From for Everything { fn from(value: RepositoryImportEvent) -> Self { Self::RepositoryImportEvent(value) } } impl From for Everything { fn from(value: RepositoryVulnerabilityAlertEvent) -> Self { Self::RepositoryVulnerabilityAlertEvent(value) } } impl From for Everything { fn from(value: SecretScanningAlertEvent) -> Self { Self::SecretScanningAlertEvent(value) } } impl From for Everything { fn from(value: SecurityAdvisoryEvent) -> Self { Self::SecurityAdvisoryEvent(value) } } impl From for Everything { fn from(value: SponsorshipEvent) -> Self { Self::SponsorshipEvent(value) } } impl From for Everything { fn from(value: StarEvent) -> Self { Self::StarEvent(value) } } impl From for Everything { fn from(value: StatusEvent) -> Self { Self::StatusEvent(value) } } impl From for Everything { fn from(value: TeamEvent) -> Self { Self::TeamEvent(value) } } impl From for Everything { fn from(value: TeamAddEvent) -> Self { Self::TeamAddEvent(value) } } impl From for Everything { fn from(value: WatchEvent) -> Self { Self::WatchEvent(value) } } impl From for Everything { fn from(value: WorkflowDispatchEvent) -> Self { Self::WorkflowDispatchEvent(value) } } impl From for Everything { fn from(value: WorkflowJobEvent) -> Self { Self::WorkflowJobEvent(value) } } impl From for Everything { fn from(value: WorkflowRunEvent) -> Self { Self::WorkflowRunEvent(value) } } #[doc = "A user forks a repository."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"fork event\","] #[doc = " \"description\": \"A user forks a repository.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"forkee\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"forkee\": {"] #[doc = " \"description\": \"The created [`repository`](https://docs.github.com/en/rest/reference/repos#get-a-repository) resource.\","] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"fork\": {"] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct ForkEvent { pub forkee: ForkEventForkee, #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub repository: Repository, pub sender: User, } impl From<&ForkEvent> for ForkEvent { fn from(value: &ForkEvent) -> Self { value.clone() } } #[doc = "The created [`repository`](https://docs.github.com/en/rest/reference/repos#get-a-repository) resource."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The created [`repository`](https://docs.github.com/en/rest/reference/repos#get-a-repository) resource.\","] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"fork\": {"] #[doc = " \"enum\": ["] #[doc = " true"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct ForkEventForkee { #[doc = "Whether to allow auto-merge for pull requests."] #[serde(default)] pub allow_auto_merge: bool, #[doc = "Whether to allow private forks"] #[serde(default, skip_serializing_if = "Option::is_none")] pub allow_forking: Option, #[doc = "Whether to allow merge commits for pull requests."] #[serde(default = "defaults::default_bool::")] pub allow_merge_commit: bool, #[doc = "Whether to allow rebase merges for pull requests."] #[serde(default = "defaults::default_bool::")] pub allow_rebase_merge: bool, #[doc = "Whether to allow squash merges for pull requests."] #[serde(default = "defaults::default_bool::")] pub allow_squash_merge: bool, pub archive_url: String, #[doc = "Whether the repository is archived."] pub archived: bool, pub assignees_url: String, pub blobs_url: String, pub branches_url: String, pub clone_url: String, pub collaborators_url: String, pub comments_url: String, pub commits_url: String, pub compare_url: String, pub contents_url: String, pub contributors_url: String, pub created_at: ForkEventForkeeCreatedAt, #[doc = "The default branch of the repository."] pub default_branch: String, #[doc = "Whether to delete head branches when pull requests are merged"] #[serde(default)] pub delete_branch_on_merge: bool, pub deployments_url: String, pub description: Option, #[doc = "Returns whether or not this repository is disabled."] #[serde(default, skip_serializing_if = "Option::is_none")] pub disabled: Option, pub downloads_url: String, pub events_url: String, pub fork: bool, pub forks: i64, pub forks_count: i64, pub forks_url: String, pub full_name: String, pub git_commits_url: String, pub git_refs_url: String, pub git_tags_url: String, pub git_url: String, #[doc = "Whether downloads are enabled."] pub has_downloads: bool, #[doc = "Whether issues are enabled."] pub has_issues: bool, pub has_pages: bool, #[doc = "Whether projects are enabled."] pub has_projects: bool, #[doc = "Whether the wiki is enabled."] pub has_wiki: bool, pub homepage: Option, pub hooks_url: String, pub html_url: String, #[doc = "Unique identifier of the repository"] pub id: i64, pub issue_comment_url: String, pub issue_events_url: String, pub issues_url: String, pub keys_url: String, pub labels_url: String, pub language: Option, pub languages_url: String, pub license: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub master_branch: Option, pub merges_url: String, pub milestones_url: String, pub mirror_url: Option, #[doc = "The name of the repository."] pub name: String, pub node_id: String, pub notifications_url: String, pub open_issues: i64, pub open_issues_count: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, pub owner: User, #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "Whether the repository is private or public."] pub private: bool, #[serde(default, skip_serializing_if = "Option::is_none")] pub public: Option, pub pulls_url: String, pub pushed_at: ForkEventForkeePushedAt, pub releases_url: String, pub size: i64, pub ssh_url: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub stargazers: Option, pub stargazers_count: i64, pub stargazers_url: String, pub statuses_url: String, pub subscribers_url: String, pub subscription_url: String, pub svn_url: String, pub tags_url: String, pub teams_url: String, pub trees_url: String, pub updated_at: chrono::DateTime, pub url: String, pub watchers: i64, pub watchers_count: i64, } impl From<&ForkEventForkee> for ForkEventForkee { fn from(value: &ForkEventForkee) -> Self { value.clone() } } #[doc = "ForkEventForkeeCreatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum ForkEventForkeeCreatedAt { Variant0(i64), Variant1(chrono::DateTime), } impl From<&ForkEventForkeeCreatedAt> for ForkEventForkeeCreatedAt { fn from(value: &ForkEventForkeeCreatedAt) -> Self { value.clone() } } impl std::str::FromStr for ForkEventForkeeCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for ForkEventForkeeCreatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for ForkEventForkeeCreatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From for ForkEventForkeeCreatedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } impl From> for ForkEventForkeeCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } } #[doc = "ForkEventForkeePermissions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"admin\","] #[doc = " \"pull\","] #[doc = " \"push\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"admin\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"maintain\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"pull\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"push\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"triage\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct ForkEventForkeePermissions { pub admin: bool, #[serde(default, skip_serializing_if = "Option::is_none")] pub maintain: Option, pub pull: bool, pub push: bool, #[serde(default, skip_serializing_if = "Option::is_none")] pub triage: Option, } impl From<&ForkEventForkeePermissions> for ForkEventForkeePermissions { fn from(value: &ForkEventForkeePermissions) -> Self { value.clone() } } #[doc = "ForkEventForkeePushedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum ForkEventForkeePushedAt { Variant0(i64), Variant1(chrono::DateTime), Variant2, } impl From<&ForkEventForkeePushedAt> for ForkEventForkeePushedAt { fn from(value: &ForkEventForkeePushedAt) -> Self { value.clone() } } impl From for ForkEventForkeePushedAt { fn from(value: i64) -> Self { Self::Variant0(value) } } impl From> for ForkEventForkeePushedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant1(value) } } #[doc = "GithubAppAuthorizationEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/github_app_authorization$revoked\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GithubAppAuthorizationEvent(pub GithubAppAuthorizationRevoked); impl ::std::ops::Deref for GithubAppAuthorizationEvent { type Target = GithubAppAuthorizationRevoked; fn deref(&self) -> &GithubAppAuthorizationRevoked { &self.0 } } impl From for GithubAppAuthorizationRevoked { fn from(value: GithubAppAuthorizationEvent) -> Self { value.0 } } impl From<&GithubAppAuthorizationEvent> for GithubAppAuthorizationEvent { fn from(value: &GithubAppAuthorizationEvent) -> Self { value.clone() } } impl From for GithubAppAuthorizationEvent { fn from(value: GithubAppAuthorizationRevoked) -> Self { Self(value) } } #[doc = "GithubAppAuthorizationRevoked"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"github_app_authorization revoked event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"revoked\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GithubAppAuthorizationRevoked { pub action: GithubAppAuthorizationRevokedAction, pub sender: User, } impl From<&GithubAppAuthorizationRevoked> for GithubAppAuthorizationRevoked { fn from(value: &GithubAppAuthorizationRevoked) -> Self { value.clone() } } #[doc = "GithubAppAuthorizationRevokedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"revoked\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum GithubAppAuthorizationRevokedAction { #[serde(rename = "revoked")] Revoked, } impl From<&GithubAppAuthorizationRevokedAction> for GithubAppAuthorizationRevokedAction { fn from(value: &GithubAppAuthorizationRevokedAction) -> Self { value.clone() } } impl ::std::fmt::Display for GithubAppAuthorizationRevokedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Revoked => write!(f, "revoked"), } } } impl std::str::FromStr for GithubAppAuthorizationRevokedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "revoked" => Ok(Self::Revoked), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for GithubAppAuthorizationRevokedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "GithubOrg"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"GitHub Org\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"avatar_url\","] #[doc = " \"events_url\","] #[doc = " \"followers_url\","] #[doc = " \"following_url\","] #[doc = " \"gists_url\","] #[doc = " \"gravatar_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"login\","] #[doc = " \"node_id\","] #[doc = " \"organizations_url\","] #[doc = " \"received_events_url\","] #[doc = " \"repos_url\","] #[doc = " \"site_admin\","] #[doc = " \"starred_url\","] #[doc = " \"subscriptions_url\","] #[doc = " \"type\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"avatar_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://avatars.githubusercontent.com/u/9919?v=4\""] #[doc = " },"] #[doc = " \"email\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\","] #[doc = " \"const\": \"https://api.github.com/users/github/events{/privacy}\""] #[doc = " },"] #[doc = " \"followers_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://api.github.com/users/github/followers\""] #[doc = " },"] #[doc = " \"following_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\","] #[doc = " \"const\": \"https://api.github.com/users/github/following{/other_user}\""] #[doc = " },"] #[doc = " \"gists_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\","] #[doc = " \"const\": \"https://api.github.com/users/github/gists{/gist_id}\""] #[doc = " },"] #[doc = " \"gravatar_id\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"const\": \"\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://github.com/github\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\","] #[doc = " \"const\": 9919"] #[doc = " },"] #[doc = " \"login\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"const\": \"github\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"const\": \"GitHub\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"const\": \"MDEyOk9yZ2FuaXphdGlvbjk5MTk=\""] #[doc = " },"] #[doc = " \"organizations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://api.github.com/users/github/orgs\""] #[doc = " },"] #[doc = " \"received_events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://api.github.com/users/github/received_events\""] #[doc = " },"] #[doc = " \"repos_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://api.github.com/users/github/repos\""] #[doc = " },"] #[doc = " \"site_admin\": {"] #[doc = " \"type\": \"boolean\","] #[doc = " \"const\": false"] #[doc = " },"] #[doc = " \"starred_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\","] #[doc = " \"const\": \"https://api.github.com/users/github/starred{/owner}{/repo}\""] #[doc = " },"] #[doc = " \"subscriptions_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://api.github.com/users/github/subscriptions\""] #[doc = " },"] #[doc = " \"type\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"const\": \"Organization\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\","] #[doc = " \"const\": \"https://api.github.com/users/github\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GithubOrg { pub avatar_url: String, #[serde(default)] pub email: (), pub events_url: String, pub followers_url: String, pub following_url: String, pub gists_url: String, pub gravatar_id: String, pub html_url: String, pub id: i64, pub login: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, pub node_id: String, pub organizations_url: String, pub received_events_url: String, pub repos_url: String, pub site_admin: bool, pub starred_url: String, pub subscriptions_url: String, #[serde(rename = "type")] pub type_: String, pub url: String, } impl From<&GithubOrg> for GithubOrg { fn from(value: &GithubOrg) -> Self { value.clone() } } #[doc = "A wiki page is created or updated."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"gollum event\","] #[doc = " \"description\": \"A wiki page is created or updated.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"pages\","] #[doc = " \"repository\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation-lite\""] #[doc = " },"] #[doc = " \"organization\": {"] #[doc = " \"$ref\": \"#/definitions/organization\""] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"description\": \"The pages that were updated.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"html_url\","] #[doc = " \"page_name\","] #[doc = " \"sha\","] #[doc = " \"summary\","] #[doc = " \"title\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"description\": \"The action that was performed on the page. Can be `created` or `edited`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\","] #[doc = " \"edited\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"Points to the HTML wiki page.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"page_name\": {"] #[doc = " \"description\": \"The name of the page.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"description\": \"The latest commit SHA of the page.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"description\": \"The current page title.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"repository\": {"] #[doc = " \"$ref\": \"#/definitions/repository\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GollumEvent { #[serde(default, skip_serializing_if = "Option::is_none")] pub installation: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization: Option, #[doc = "The pages that were updated."] pub pages: Vec, pub repository: Repository, pub sender: User, } impl From<&GollumEvent> for GollumEvent { fn from(value: &GollumEvent) -> Self { value.clone() } } #[doc = "GollumEventPagesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"html_url\","] #[doc = " \"page_name\","] #[doc = " \"sha\","] #[doc = " \"summary\","] #[doc = " \"title\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"description\": \"The action that was performed on the page. Can be `created` or `edited`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\","] #[doc = " \"edited\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"description\": \"Points to the HTML wiki page.\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"page_name\": {"] #[doc = " \"description\": \"The name of the page.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"sha\": {"] #[doc = " \"description\": \"The latest commit SHA of the page.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"summary\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"description\": \"The current page title.\","] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct GollumEventPagesItem { #[doc = "The action that was performed on the page. Can be `created` or `edited`."] pub action: GollumEventPagesItemAction, #[doc = "Points to the HTML wiki page."] pub html_url: String, #[doc = "The name of the page."] pub page_name: String, #[doc = "The latest commit SHA of the page."] pub sha: String, pub summary: (), #[doc = "The current page title."] pub title: String, } impl From<&GollumEventPagesItem> for GollumEventPagesItem { fn from(value: &GollumEventPagesItem) -> Self { value.clone() } } #[doc = "The action that was performed on the page. Can be `created` or `edited`."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"The action that was performed on the page. Can be `created` or `edited`.\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\","] #[doc = " \"edited\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum GollumEventPagesItemAction { #[serde(rename = "created")] Created, #[serde(rename = "edited")] Edited, } impl From<&GollumEventPagesItemAction> for GollumEventPagesItemAction { fn from(value: &GollumEventPagesItemAction) -> Self { value.clone() } } impl ::std::fmt::Display for GollumEventPagesItemAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), Self::Edited => write!(f, "edited"), } } } impl std::str::FromStr for GollumEventPagesItemAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), "edited" => Ok(Self::Edited), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for GollumEventPagesItemAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for GollumEventPagesItemAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for GollumEventPagesItemAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "The GitHub App installation."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Installation\","] #[doc = " \"description\": \"The GitHub App installation.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"access_tokens_url\","] #[doc = " \"account\","] #[doc = " \"app_id\","] #[doc = " \"created_at\","] #[doc = " \"events\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"permissions\","] #[doc = " \"repositories_url\","] #[doc = " \"repository_selection\","] #[doc = " \"single_file_name\","] #[doc = " \"suspended_at\","] #[doc = " \"suspended_by\","] #[doc = " \"target_id\","] #[doc = " \"target_type\","] #[doc = " \"updated_at\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"access_tokens_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"account\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"app_id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"app_slug\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"events\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"check_run\","] #[doc = " \"check_suite\","] #[doc = " \"code_scanning_alert\","] #[doc = " \"commit_comment\","] #[doc = " \"content_reference\","] #[doc = " \"create\","] #[doc = " \"delete\","] #[doc = " \"deployment\","] #[doc = " \"deployment_review\","] #[doc = " \"deployment_status\","] #[doc = " \"deploy_key\","] #[doc = " \"discussion\","] #[doc = " \"discussion_comment\","] #[doc = " \"fork\","] #[doc = " \"gollum\","] #[doc = " \"issues\","] #[doc = " \"issue_comment\","] #[doc = " \"label\","] #[doc = " \"member\","] #[doc = " \"membership\","] #[doc = " \"merge_queue_entry\","] #[doc = " \"milestone\","] #[doc = " \"organization\","] #[doc = " \"org_block\","] #[doc = " \"page_build\","] #[doc = " \"project\","] #[doc = " \"project_card\","] #[doc = " \"project_column\","] #[doc = " \"public\","] #[doc = " \"pull_request\","] #[doc = " \"pull_request_review\","] #[doc = " \"pull_request_review_comment\","] #[doc = " \"push\","] #[doc = " \"registry_package\","] #[doc = " \"release\","] #[doc = " \"repository\","] #[doc = " \"repository_dispatch\","] #[doc = " \"secret_scanning_alert\","] #[doc = " \"star\","] #[doc = " \"status\","] #[doc = " \"team\","] #[doc = " \"team_add\","] #[doc = " \"watch\","] #[doc = " \"workflow_dispatch\","] #[doc = " \"workflow_run\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"has_multiple_single_files\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The ID of the installation.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"permissions\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"actions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"checks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_references\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"contents\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"emails\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"issues\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"members\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"metadata\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_plan\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_self_hosted_runners\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_user_blocking\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secret_scanning_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_scanning_alert\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"statuses\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"team_discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"vulnerability_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"workflows\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"repositories_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"repository_selection\": {"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file_name\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file_paths\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"suspended_at\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"suspended_by\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"target_id\": {"] #[doc = " \"description\": \"The ID of the user or organization this token is being scoped to.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"target_type\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Installation { pub access_tokens_url: String, pub account: User, pub app_id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub app_slug: Option, pub created_at: InstallationCreatedAt, pub events: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub has_multiple_single_files: Option, pub html_url: String, #[doc = "The ID of the installation."] pub id: i64, pub permissions: InstallationPermissions, pub repositories_url: String, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositorySelection, pub single_file_name: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub single_file_paths: Vec, pub suspended_at: Option>, pub suspended_by: Option, #[doc = "The ID of the user or organization this token is being scoped to."] pub target_id: i64, pub target_type: InstallationTargetType, pub updated_at: InstallationUpdatedAt, } impl From<&Installation> for Installation { fn from(value: &Installation) -> Self { value.clone() } } #[doc = "InstallationCreated"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation created event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " \"repositories\": {"] #[doc = " \"description\": \"An array of repository objects that the installation can access.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationCreated { pub action: InstallationCreatedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub repositories: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub requester: Option, pub sender: User, } impl From<&InstallationCreated> for InstallationCreated { fn from(value: &InstallationCreated) -> Self { value.clone() } } #[doc = "InstallationCreatedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"created\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationCreatedAction { #[serde(rename = "created")] Created, } impl From<&InstallationCreatedAction> for InstallationCreatedAction { fn from(value: &InstallationCreatedAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationCreatedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Created => write!(f, "created"), } } } impl std::str::FromStr for InstallationCreatedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "created" => Ok(Self::Created), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationCreatedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationCreatedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationCreatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationCreatedAt { Variant0(chrono::DateTime), Variant1(i64), } impl From<&InstallationCreatedAt> for InstallationCreatedAt { fn from(value: &InstallationCreatedAt) -> Self { value.clone() } } impl std::str::FromStr for InstallationCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for InstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for InstallationCreatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From> for InstallationCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } impl From for InstallationCreatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } } #[doc = "InstallationCreatedRepositoriesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationCreatedRepositoriesItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationCreatedRepositoriesItem> for InstallationCreatedRepositoriesItem { fn from(value: &InstallationCreatedRepositoriesItem) -> Self { value.clone() } } #[doc = "InstallationDeleted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation deleted event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " \"repositories\": {"] #[doc = " \"description\": \"An array of repository objects that the installation can access.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationDeleted { pub action: InstallationDeletedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub repositories: Vec, #[serde(default)] pub requester: (), pub sender: User, } impl From<&InstallationDeleted> for InstallationDeleted { fn from(value: &InstallationDeleted) -> Self { value.clone() } } #[doc = "InstallationDeletedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"deleted\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationDeletedAction { #[serde(rename = "deleted")] Deleted, } impl From<&InstallationDeletedAction> for InstallationDeletedAction { fn from(value: &InstallationDeletedAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationDeletedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Deleted => write!(f, "deleted"), } } } impl std::str::FromStr for InstallationDeletedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "deleted" => Ok(Self::Deleted), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationDeletedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationDeletedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationDeletedRepositoriesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationDeletedRepositoriesItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationDeletedRepositoriesItem> for InstallationDeletedRepositoriesItem { fn from(value: &InstallationDeletedRepositoriesItem) -> Self { value.clone() } } #[doc = "InstallationEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation$created\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation$deleted\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation$new_permissions_accepted\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation$suspend\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation$unsuspend\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationEvent { Created(InstallationCreated), Deleted(InstallationDeleted), NewPermissionsAccepted(InstallationNewPermissionsAccepted), Suspend(InstallationSuspend), Unsuspend(InstallationUnsuspend), } impl From<&InstallationEvent> for InstallationEvent { fn from(value: &InstallationEvent) -> Self { value.clone() } } impl From for InstallationEvent { fn from(value: InstallationCreated) -> Self { Self::Created(value) } } impl From for InstallationEvent { fn from(value: InstallationDeleted) -> Self { Self::Deleted(value) } } impl From for InstallationEvent { fn from(value: InstallationNewPermissionsAccepted) -> Self { Self::NewPermissionsAccepted(value) } } impl From for InstallationEvent { fn from(value: InstallationSuspend) -> Self { Self::Suspend(value) } } impl From for InstallationEvent { fn from(value: InstallationUnsuspend) -> Self { Self::Unsuspend(value) } } #[doc = "InstallationEventsItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"check_run\","] #[doc = " \"check_suite\","] #[doc = " \"code_scanning_alert\","] #[doc = " \"commit_comment\","] #[doc = " \"content_reference\","] #[doc = " \"create\","] #[doc = " \"delete\","] #[doc = " \"deployment\","] #[doc = " \"deployment_review\","] #[doc = " \"deployment_status\","] #[doc = " \"deploy_key\","] #[doc = " \"discussion\","] #[doc = " \"discussion_comment\","] #[doc = " \"fork\","] #[doc = " \"gollum\","] #[doc = " \"issues\","] #[doc = " \"issue_comment\","] #[doc = " \"label\","] #[doc = " \"member\","] #[doc = " \"membership\","] #[doc = " \"merge_queue_entry\","] #[doc = " \"milestone\","] #[doc = " \"organization\","] #[doc = " \"org_block\","] #[doc = " \"page_build\","] #[doc = " \"project\","] #[doc = " \"project_card\","] #[doc = " \"project_column\","] #[doc = " \"public\","] #[doc = " \"pull_request\","] #[doc = " \"pull_request_review\","] #[doc = " \"pull_request_review_comment\","] #[doc = " \"push\","] #[doc = " \"registry_package\","] #[doc = " \"release\","] #[doc = " \"repository\","] #[doc = " \"repository_dispatch\","] #[doc = " \"secret_scanning_alert\","] #[doc = " \"star\","] #[doc = " \"status\","] #[doc = " \"team\","] #[doc = " \"team_add\","] #[doc = " \"watch\","] #[doc = " \"workflow_dispatch\","] #[doc = " \"workflow_run\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationEventsItem { #[serde(rename = "check_run")] CheckRun, #[serde(rename = "check_suite")] CheckSuite, #[serde(rename = "code_scanning_alert")] CodeScanningAlert, #[serde(rename = "commit_comment")] CommitComment, #[serde(rename = "content_reference")] ContentReference, #[serde(rename = "create")] Create, #[serde(rename = "delete")] Delete, #[serde(rename = "deployment")] Deployment, #[serde(rename = "deployment_review")] DeploymentReview, #[serde(rename = "deployment_status")] DeploymentStatus, #[serde(rename = "deploy_key")] DeployKey, #[serde(rename = "discussion")] Discussion, #[serde(rename = "discussion_comment")] DiscussionComment, #[serde(rename = "fork")] Fork, #[serde(rename = "gollum")] Gollum, #[serde(rename = "issues")] Issues, #[serde(rename = "issue_comment")] IssueComment, #[serde(rename = "label")] Label, #[serde(rename = "member")] Member, #[serde(rename = "membership")] Membership, #[serde(rename = "merge_queue_entry")] MergeQueueEntry, #[serde(rename = "milestone")] Milestone, #[serde(rename = "organization")] Organization, #[serde(rename = "org_block")] OrgBlock, #[serde(rename = "page_build")] PageBuild, #[serde(rename = "project")] Project, #[serde(rename = "project_card")] ProjectCard, #[serde(rename = "project_column")] ProjectColumn, #[serde(rename = "public")] Public, #[serde(rename = "pull_request")] PullRequest, #[serde(rename = "pull_request_review")] PullRequestReview, #[serde(rename = "pull_request_review_comment")] PullRequestReviewComment, #[serde(rename = "push")] Push, #[serde(rename = "registry_package")] RegistryPackage, #[serde(rename = "release")] Release, #[serde(rename = "repository")] Repository, #[serde(rename = "repository_dispatch")] RepositoryDispatch, #[serde(rename = "secret_scanning_alert")] SecretScanningAlert, #[serde(rename = "star")] Star, #[serde(rename = "status")] Status, #[serde(rename = "team")] Team, #[serde(rename = "team_add")] TeamAdd, #[serde(rename = "watch")] Watch, #[serde(rename = "workflow_dispatch")] WorkflowDispatch, #[serde(rename = "workflow_run")] WorkflowRun, } impl From<&InstallationEventsItem> for InstallationEventsItem { fn from(value: &InstallationEventsItem) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationEventsItem { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::CheckRun => write!(f, "check_run"), Self::CheckSuite => write!(f, "check_suite"), Self::CodeScanningAlert => write!(f, "code_scanning_alert"), Self::CommitComment => write!(f, "commit_comment"), Self::ContentReference => write!(f, "content_reference"), Self::Create => write!(f, "create"), Self::Delete => write!(f, "delete"), Self::Deployment => write!(f, "deployment"), Self::DeploymentReview => write!(f, "deployment_review"), Self::DeploymentStatus => write!(f, "deployment_status"), Self::DeployKey => write!(f, "deploy_key"), Self::Discussion => write!(f, "discussion"), Self::DiscussionComment => write!(f, "discussion_comment"), Self::Fork => write!(f, "fork"), Self::Gollum => write!(f, "gollum"), Self::Issues => write!(f, "issues"), Self::IssueComment => write!(f, "issue_comment"), Self::Label => write!(f, "label"), Self::Member => write!(f, "member"), Self::Membership => write!(f, "membership"), Self::MergeQueueEntry => write!(f, "merge_queue_entry"), Self::Milestone => write!(f, "milestone"), Self::Organization => write!(f, "organization"), Self::OrgBlock => write!(f, "org_block"), Self::PageBuild => write!(f, "page_build"), Self::Project => write!(f, "project"), Self::ProjectCard => write!(f, "project_card"), Self::ProjectColumn => write!(f, "project_column"), Self::Public => write!(f, "public"), Self::PullRequest => write!(f, "pull_request"), Self::PullRequestReview => write!(f, "pull_request_review"), Self::PullRequestReviewComment => write!(f, "pull_request_review_comment"), Self::Push => write!(f, "push"), Self::RegistryPackage => write!(f, "registry_package"), Self::Release => write!(f, "release"), Self::Repository => write!(f, "repository"), Self::RepositoryDispatch => write!(f, "repository_dispatch"), Self::SecretScanningAlert => write!(f, "secret_scanning_alert"), Self::Star => write!(f, "star"), Self::Status => write!(f, "status"), Self::Team => write!(f, "team"), Self::TeamAdd => write!(f, "team_add"), Self::Watch => write!(f, "watch"), Self::WorkflowDispatch => write!(f, "workflow_dispatch"), Self::WorkflowRun => write!(f, "workflow_run"), } } } impl std::str::FromStr for InstallationEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), "code_scanning_alert" => Ok(Self::CodeScanningAlert), "commit_comment" => Ok(Self::CommitComment), "content_reference" => Ok(Self::ContentReference), "create" => Ok(Self::Create), "delete" => Ok(Self::Delete), "deployment" => Ok(Self::Deployment), "deployment_review" => Ok(Self::DeploymentReview), "deployment_status" => Ok(Self::DeploymentStatus), "deploy_key" => Ok(Self::DeployKey), "discussion" => Ok(Self::Discussion), "discussion_comment" => Ok(Self::DiscussionComment), "fork" => Ok(Self::Fork), "gollum" => Ok(Self::Gollum), "issues" => Ok(Self::Issues), "issue_comment" => Ok(Self::IssueComment), "label" => Ok(Self::Label), "member" => Ok(Self::Member), "membership" => Ok(Self::Membership), "merge_queue_entry" => Ok(Self::MergeQueueEntry), "milestone" => Ok(Self::Milestone), "organization" => Ok(Self::Organization), "org_block" => Ok(Self::OrgBlock), "page_build" => Ok(Self::PageBuild), "project" => Ok(Self::Project), "project_card" => Ok(Self::ProjectCard), "project_column" => Ok(Self::ProjectColumn), "public" => Ok(Self::Public), "pull_request" => Ok(Self::PullRequest), "pull_request_review" => Ok(Self::PullRequestReview), "pull_request_review_comment" => Ok(Self::PullRequestReviewComment), "push" => Ok(Self::Push), "registry_package" => Ok(Self::RegistryPackage), "release" => Ok(Self::Release), "repository" => Ok(Self::Repository), "repository_dispatch" => Ok(Self::RepositoryDispatch), "secret_scanning_alert" => Ok(Self::SecretScanningAlert), "star" => Ok(Self::Star), "status" => Ok(Self::Status), "team" => Ok(Self::Team), "team_add" => Ok(Self::TeamAdd), "watch" => Ok(Self::Watch), "workflow_dispatch" => Ok(Self::WorkflowDispatch), "workflow_run" => Ok(Self::WorkflowRun), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Installation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"InstallationLite\","] #[doc = " \"description\": \"Installation\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"id\","] #[doc = " \"node_id\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"id\": {"] #[doc = " \"description\": \"The ID of the installation.\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationLite { #[doc = "The ID of the installation."] pub id: i64, pub node_id: String, } impl From<&InstallationLite> for InstallationLite { fn from(value: &InstallationLite) -> Self { value.clone() } } #[doc = "InstallationNewPermissionsAccepted"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation new_permissions_accepted event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"new_permissions_accepted\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " \"repositories\": {"] #[doc = " \"description\": \"An array of repository objects that the installation can access.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationNewPermissionsAccepted { pub action: InstallationNewPermissionsAcceptedAction, pub installation: Installation, #[doc = "An array of repository objects that the installation can access."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub repositories: Vec, #[serde(default)] pub requester: (), pub sender: User, } impl From<&InstallationNewPermissionsAccepted> for InstallationNewPermissionsAccepted { fn from(value: &InstallationNewPermissionsAccepted) -> Self { value.clone() } } #[doc = "InstallationNewPermissionsAcceptedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"new_permissions_accepted\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationNewPermissionsAcceptedAction { #[serde(rename = "new_permissions_accepted")] NewPermissionsAccepted, } impl From<&InstallationNewPermissionsAcceptedAction> for InstallationNewPermissionsAcceptedAction { fn from(value: &InstallationNewPermissionsAcceptedAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationNewPermissionsAcceptedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::NewPermissionsAccepted => write!(f, "new_permissions_accepted"), } } } impl std::str::FromStr for InstallationNewPermissionsAcceptedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "new_permissions_accepted" => Ok(Self::NewPermissionsAccepted), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationNewPermissionsAcceptedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationNewPermissionsAcceptedRepositoriesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationNewPermissionsAcceptedRepositoriesItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationNewPermissionsAcceptedRepositoriesItem> for InstallationNewPermissionsAcceptedRepositoriesItem { fn from(value: &InstallationNewPermissionsAcceptedRepositoriesItem) -> Self { value.clone() } } #[doc = "InstallationPermissions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"actions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"checks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_references\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"contents\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"emails\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"issues\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"members\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"metadata\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_plan\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_self_hosted_runners\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_user_blocking\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secret_scanning_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_scanning_alert\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"statuses\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"team_discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"vulnerability_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"workflows\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationPermissions { #[serde(default, skip_serializing_if = "Option::is_none")] pub actions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub checks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub content_references: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub contents: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub emails: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub environments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub issues: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub members: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_plan: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_self_hosted_runners: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_user_blocking: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pull_requests: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secret_scanning_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_scanning_alert: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub single_file: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub statuses: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub team_discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub vulnerability_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub workflows: Option, } impl From<&InstallationPermissions> for InstallationPermissions { fn from(value: &InstallationPermissions) -> Self { value.clone() } } #[doc = "InstallationPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsActions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsActions> for InstallationPermissionsActions { fn from(value: &InstallationPermissionsActions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsActions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsAdministration> for InstallationPermissionsAdministration { fn from(value: &InstallationPermissionsAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsChecks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsChecks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsChecks> for InstallationPermissionsChecks { fn from(value: &InstallationPermissionsChecks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsChecks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsContentReferences"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsContentReferences { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsContentReferences> for InstallationPermissionsContentReferences { fn from(value: &InstallationPermissionsContentReferences) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsContentReferences { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsContents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsContents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsContents> for InstallationPermissionsContents { fn from(value: &InstallationPermissionsContents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsContents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsDeployments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsDeployments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsDeployments> for InstallationPermissionsDeployments { fn from(value: &InstallationPermissionsDeployments) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsDeployments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsDiscussions> for InstallationPermissionsDiscussions { fn from(value: &InstallationPermissionsDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsEmails"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsEmails { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsEmails> for InstallationPermissionsEmails { fn from(value: &InstallationPermissionsEmails) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsEmails { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsEnvironments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsEnvironments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsEnvironments> for InstallationPermissionsEnvironments { fn from(value: &InstallationPermissionsEnvironments) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsEnvironments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsIssues"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsIssues { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsIssues> for InstallationPermissionsIssues { fn from(value: &InstallationPermissionsIssues) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsIssues { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsMembers"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsMembers { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsMembers> for InstallationPermissionsMembers { fn from(value: &InstallationPermissionsMembers) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsMembers { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsMetadata"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsMetadata { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsMetadata> for InstallationPermissionsMetadata { fn from(value: &InstallationPermissionsMetadata) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationAdministration> for InstallationPermissionsOrganizationAdministration { fn from(value: &InstallationPermissionsOrganizationAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationEvents> for InstallationPermissionsOrganizationEvents { fn from(value: &InstallationPermissionsOrganizationEvents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationHooks> for InstallationPermissionsOrganizationHooks { fn from(value: &InstallationPermissionsOrganizationHooks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationPackages> for InstallationPermissionsOrganizationPackages { fn from(value: &InstallationPermissionsOrganizationPackages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationPlan"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationPlan { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationPlan> for InstallationPermissionsOrganizationPlan { fn from(value: &InstallationPermissionsOrganizationPlan) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationPlan { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationProjects> for InstallationPermissionsOrganizationProjects { fn from(value: &InstallationPermissionsOrganizationProjects) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationSecrets> for InstallationPermissionsOrganizationSecrets { fn from(value: &InstallationPermissionsOrganizationSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationSelfHostedRunners"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationSelfHostedRunners { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationSelfHostedRunners> for InstallationPermissionsOrganizationSelfHostedRunners { fn from(value: &InstallationPermissionsOrganizationSelfHostedRunners) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationSelfHostedRunners { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsOrganizationUserBlocking"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsOrganizationUserBlocking { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsOrganizationUserBlocking> for InstallationPermissionsOrganizationUserBlocking { fn from(value: &InstallationPermissionsOrganizationUserBlocking) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsOrganizationUserBlocking { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsPackages> for InstallationPermissionsPackages { fn from(value: &InstallationPermissionsPackages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsPages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsPages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsPages> for InstallationPermissionsPages { fn from(value: &InstallationPermissionsPages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsPages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsPullRequests"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsPullRequests { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsPullRequests> for InstallationPermissionsPullRequests { fn from(value: &InstallationPermissionsPullRequests) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsPullRequests { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsRepositoryHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsRepositoryHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsRepositoryHooks> for InstallationPermissionsRepositoryHooks { fn from(value: &InstallationPermissionsRepositoryHooks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsRepositoryHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsRepositoryProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsRepositoryProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsRepositoryProjects> for InstallationPermissionsRepositoryProjects { fn from(value: &InstallationPermissionsRepositoryProjects) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsRepositoryProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsSecretScanningAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsSecretScanningAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsSecretScanningAlerts> for InstallationPermissionsSecretScanningAlerts { fn from(value: &InstallationPermissionsSecretScanningAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsSecretScanningAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsSecrets> for InstallationPermissionsSecrets { fn from(value: &InstallationPermissionsSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsSecurityEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsSecurityEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsSecurityEvents> for InstallationPermissionsSecurityEvents { fn from(value: &InstallationPermissionsSecurityEvents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsSecurityEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsSecurityScanningAlert"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsSecurityScanningAlert { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsSecurityScanningAlert> for InstallationPermissionsSecurityScanningAlert { fn from(value: &InstallationPermissionsSecurityScanningAlert) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsSecurityScanningAlert { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsSingleFile"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsSingleFile { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsSingleFile> for InstallationPermissionsSingleFile { fn from(value: &InstallationPermissionsSingleFile) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsSingleFile { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsStatuses"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsStatuses { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsStatuses> for InstallationPermissionsStatuses { fn from(value: &InstallationPermissionsStatuses) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsStatuses { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsTeamDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsTeamDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsTeamDiscussions> for InstallationPermissionsTeamDiscussions { fn from(value: &InstallationPermissionsTeamDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsTeamDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsVulnerabilityAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsVulnerabilityAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsVulnerabilityAlerts> for InstallationPermissionsVulnerabilityAlerts { fn from(value: &InstallationPermissionsVulnerabilityAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsVulnerabilityAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationPermissionsWorkflows"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationPermissionsWorkflows { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationPermissionsWorkflows> for InstallationPermissionsWorkflows { fn from(value: &InstallationPermissionsWorkflows) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationPermissionsWorkflows { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationRepositoriesAdded"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation_repositories added event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"repositories_added\","] #[doc = " \"repositories_removed\","] #[doc = " \"repository_selection\","] #[doc = " \"requester\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"added\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " \"repositories_added\": {"] #[doc = " \"description\": \"An array of repository objects, which were added to the installation.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"repositories_removed\": {"] #[doc = " \"description\": \"An array of repository objects, which were removed from the installation.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"maxItems\": 0"] #[doc = " },"] #[doc = " \"repository_selection\": {"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesAdded { pub action: InstallationRepositoriesAddedAction, pub installation: Installation, #[doc = "An array of repository objects, which were added to the installation."] pub repositories_added: Vec, #[doc = "An array of repository objects, which were removed from the installation."] pub repositories_removed: Vec, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositoriesAddedRepositorySelection, pub requester: Option, pub sender: User, } impl From<&InstallationRepositoriesAdded> for InstallationRepositoriesAdded { fn from(value: &InstallationRepositoriesAdded) -> Self { value.clone() } } #[doc = "InstallationRepositoriesAddedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"added\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationRepositoriesAddedAction { #[serde(rename = "added")] Added, } impl From<&InstallationRepositoriesAddedAction> for InstallationRepositoriesAddedAction { fn from(value: &InstallationRepositoriesAddedAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationRepositoriesAddedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Added => write!(f, "added"), } } } impl std::str::FromStr for InstallationRepositoriesAddedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "added" => Ok(Self::Added), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationRepositoriesAddedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationRepositoriesAddedRepositoriesAddedItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesAddedRepositoriesAddedItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationRepositoriesAddedRepositoriesAddedItem> for InstallationRepositoriesAddedRepositoriesAddedItem { fn from(value: &InstallationRepositoriesAddedRepositoriesAddedItem) -> Self { value.clone() } } #[doc = "InstallationRepositoriesAddedRepositoriesRemovedItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesAddedRepositoriesRemovedItem { #[serde(default, skip_serializing_if = "Option::is_none")] pub full_name: Option, #[doc = "Unique identifier of the repository"] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The name of the repository."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub node_id: Option, #[doc = "Whether the repository is private or public."] #[serde(default, skip_serializing_if = "Option::is_none")] pub private: Option, } impl From<&InstallationRepositoriesAddedRepositoriesRemovedItem> for InstallationRepositoriesAddedRepositoriesRemovedItem { fn from(value: &InstallationRepositoriesAddedRepositoriesRemovedItem) -> Self { value.clone() } } #[doc = "Describe whether all repositories have been selected or there's a selection involved"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationRepositoriesAddedRepositorySelection { #[serde(rename = "all")] All, #[serde(rename = "selected")] Selected, } impl From<&InstallationRepositoriesAddedRepositorySelection> for InstallationRepositoriesAddedRepositorySelection { fn from(value: &InstallationRepositoriesAddedRepositorySelection) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationRepositoriesAddedRepositorySelection { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::All => write!(f, "all"), Self::Selected => write!(f, "selected"), } } } impl std::str::FromStr for InstallationRepositoriesAddedRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationRepositoriesAddedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationRepositoriesEvent"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation_repositories$added\""] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation_repositories$removed\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationRepositoriesEvent { Added(InstallationRepositoriesAdded), Removed(InstallationRepositoriesRemoved), } impl From<&InstallationRepositoriesEvent> for InstallationRepositoriesEvent { fn from(value: &InstallationRepositoriesEvent) -> Self { value.clone() } } impl From for InstallationRepositoriesEvent { fn from(value: InstallationRepositoriesAdded) -> Self { Self::Added(value) } } impl From for InstallationRepositoriesEvent { fn from(value: InstallationRepositoriesRemoved) -> Self { Self::Removed(value) } } #[doc = "InstallationRepositoriesRemoved"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation_repositories removed event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"repositories_added\","] #[doc = " \"repositories_removed\","] #[doc = " \"repository_selection\","] #[doc = " \"requester\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"removed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " \"repositories_added\": {"] #[doc = " \"description\": \"An array of repository objects, which were added to the installation.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"maxItems\": 0"] #[doc = " },"] #[doc = " \"repositories_removed\": {"] #[doc = " \"description\": \"An array of repository objects, which were removed from the installation.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"repository_selection\": {"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesRemoved { pub action: InstallationRepositoriesRemovedAction, pub installation: Installation, #[doc = "An array of repository objects, which were added to the installation."] pub repositories_added: Vec, #[doc = "An array of repository objects, which were removed from the installation."] pub repositories_removed: Vec, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationRepositoriesRemovedRepositorySelection, pub requester: Option, pub sender: User, } impl From<&InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved { fn from(value: &InstallationRepositoriesRemoved) -> Self { value.clone() } } #[doc = "InstallationRepositoriesRemovedAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"removed\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationRepositoriesRemovedAction { #[serde(rename = "removed")] Removed, } impl From<&InstallationRepositoriesRemovedAction> for InstallationRepositoriesRemovedAction { fn from(value: &InstallationRepositoriesRemovedAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationRepositoriesRemovedAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Removed => write!(f, "removed"), } } } impl std::str::FromStr for InstallationRepositoriesRemovedAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "removed" => Ok(Self::Removed), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationRepositoriesRemovedAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationRepositoriesRemovedRepositoriesAddedItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesRemovedRepositoriesAddedItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationRepositoriesRemovedRepositoriesAddedItem> for InstallationRepositoriesRemovedRepositoriesAddedItem { fn from(value: &InstallationRepositoriesRemovedRepositoriesAddedItem) -> Self { value.clone() } } #[doc = "InstallationRepositoriesRemovedRepositoriesRemovedItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationRepositoriesRemovedRepositoriesRemovedItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationRepositoriesRemovedRepositoriesRemovedItem> for InstallationRepositoriesRemovedRepositoriesRemovedItem { fn from(value: &InstallationRepositoriesRemovedRepositoriesRemovedItem) -> Self { value.clone() } } #[doc = "Describe whether all repositories have been selected or there's a selection involved"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationRepositoriesRemovedRepositorySelection { #[serde(rename = "all")] All, #[serde(rename = "selected")] Selected, } impl From<&InstallationRepositoriesRemovedRepositorySelection> for InstallationRepositoriesRemovedRepositorySelection { fn from(value: &InstallationRepositoriesRemovedRepositorySelection) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationRepositoriesRemovedRepositorySelection { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::All => write!(f, "all"), Self::Selected => write!(f, "selected"), } } } impl std::str::FromStr for InstallationRepositoriesRemovedRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationRepositoriesRemovedRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Describe whether all repositories have been selected or there's a selection involved"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationRepositorySelection { #[serde(rename = "all")] All, #[serde(rename = "selected")] Selected, } impl From<&InstallationRepositorySelection> for InstallationRepositorySelection { fn from(value: &InstallationRepositorySelection) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationRepositorySelection { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::All => write!(f, "all"), Self::Selected => write!(f, "selected"), } } } impl std::str::FromStr for InstallationRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspend"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation suspend event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"suspend\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"suspended_at\","] #[doc = " \"suspended_by\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"suspended_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"suspended_by\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"repositories\": {"] #[doc = " \"description\": \"An array of repository objects that the installation can access.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspend { pub action: InstallationSuspendAction, pub installation: InstallationSuspendInstallation, #[doc = "An array of repository objects that the installation can access."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub repositories: Vec, #[serde(default)] pub requester: (), pub sender: User, } impl From<&InstallationSuspend> for InstallationSuspend { fn from(value: &InstallationSuspend) -> Self { value.clone() } } #[doc = "InstallationSuspendAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"suspend\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendAction { #[serde(rename = "suspend")] Suspend, } impl From<&InstallationSuspendAction> for InstallationSuspendAction { fn from(value: &InstallationSuspendAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Suspend => write!(f, "suspend"), } } } impl std::str::FromStr for InstallationSuspendAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "suspend" => Ok(Self::Suspend), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"suspended_at\","] #[doc = " \"suspended_by\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"suspended_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"suspended_by\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallation { pub access_tokens_url: String, pub account: User, pub app_id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub app_slug: Option, pub created_at: InstallationSuspendInstallationCreatedAt, pub events: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub has_multiple_single_files: Option, pub html_url: String, #[doc = "The ID of the installation."] pub id: i64, pub permissions: InstallationSuspendInstallationPermissions, pub repositories_url: String, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationSuspendInstallationRepositorySelection, pub single_file_name: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub single_file_paths: Vec, pub suspended_at: chrono::DateTime, pub suspended_by: InstallationSuspendInstallationSuspendedBy, #[doc = "The ID of the user or organization this token is being scoped to."] pub target_id: i64, pub target_type: InstallationSuspendInstallationTargetType, pub updated_at: InstallationSuspendInstallationUpdatedAt, } impl From<&InstallationSuspendInstallation> for InstallationSuspendInstallation { fn from(value: &InstallationSuspendInstallation) -> Self { value.clone() } } #[doc = "InstallationSuspendInstallationCreatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationSuspendInstallationCreatedAt { Variant0(chrono::DateTime), Variant1(i64), } impl From<&InstallationSuspendInstallationCreatedAt> for InstallationSuspendInstallationCreatedAt { fn from(value: &InstallationSuspendInstallationCreatedAt) -> Self { value.clone() } } impl std::str::FromStr for InstallationSuspendInstallationCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for InstallationSuspendInstallationCreatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From> for InstallationSuspendInstallationCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } impl From for InstallationSuspendInstallationCreatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } } #[doc = "InstallationSuspendInstallationEventsItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"check_run\","] #[doc = " \"check_suite\","] #[doc = " \"code_scanning_alert\","] #[doc = " \"commit_comment\","] #[doc = " \"content_reference\","] #[doc = " \"create\","] #[doc = " \"delete\","] #[doc = " \"deployment\","] #[doc = " \"deployment_review\","] #[doc = " \"deployment_status\","] #[doc = " \"deploy_key\","] #[doc = " \"discussion\","] #[doc = " \"discussion_comment\","] #[doc = " \"fork\","] #[doc = " \"gollum\","] #[doc = " \"issues\","] #[doc = " \"issue_comment\","] #[doc = " \"label\","] #[doc = " \"member\","] #[doc = " \"membership\","] #[doc = " \"merge_queue_entry\","] #[doc = " \"milestone\","] #[doc = " \"organization\","] #[doc = " \"org_block\","] #[doc = " \"page_build\","] #[doc = " \"project\","] #[doc = " \"project_card\","] #[doc = " \"project_column\","] #[doc = " \"public\","] #[doc = " \"pull_request\","] #[doc = " \"pull_request_review\","] #[doc = " \"pull_request_review_comment\","] #[doc = " \"push\","] #[doc = " \"registry_package\","] #[doc = " \"release\","] #[doc = " \"repository\","] #[doc = " \"repository_dispatch\","] #[doc = " \"secret_scanning_alert\","] #[doc = " \"star\","] #[doc = " \"status\","] #[doc = " \"team\","] #[doc = " \"team_add\","] #[doc = " \"watch\","] #[doc = " \"workflow_dispatch\","] #[doc = " \"workflow_run\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationEventsItem { #[serde(rename = "check_run")] CheckRun, #[serde(rename = "check_suite")] CheckSuite, #[serde(rename = "code_scanning_alert")] CodeScanningAlert, #[serde(rename = "commit_comment")] CommitComment, #[serde(rename = "content_reference")] ContentReference, #[serde(rename = "create")] Create, #[serde(rename = "delete")] Delete, #[serde(rename = "deployment")] Deployment, #[serde(rename = "deployment_review")] DeploymentReview, #[serde(rename = "deployment_status")] DeploymentStatus, #[serde(rename = "deploy_key")] DeployKey, #[serde(rename = "discussion")] Discussion, #[serde(rename = "discussion_comment")] DiscussionComment, #[serde(rename = "fork")] Fork, #[serde(rename = "gollum")] Gollum, #[serde(rename = "issues")] Issues, #[serde(rename = "issue_comment")] IssueComment, #[serde(rename = "label")] Label, #[serde(rename = "member")] Member, #[serde(rename = "membership")] Membership, #[serde(rename = "merge_queue_entry")] MergeQueueEntry, #[serde(rename = "milestone")] Milestone, #[serde(rename = "organization")] Organization, #[serde(rename = "org_block")] OrgBlock, #[serde(rename = "page_build")] PageBuild, #[serde(rename = "project")] Project, #[serde(rename = "project_card")] ProjectCard, #[serde(rename = "project_column")] ProjectColumn, #[serde(rename = "public")] Public, #[serde(rename = "pull_request")] PullRequest, #[serde(rename = "pull_request_review")] PullRequestReview, #[serde(rename = "pull_request_review_comment")] PullRequestReviewComment, #[serde(rename = "push")] Push, #[serde(rename = "registry_package")] RegistryPackage, #[serde(rename = "release")] Release, #[serde(rename = "repository")] Repository, #[serde(rename = "repository_dispatch")] RepositoryDispatch, #[serde(rename = "secret_scanning_alert")] SecretScanningAlert, #[serde(rename = "star")] Star, #[serde(rename = "status")] Status, #[serde(rename = "team")] Team, #[serde(rename = "team_add")] TeamAdd, #[serde(rename = "watch")] Watch, #[serde(rename = "workflow_dispatch")] WorkflowDispatch, #[serde(rename = "workflow_run")] WorkflowRun, } impl From<&InstallationSuspendInstallationEventsItem> for InstallationSuspendInstallationEventsItem { fn from(value: &InstallationSuspendInstallationEventsItem) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationEventsItem { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::CheckRun => write!(f, "check_run"), Self::CheckSuite => write!(f, "check_suite"), Self::CodeScanningAlert => write!(f, "code_scanning_alert"), Self::CommitComment => write!(f, "commit_comment"), Self::ContentReference => write!(f, "content_reference"), Self::Create => write!(f, "create"), Self::Delete => write!(f, "delete"), Self::Deployment => write!(f, "deployment"), Self::DeploymentReview => write!(f, "deployment_review"), Self::DeploymentStatus => write!(f, "deployment_status"), Self::DeployKey => write!(f, "deploy_key"), Self::Discussion => write!(f, "discussion"), Self::DiscussionComment => write!(f, "discussion_comment"), Self::Fork => write!(f, "fork"), Self::Gollum => write!(f, "gollum"), Self::Issues => write!(f, "issues"), Self::IssueComment => write!(f, "issue_comment"), Self::Label => write!(f, "label"), Self::Member => write!(f, "member"), Self::Membership => write!(f, "membership"), Self::MergeQueueEntry => write!(f, "merge_queue_entry"), Self::Milestone => write!(f, "milestone"), Self::Organization => write!(f, "organization"), Self::OrgBlock => write!(f, "org_block"), Self::PageBuild => write!(f, "page_build"), Self::Project => write!(f, "project"), Self::ProjectCard => write!(f, "project_card"), Self::ProjectColumn => write!(f, "project_column"), Self::Public => write!(f, "public"), Self::PullRequest => write!(f, "pull_request"), Self::PullRequestReview => write!(f, "pull_request_review"), Self::PullRequestReviewComment => write!(f, "pull_request_review_comment"), Self::Push => write!(f, "push"), Self::RegistryPackage => write!(f, "registry_package"), Self::Release => write!(f, "release"), Self::Repository => write!(f, "repository"), Self::RepositoryDispatch => write!(f, "repository_dispatch"), Self::SecretScanningAlert => write!(f, "secret_scanning_alert"), Self::Star => write!(f, "star"), Self::Status => write!(f, "status"), Self::Team => write!(f, "team"), Self::TeamAdd => write!(f, "team_add"), Self::Watch => write!(f, "watch"), Self::WorkflowDispatch => write!(f, "workflow_dispatch"), Self::WorkflowRun => write!(f, "workflow_run"), } } } impl std::str::FromStr for InstallationSuspendInstallationEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), "code_scanning_alert" => Ok(Self::CodeScanningAlert), "commit_comment" => Ok(Self::CommitComment), "content_reference" => Ok(Self::ContentReference), "create" => Ok(Self::Create), "delete" => Ok(Self::Delete), "deployment" => Ok(Self::Deployment), "deployment_review" => Ok(Self::DeploymentReview), "deployment_status" => Ok(Self::DeploymentStatus), "deploy_key" => Ok(Self::DeployKey), "discussion" => Ok(Self::Discussion), "discussion_comment" => Ok(Self::DiscussionComment), "fork" => Ok(Self::Fork), "gollum" => Ok(Self::Gollum), "issues" => Ok(Self::Issues), "issue_comment" => Ok(Self::IssueComment), "label" => Ok(Self::Label), "member" => Ok(Self::Member), "membership" => Ok(Self::Membership), "merge_queue_entry" => Ok(Self::MergeQueueEntry), "milestone" => Ok(Self::Milestone), "organization" => Ok(Self::Organization), "org_block" => Ok(Self::OrgBlock), "page_build" => Ok(Self::PageBuild), "project" => Ok(Self::Project), "project_card" => Ok(Self::ProjectCard), "project_column" => Ok(Self::ProjectColumn), "public" => Ok(Self::Public), "pull_request" => Ok(Self::PullRequest), "pull_request_review" => Ok(Self::PullRequestReview), "pull_request_review_comment" => Ok(Self::PullRequestReviewComment), "push" => Ok(Self::Push), "registry_package" => Ok(Self::RegistryPackage), "release" => Ok(Self::Release), "repository" => Ok(Self::Repository), "repository_dispatch" => Ok(Self::RepositoryDispatch), "secret_scanning_alert" => Ok(Self::SecretScanningAlert), "star" => Ok(Self::Star), "status" => Ok(Self::Status), "team" => Ok(Self::Team), "team_add" => Ok(Self::TeamAdd), "watch" => Ok(Self::Watch), "workflow_dispatch" => Ok(Self::WorkflowDispatch), "workflow_run" => Ok(Self::WorkflowRun), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"actions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"checks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_references\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"contents\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"emails\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"issues\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"members\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"metadata\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_plan\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_self_hosted_runners\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_user_blocking\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secret_scanning_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_scanning_alert\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"statuses\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"team_discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"vulnerability_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"workflows\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallationPermissions { #[serde(default, skip_serializing_if = "Option::is_none")] pub actions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub checks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub content_references: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub contents: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub emails: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub environments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub issues: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub members: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_plan: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_self_hosted_runners: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_user_blocking: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pull_requests: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secret_scanning_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_scanning_alert: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub single_file: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub statuses: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub team_discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub vulnerability_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub workflows: Option, } impl From<&InstallationSuspendInstallationPermissions> for InstallationSuspendInstallationPermissions { fn from(value: &InstallationSuspendInstallationPermissions) -> Self { value.clone() } } #[doc = "InstallationSuspendInstallationPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsActions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsActions> for InstallationSuspendInstallationPermissionsActions { fn from(value: &InstallationSuspendInstallationPermissionsActions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsActions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsAdministration> for InstallationSuspendInstallationPermissionsAdministration { fn from(value: &InstallationSuspendInstallationPermissionsAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsChecks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsChecks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsChecks> for InstallationSuspendInstallationPermissionsChecks { fn from(value: &InstallationSuspendInstallationPermissionsChecks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsChecks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsContentReferences"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsContentReferences { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsContentReferences> for InstallationSuspendInstallationPermissionsContentReferences { fn from(value: &InstallationSuspendInstallationPermissionsContentReferences) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsContentReferences { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsContents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsContents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsContents> for InstallationSuspendInstallationPermissionsContents { fn from(value: &InstallationSuspendInstallationPermissionsContents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsContents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsDeployments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsDeployments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsDeployments> for InstallationSuspendInstallationPermissionsDeployments { fn from(value: &InstallationSuspendInstallationPermissionsDeployments) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsDeployments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsDiscussions> for InstallationSuspendInstallationPermissionsDiscussions { fn from(value: &InstallationSuspendInstallationPermissionsDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsEmails"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsEmails { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsEmails> for InstallationSuspendInstallationPermissionsEmails { fn from(value: &InstallationSuspendInstallationPermissionsEmails) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsEmails { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsEnvironments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsEnvironments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsEnvironments> for InstallationSuspendInstallationPermissionsEnvironments { fn from(value: &InstallationSuspendInstallationPermissionsEnvironments) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsEnvironments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsIssues"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsIssues { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsIssues> for InstallationSuspendInstallationPermissionsIssues { fn from(value: &InstallationSuspendInstallationPermissionsIssues) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsIssues { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsMembers"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsMembers { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsMembers> for InstallationSuspendInstallationPermissionsMembers { fn from(value: &InstallationSuspendInstallationPermissionsMembers) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsMembers { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsMetadata"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsMetadata { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsMetadata> for InstallationSuspendInstallationPermissionsMetadata { fn from(value: &InstallationSuspendInstallationPermissionsMetadata) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationAdministration> for InstallationSuspendInstallationPermissionsOrganizationAdministration { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationEvents> for InstallationSuspendInstallationPermissionsOrganizationEvents { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationEvents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationHooks> for InstallationSuspendInstallationPermissionsOrganizationHooks { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationHooks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationPackages> for InstallationSuspendInstallationPermissionsOrganizationPackages { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationPackages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationPlan"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationPlan { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationPlan> for InstallationSuspendInstallationPermissionsOrganizationPlan { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationPlan) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationPlan { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationProjects> for InstallationSuspendInstallationPermissionsOrganizationProjects { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationProjects) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationSecrets> for InstallationSuspendInstallationPermissionsOrganizationSecrets { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { fn from( value: &InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners, ) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsOrganizationUserBlocking"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsOrganizationUserBlocking { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsOrganizationUserBlocking> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { fn from(value: &InstallationSuspendInstallationPermissionsOrganizationUserBlocking) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsPackages> for InstallationSuspendInstallationPermissionsPackages { fn from(value: &InstallationSuspendInstallationPermissionsPackages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsPages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsPages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsPages> for InstallationSuspendInstallationPermissionsPages { fn from(value: &InstallationSuspendInstallationPermissionsPages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsPullRequests"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsPullRequests { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsPullRequests> for InstallationSuspendInstallationPermissionsPullRequests { fn from(value: &InstallationSuspendInstallationPermissionsPullRequests) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsPullRequests { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsRepositoryHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsRepositoryHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsRepositoryHooks> for InstallationSuspendInstallationPermissionsRepositoryHooks { fn from(value: &InstallationSuspendInstallationPermissionsRepositoryHooks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsRepositoryHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsRepositoryProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsRepositoryProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsRepositoryProjects> for InstallationSuspendInstallationPermissionsRepositoryProjects { fn from(value: &InstallationSuspendInstallationPermissionsRepositoryProjects) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsRepositoryProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsSecretScanningAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsSecretScanningAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsSecretScanningAlerts> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { fn from(value: &InstallationSuspendInstallationPermissionsSecretScanningAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecretScanningAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsSecrets> for InstallationSuspendInstallationPermissionsSecrets { fn from(value: &InstallationSuspendInstallationPermissionsSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsSecurityEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsSecurityEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsSecurityEvents> for InstallationSuspendInstallationPermissionsSecurityEvents { fn from(value: &InstallationSuspendInstallationPermissionsSecurityEvents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecurityEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsSecurityScanningAlert"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsSecurityScanningAlert { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsSecurityScanningAlert> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { fn from(value: &InstallationSuspendInstallationPermissionsSecurityScanningAlert) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSecurityScanningAlert { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsSingleFile"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsSingleFile { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsSingleFile> for InstallationSuspendInstallationPermissionsSingleFile { fn from(value: &InstallationSuspendInstallationPermissionsSingleFile) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsSingleFile { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsStatuses"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsStatuses { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsStatuses> for InstallationSuspendInstallationPermissionsStatuses { fn from(value: &InstallationSuspendInstallationPermissionsStatuses) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsStatuses { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsTeamDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsTeamDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsTeamDiscussions> for InstallationSuspendInstallationPermissionsTeamDiscussions { fn from(value: &InstallationSuspendInstallationPermissionsTeamDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsTeamDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsVulnerabilityAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsVulnerabilityAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsVulnerabilityAlerts> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { fn from(value: &InstallationSuspendInstallationPermissionsVulnerabilityAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationPermissionsWorkflows"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationPermissionsWorkflows { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationSuspendInstallationPermissionsWorkflows> for InstallationSuspendInstallationPermissionsWorkflows { fn from(value: &InstallationSuspendInstallationPermissionsWorkflows) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationPermissionsWorkflows { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationSuspendInstallationPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Describe whether all repositories have been selected or there's a selection involved"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationRepositorySelection { #[serde(rename = "all")] All, #[serde(rename = "selected")] Selected, } impl From<&InstallationSuspendInstallationRepositorySelection> for InstallationSuspendInstallationRepositorySelection { fn from(value: &InstallationSuspendInstallationRepositorySelection) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationRepositorySelection { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::All => write!(f, "all"), Self::Selected => write!(f, "selected"), } } } impl std::str::FromStr for InstallationSuspendInstallationRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationSuspendedBy"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"avatar_url\","] #[doc = " \"events_url\","] #[doc = " \"followers_url\","] #[doc = " \"following_url\","] #[doc = " \"gists_url\","] #[doc = " \"gravatar_id\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"login\","] #[doc = " \"node_id\","] #[doc = " \"organizations_url\","] #[doc = " \"received_events_url\","] #[doc = " \"repos_url\","] #[doc = " \"site_admin\","] #[doc = " \"starred_url\","] #[doc = " \"subscriptions_url\","] #[doc = " \"type\","] #[doc = " \"url\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"avatar_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"email\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"followers_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"following_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"gists_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"gravatar_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"login\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"organizations_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"received_events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"repos_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"site_admin\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"starred_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"subscriptions_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"type\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"Bot\","] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"not\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendInstallationSuspendedBy { pub avatar_url: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, pub events_url: String, pub followers_url: String, pub following_url: String, pub gists_url: String, pub gravatar_id: String, pub html_url: String, pub id: i64, pub login: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, pub node_id: String, pub organizations_url: String, pub received_events_url: String, pub repos_url: String, pub site_admin: bool, pub starred_url: String, pub subscriptions_url: String, #[serde(rename = "type")] pub type_: InstallationSuspendInstallationSuspendedByType, pub url: String, } impl From<&InstallationSuspendInstallationSuspendedBy> for InstallationSuspendInstallationSuspendedBy { fn from(value: &InstallationSuspendInstallationSuspendedBy) -> Self { value.clone() } } #[doc = "InstallationSuspendInstallationSuspendedByType"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"Bot\","] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationSuspendedByType { Bot, User, Organization, } impl From<&InstallationSuspendInstallationSuspendedByType> for InstallationSuspendInstallationSuspendedByType { fn from(value: &InstallationSuspendInstallationSuspendedByType) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationSuspendedByType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Bot => write!(f, "Bot"), Self::User => write!(f, "User"), Self::Organization => write!(f, "Organization"), } } } impl std::str::FromStr for InstallationSuspendInstallationSuspendedByType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "Bot" => Ok(Self::Bot), "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationSuspendedByType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationTargetType"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationSuspendInstallationTargetType { User, Organization, } impl From<&InstallationSuspendInstallationTargetType> for InstallationSuspendInstallationTargetType { fn from(value: &InstallationSuspendInstallationTargetType) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationSuspendInstallationTargetType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::User => write!(f, "User"), Self::Organization => write!(f, "Organization"), } } } impl std::str::FromStr for InstallationSuspendInstallationTargetType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationSuspendInstallationUpdatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationSuspendInstallationUpdatedAt { Variant0(chrono::DateTime), Variant1(i64), } impl From<&InstallationSuspendInstallationUpdatedAt> for InstallationSuspendInstallationUpdatedAt { fn from(value: &InstallationSuspendInstallationUpdatedAt) -> Self { value.clone() } } impl std::str::FromStr for InstallationSuspendInstallationUpdatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationSuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for InstallationSuspendInstallationUpdatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From> for InstallationSuspendInstallationUpdatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } impl From for InstallationSuspendInstallationUpdatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } } #[doc = "InstallationSuspendRepositoriesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationSuspendRepositoriesItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationSuspendRepositoriesItem> for InstallationSuspendRepositoriesItem { fn from(value: &InstallationSuspendRepositoriesItem) -> Self { value.clone() } } #[doc = "InstallationTargetType"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationTargetType { User, Organization, } impl From<&InstallationTargetType> for InstallationTargetType { fn from(value: &InstallationTargetType) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationTargetType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::User => write!(f, "User"), Self::Organization => write!(f, "Organization"), } } } impl std::str::FromStr for InstallationTargetType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspend"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"installation unsuspend event\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"action\","] #[doc = " \"installation\","] #[doc = " \"sender\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"action\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unsuspend\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"installation\": {"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"suspended_at\","] #[doc = " \"suspended_by\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"suspended_at\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"suspended_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"repositories\": {"] #[doc = " \"description\": \"An array of repository objects that the installation can access.\","] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " }"] #[doc = " },"] #[doc = " \"requester\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"sender\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspend { pub action: InstallationUnsuspendAction, pub installation: InstallationUnsuspendInstallation, #[doc = "An array of repository objects that the installation can access."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub repositories: Vec, #[serde(default)] pub requester: (), pub sender: User, } impl From<&InstallationUnsuspend> for InstallationUnsuspend { fn from(value: &InstallationUnsuspend) -> Self { value.clone() } } #[doc = "InstallationUnsuspendAction"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"unsuspend\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendAction { #[serde(rename = "unsuspend")] Unsuspend, } impl From<&InstallationUnsuspendAction> for InstallationUnsuspendAction { fn from(value: &InstallationUnsuspendAction) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendAction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Unsuspend => write!(f, "unsuspend"), } } } impl std::str::FromStr for InstallationUnsuspendAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "unsuspend" => Ok(Self::Unsuspend), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendAction { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendAction { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallation"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"allOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/installation\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"suspended_at\","] #[doc = " \"suspended_by\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"suspended_at\": {"] #[doc = " \"type\": \"null\""] #[doc = " },"] #[doc = " \"suspended_by\": {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " },"] #[doc = " \"tsAdditionalProperties\": false"] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendInstallation { pub access_tokens_url: String, pub account: User, pub app_id: i64, #[serde(default, skip_serializing_if = "Option::is_none")] pub app_slug: Option, pub created_at: InstallationUnsuspendInstallationCreatedAt, pub events: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub has_multiple_single_files: Option, pub html_url: String, #[doc = "The ID of the installation."] pub id: i64, pub permissions: InstallationUnsuspendInstallationPermissions, pub repositories_url: String, #[doc = "Describe whether all repositories have been selected or there's a selection involved"] pub repository_selection: InstallationUnsuspendInstallationRepositorySelection, pub single_file_name: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub single_file_paths: Vec, pub suspended_at: (), pub suspended_by: (), #[doc = "The ID of the user or organization this token is being scoped to."] pub target_id: i64, pub target_type: InstallationUnsuspendInstallationTargetType, pub updated_at: InstallationUnsuspendInstallationUpdatedAt, } impl From<&InstallationUnsuspendInstallation> for InstallationUnsuspendInstallation { fn from(value: &InstallationUnsuspendInstallation) -> Self { value.clone() } } #[doc = "InstallationUnsuspendInstallationCreatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationUnsuspendInstallationCreatedAt { Variant0(chrono::DateTime), Variant1(i64), } impl From<&InstallationUnsuspendInstallationCreatedAt> for InstallationUnsuspendInstallationCreatedAt { fn from(value: &InstallationUnsuspendInstallationCreatedAt) -> Self { value.clone() } } impl std::str::FromStr for InstallationUnsuspendInstallationCreatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationCreatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationCreatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From> for InstallationUnsuspendInstallationCreatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } impl From for InstallationUnsuspendInstallationCreatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } } #[doc = "InstallationUnsuspendInstallationEventsItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"check_run\","] #[doc = " \"check_suite\","] #[doc = " \"code_scanning_alert\","] #[doc = " \"commit_comment\","] #[doc = " \"content_reference\","] #[doc = " \"create\","] #[doc = " \"delete\","] #[doc = " \"deployment\","] #[doc = " \"deployment_review\","] #[doc = " \"deployment_status\","] #[doc = " \"deploy_key\","] #[doc = " \"discussion\","] #[doc = " \"discussion_comment\","] #[doc = " \"fork\","] #[doc = " \"gollum\","] #[doc = " \"issues\","] #[doc = " \"issue_comment\","] #[doc = " \"label\","] #[doc = " \"member\","] #[doc = " \"membership\","] #[doc = " \"merge_queue_entry\","] #[doc = " \"milestone\","] #[doc = " \"organization\","] #[doc = " \"org_block\","] #[doc = " \"page_build\","] #[doc = " \"project\","] #[doc = " \"project_card\","] #[doc = " \"project_column\","] #[doc = " \"public\","] #[doc = " \"pull_request\","] #[doc = " \"pull_request_review\","] #[doc = " \"pull_request_review_comment\","] #[doc = " \"push\","] #[doc = " \"registry_package\","] #[doc = " \"release\","] #[doc = " \"repository\","] #[doc = " \"repository_dispatch\","] #[doc = " \"secret_scanning_alert\","] #[doc = " \"star\","] #[doc = " \"status\","] #[doc = " \"team\","] #[doc = " \"team_add\","] #[doc = " \"watch\","] #[doc = " \"workflow_dispatch\","] #[doc = " \"workflow_run\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationEventsItem { #[serde(rename = "check_run")] CheckRun, #[serde(rename = "check_suite")] CheckSuite, #[serde(rename = "code_scanning_alert")] CodeScanningAlert, #[serde(rename = "commit_comment")] CommitComment, #[serde(rename = "content_reference")] ContentReference, #[serde(rename = "create")] Create, #[serde(rename = "delete")] Delete, #[serde(rename = "deployment")] Deployment, #[serde(rename = "deployment_review")] DeploymentReview, #[serde(rename = "deployment_status")] DeploymentStatus, #[serde(rename = "deploy_key")] DeployKey, #[serde(rename = "discussion")] Discussion, #[serde(rename = "discussion_comment")] DiscussionComment, #[serde(rename = "fork")] Fork, #[serde(rename = "gollum")] Gollum, #[serde(rename = "issues")] Issues, #[serde(rename = "issue_comment")] IssueComment, #[serde(rename = "label")] Label, #[serde(rename = "member")] Member, #[serde(rename = "membership")] Membership, #[serde(rename = "merge_queue_entry")] MergeQueueEntry, #[serde(rename = "milestone")] Milestone, #[serde(rename = "organization")] Organization, #[serde(rename = "org_block")] OrgBlock, #[serde(rename = "page_build")] PageBuild, #[serde(rename = "project")] Project, #[serde(rename = "project_card")] ProjectCard, #[serde(rename = "project_column")] ProjectColumn, #[serde(rename = "public")] Public, #[serde(rename = "pull_request")] PullRequest, #[serde(rename = "pull_request_review")] PullRequestReview, #[serde(rename = "pull_request_review_comment")] PullRequestReviewComment, #[serde(rename = "push")] Push, #[serde(rename = "registry_package")] RegistryPackage, #[serde(rename = "release")] Release, #[serde(rename = "repository")] Repository, #[serde(rename = "repository_dispatch")] RepositoryDispatch, #[serde(rename = "secret_scanning_alert")] SecretScanningAlert, #[serde(rename = "star")] Star, #[serde(rename = "status")] Status, #[serde(rename = "team")] Team, #[serde(rename = "team_add")] TeamAdd, #[serde(rename = "watch")] Watch, #[serde(rename = "workflow_dispatch")] WorkflowDispatch, #[serde(rename = "workflow_run")] WorkflowRun, } impl From<&InstallationUnsuspendInstallationEventsItem> for InstallationUnsuspendInstallationEventsItem { fn from(value: &InstallationUnsuspendInstallationEventsItem) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationEventsItem { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::CheckRun => write!(f, "check_run"), Self::CheckSuite => write!(f, "check_suite"), Self::CodeScanningAlert => write!(f, "code_scanning_alert"), Self::CommitComment => write!(f, "commit_comment"), Self::ContentReference => write!(f, "content_reference"), Self::Create => write!(f, "create"), Self::Delete => write!(f, "delete"), Self::Deployment => write!(f, "deployment"), Self::DeploymentReview => write!(f, "deployment_review"), Self::DeploymentStatus => write!(f, "deployment_status"), Self::DeployKey => write!(f, "deploy_key"), Self::Discussion => write!(f, "discussion"), Self::DiscussionComment => write!(f, "discussion_comment"), Self::Fork => write!(f, "fork"), Self::Gollum => write!(f, "gollum"), Self::Issues => write!(f, "issues"), Self::IssueComment => write!(f, "issue_comment"), Self::Label => write!(f, "label"), Self::Member => write!(f, "member"), Self::Membership => write!(f, "membership"), Self::MergeQueueEntry => write!(f, "merge_queue_entry"), Self::Milestone => write!(f, "milestone"), Self::Organization => write!(f, "organization"), Self::OrgBlock => write!(f, "org_block"), Self::PageBuild => write!(f, "page_build"), Self::Project => write!(f, "project"), Self::ProjectCard => write!(f, "project_card"), Self::ProjectColumn => write!(f, "project_column"), Self::Public => write!(f, "public"), Self::PullRequest => write!(f, "pull_request"), Self::PullRequestReview => write!(f, "pull_request_review"), Self::PullRequestReviewComment => write!(f, "pull_request_review_comment"), Self::Push => write!(f, "push"), Self::RegistryPackage => write!(f, "registry_package"), Self::Release => write!(f, "release"), Self::Repository => write!(f, "repository"), Self::RepositoryDispatch => write!(f, "repository_dispatch"), Self::SecretScanningAlert => write!(f, "secret_scanning_alert"), Self::Star => write!(f, "star"), Self::Status => write!(f, "status"), Self::Team => write!(f, "team"), Self::TeamAdd => write!(f, "team_add"), Self::Watch => write!(f, "watch"), Self::WorkflowDispatch => write!(f, "workflow_dispatch"), Self::WorkflowRun => write!(f, "workflow_run"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationEventsItem { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "check_run" => Ok(Self::CheckRun), "check_suite" => Ok(Self::CheckSuite), "code_scanning_alert" => Ok(Self::CodeScanningAlert), "commit_comment" => Ok(Self::CommitComment), "content_reference" => Ok(Self::ContentReference), "create" => Ok(Self::Create), "delete" => Ok(Self::Delete), "deployment" => Ok(Self::Deployment), "deployment_review" => Ok(Self::DeploymentReview), "deployment_status" => Ok(Self::DeploymentStatus), "deploy_key" => Ok(Self::DeployKey), "discussion" => Ok(Self::Discussion), "discussion_comment" => Ok(Self::DiscussionComment), "fork" => Ok(Self::Fork), "gollum" => Ok(Self::Gollum), "issues" => Ok(Self::Issues), "issue_comment" => Ok(Self::IssueComment), "label" => Ok(Self::Label), "member" => Ok(Self::Member), "membership" => Ok(Self::Membership), "merge_queue_entry" => Ok(Self::MergeQueueEntry), "milestone" => Ok(Self::Milestone), "organization" => Ok(Self::Organization), "org_block" => Ok(Self::OrgBlock), "page_build" => Ok(Self::PageBuild), "project" => Ok(Self::Project), "project_card" => Ok(Self::ProjectCard), "project_column" => Ok(Self::ProjectColumn), "public" => Ok(Self::Public), "pull_request" => Ok(Self::PullRequest), "pull_request_review" => Ok(Self::PullRequestReview), "pull_request_review_comment" => Ok(Self::PullRequestReviewComment), "push" => Ok(Self::Push), "registry_package" => Ok(Self::RegistryPackage), "release" => Ok(Self::Release), "repository" => Ok(Self::Repository), "repository_dispatch" => Ok(Self::RepositoryDispatch), "secret_scanning_alert" => Ok(Self::SecretScanningAlert), "star" => Ok(Self::Star), "status" => Ok(Self::Status), "team" => Ok(Self::Team), "team_add" => Ok(Self::TeamAdd), "watch" => Ok(Self::Watch), "workflow_dispatch" => Ok(Self::WorkflowDispatch), "workflow_run" => Ok(Self::WorkflowRun), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationEventsItem { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"actions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"checks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"content_references\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"contents\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"deployments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"emails\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"environments\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"issues\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"members\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"metadata\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_administration\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_plan\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_self_hosted_runners\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"organization_user_blocking\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"packages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pages\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_requests\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_hooks\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"repository_projects\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secret_scanning_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"secrets\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_events\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"security_scanning_alert\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"single_file\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"statuses\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"team_discussions\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"vulnerability_alerts\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"workflows\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendInstallationPermissions { #[serde(default, skip_serializing_if = "Option::is_none")] pub actions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub checks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub content_references: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub contents: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub deployments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub emails: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub environments: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub issues: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub members: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_administration: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_plan: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_self_hosted_runners: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub organization_user_blocking: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub packages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pages: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub pull_requests: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_hooks: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub repository_projects: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secret_scanning_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub secrets: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_events: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub security_scanning_alert: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub single_file: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub statuses: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub team_discussions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub vulnerability_alerts: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub workflows: Option, } impl From<&InstallationUnsuspendInstallationPermissions> for InstallationUnsuspendInstallationPermissions { fn from(value: &InstallationUnsuspendInstallationPermissions) -> Self { value.clone() } } #[doc = "InstallationUnsuspendInstallationPermissionsActions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsActions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsActions> for InstallationUnsuspendInstallationPermissionsActions { fn from(value: &InstallationUnsuspendInstallationPermissionsActions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsActions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsActions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsActions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsAdministration> for InstallationUnsuspendInstallationPermissionsAdministration { fn from(value: &InstallationUnsuspendInstallationPermissionsAdministration) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsChecks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsChecks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsChecks> for InstallationUnsuspendInstallationPermissionsChecks { fn from(value: &InstallationUnsuspendInstallationPermissionsChecks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsChecks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsChecks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsChecks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsContentReferences"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsContentReferences { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsContentReferences> for InstallationUnsuspendInstallationPermissionsContentReferences { fn from(value: &InstallationUnsuspendInstallationPermissionsContentReferences) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsContentReferences { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContentReferences { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsContentReferences { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsContents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsContents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsContents> for InstallationUnsuspendInstallationPermissionsContents { fn from(value: &InstallationUnsuspendInstallationPermissionsContents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsContents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsContents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsContents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsDeployments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsDeployments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsDeployments> for InstallationUnsuspendInstallationPermissionsDeployments { fn from(value: &InstallationUnsuspendInstallationPermissionsDeployments) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsDeployments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDeployments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsDeployments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsDiscussions> for InstallationUnsuspendInstallationPermissionsDiscussions { fn from(value: &InstallationUnsuspendInstallationPermissionsDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsEmails"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsEmails { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsEmails> for InstallationUnsuspendInstallationPermissionsEmails { fn from(value: &InstallationUnsuspendInstallationPermissionsEmails) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsEmails { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEmails { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsEmails { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsEnvironments"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsEnvironments { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsEnvironments> for InstallationUnsuspendInstallationPermissionsEnvironments { fn from(value: &InstallationUnsuspendInstallationPermissionsEnvironments) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsEnvironments { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsEnvironments { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsEnvironments { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsIssues"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsIssues { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsIssues> for InstallationUnsuspendInstallationPermissionsIssues { fn from(value: &InstallationUnsuspendInstallationPermissionsIssues) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsIssues { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsIssues { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsIssues { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsMembers"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsMembers { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsMembers> for InstallationUnsuspendInstallationPermissionsMembers { fn from(value: &InstallationUnsuspendInstallationPermissionsMembers) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsMembers { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMembers { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsMembers { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsMetadata"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsMetadata { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsMetadata> for InstallationUnsuspendInstallationPermissionsMetadata { fn from(value: &InstallationUnsuspendInstallationPermissionsMetadata) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsMetadata { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsMetadata { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationAdministration"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationAdministration { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationAdministration> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { fn from( value: &InstallationUnsuspendInstallationPermissionsOrganizationAdministration, ) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationAdministration { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationEvents> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationEvents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationHooks> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationHooks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationPackages> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationPackages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationPlan"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationPlan { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationPlan> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationPlan) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationPlan { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationPlan { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationProjects> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationProjects) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationSecrets> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { fn from( value: &InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners, ) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationSelfHostedRunners { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { fn from(value: &InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsOrganizationUserBlocking { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsPackages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsPackages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsPackages> for InstallationUnsuspendInstallationPermissionsPackages { fn from(value: &InstallationUnsuspendInstallationPermissionsPackages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPackages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPackages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsPackages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsPages"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsPages { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsPages> for InstallationUnsuspendInstallationPermissionsPages { fn from(value: &InstallationUnsuspendInstallationPermissionsPages) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPages { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPages { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsPages { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsPullRequests"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsPullRequests { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsPullRequests> for InstallationUnsuspendInstallationPermissionsPullRequests { fn from(value: &InstallationUnsuspendInstallationPermissionsPullRequests) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsPullRequests { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsPullRequests { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsPullRequests { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsRepositoryHooks"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsRepositoryHooks { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsRepositoryHooks> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { fn from(value: &InstallationUnsuspendInstallationPermissionsRepositoryHooks) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsRepositoryHooks { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsRepositoryHooks { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsRepositoryProjects"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsRepositoryProjects { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsRepositoryProjects> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { fn from(value: &InstallationUnsuspendInstallationPermissionsRepositoryProjects) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsRepositoryProjects { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsRepositoryProjects { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsSecretScanningAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsSecretScanningAlerts> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { fn from(value: &InstallationUnsuspendInstallationPermissionsSecretScanningAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSecretScanningAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsSecrets"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsSecrets { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsSecrets> for InstallationUnsuspendInstallationPermissionsSecrets { fn from(value: &InstallationUnsuspendInstallationPermissionsSecrets) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecrets { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecrets { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSecrets { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsSecurityEvents"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsSecurityEvents { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsSecurityEvents> for InstallationUnsuspendInstallationPermissionsSecurityEvents { fn from(value: &InstallationUnsuspendInstallationPermissionsSecurityEvents) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecurityEvents { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSecurityEvents { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsSecurityScanningAlert"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsSecurityScanningAlert> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { fn from(value: &InstallationUnsuspendInstallationPermissionsSecurityScanningAlert) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSecurityScanningAlert { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsSingleFile"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsSingleFile { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsSingleFile> for InstallationUnsuspendInstallationPermissionsSingleFile { fn from(value: &InstallationUnsuspendInstallationPermissionsSingleFile) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsSingleFile { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsSingleFile { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsSingleFile { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsStatuses"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsStatuses { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsStatuses> for InstallationUnsuspendInstallationPermissionsStatuses { fn from(value: &InstallationUnsuspendInstallationPermissionsStatuses) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsStatuses { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsStatuses { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsStatuses { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsTeamDiscussions"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsTeamDiscussions { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsTeamDiscussions> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { fn from(value: &InstallationUnsuspendInstallationPermissionsTeamDiscussions) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsTeamDiscussions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsTeamDiscussions { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { fn from(value: &InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsVulnerabilityAlerts { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationPermissionsWorkflows"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"read\","] #[doc = " \"write\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationPermissionsWorkflows { #[serde(rename = "read")] Read, #[serde(rename = "write")] Write, } impl From<&InstallationUnsuspendInstallationPermissionsWorkflows> for InstallationUnsuspendInstallationPermissionsWorkflows { fn from(value: &InstallationUnsuspendInstallationPermissionsWorkflows) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationPermissionsWorkflows { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::Read => write!(f, "read"), Self::Write => write!(f, "write"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationPermissionsWorkflows { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "read" => Ok(Self::Read), "write" => Ok(Self::Write), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationPermissionsWorkflows { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "Describe whether all repositories have been selected or there's a selection involved"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"description\": \"Describe whether all repositories have been selected or there's a selection involved\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"all\","] #[doc = " \"selected\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationRepositorySelection { #[serde(rename = "all")] All, #[serde(rename = "selected")] Selected, } impl From<&InstallationUnsuspendInstallationRepositorySelection> for InstallationUnsuspendInstallationRepositorySelection { fn from(value: &InstallationUnsuspendInstallationRepositorySelection) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationRepositorySelection { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::All => write!(f, "all"), Self::Selected => write!(f, "selected"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationRepositorySelection { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "all" => Ok(Self::All), "selected" => Ok(Self::Selected), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationRepositorySelection { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationTargetType"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"User\","] #[doc = " \"Organization\""] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, )] pub enum InstallationUnsuspendInstallationTargetType { User, Organization, } impl From<&InstallationUnsuspendInstallationTargetType> for InstallationUnsuspendInstallationTargetType { fn from(value: &InstallationUnsuspendInstallationTargetType) -> Self { value.clone() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationTargetType { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match *self { Self::User => write!(f, "User"), Self::Organization => write!(f, "Organization"), } } } impl std::str::FromStr for InstallationUnsuspendInstallationTargetType { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { match value { "User" => Ok(Self::User), "Organization" => Ok(Self::Organization), _ => Err("invalid value".into()), } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationTargetType { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } #[doc = "InstallationUnsuspendInstallationUpdatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationUnsuspendInstallationUpdatedAt { Variant0(chrono::DateTime), Variant1(i64), } impl From<&InstallationUnsuspendInstallationUpdatedAt> for InstallationUnsuspendInstallationUpdatedAt { fn from(value: &InstallationUnsuspendInstallationUpdatedAt) -> Self { value.clone() } } impl std::str::FromStr for InstallationUnsuspendInstallationUpdatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUnsuspendInstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for InstallationUnsuspendInstallationUpdatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From> for InstallationUnsuspendInstallationUpdatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } impl From for InstallationUnsuspendInstallationUpdatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } } #[doc = "InstallationUnsuspendRepositoriesItem"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"full_name\","] #[doc = " \"id\","] #[doc = " \"name\","] #[doc = " \"node_id\","] #[doc = " \"private\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"full_name\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"description\": \"Unique identifier of the repository\","] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"name\": {"] #[doc = " \"description\": \"The name of the repository.\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"private\": {"] #[doc = " \"description\": \"Whether the repository is private or public.\","] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct InstallationUnsuspendRepositoriesItem { pub full_name: String, #[doc = "Unique identifier of the repository"] pub id: i64, #[doc = "The name of the repository."] pub name: String, pub node_id: String, #[doc = "Whether the repository is private or public."] pub private: bool, } impl From<&InstallationUnsuspendRepositoriesItem> for InstallationUnsuspendRepositoriesItem { fn from(value: &InstallationUnsuspendRepositoriesItem) -> Self { value.clone() } } #[doc = "InstallationUpdatedAt"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " ]"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum InstallationUpdatedAt { Variant0(chrono::DateTime), Variant1(i64), } impl From<&InstallationUpdatedAt> for InstallationUpdatedAt { fn from(value: &InstallationUpdatedAt) -> Self { value.clone() } } impl std::str::FromStr for InstallationUpdatedAt { type Err = self::error::ConversionError; fn from_str(value: &str) -> Result { if let Ok(v) = value.parse() { Ok(Self::Variant0(v)) } else if let Ok(v) = value.parse() { Ok(Self::Variant1(v)) } else { Err("string conversion failed for all variants".into()) } } } impl std::convert::TryFrom<&str> for InstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for InstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for InstallationUpdatedAt { type Error = self::error::ConversionError; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for InstallationUpdatedAt { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::Variant0(x) => x.fmt(f), Self::Variant1(x) => x.fmt(f), } } } impl From> for InstallationUpdatedAt { fn from(value: chrono::DateTime) -> Self { Self::Variant0(value) } } impl From for InstallationUpdatedAt { fn from(value: i64) -> Self { Self::Variant1(value) } } #[doc = "The [issue](https://docs.github.com/en/rest/reference/issues) itself."] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"Issue\","] #[doc = " \"description\": \"The [issue](https://docs.github.com/en/rest/reference/issues) itself.\","] #[doc = " \"type\": \"object\","] #[doc = " \"required\": ["] #[doc = " \"active_lock_reason\","] #[doc = " \"assignees\","] #[doc = " \"author_association\","] #[doc = " \"body\","] #[doc = " \"closed_at\","] #[doc = " \"comments\","] #[doc = " \"comments_url\","] #[doc = " \"created_at\","] #[doc = " \"events_url\","] #[doc = " \"html_url\","] #[doc = " \"id\","] #[doc = " \"labels_url\","] #[doc = " \"milestone\","] #[doc = " \"node_id\","] #[doc = " \"number\","] #[doc = " \"repository_url\","] #[doc = " \"title\","] #[doc = " \"updated_at\","] #[doc = " \"url\","] #[doc = " \"user\""] #[doc = " ],"] #[doc = " \"properties\": {"] #[doc = " \"active_lock_reason\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"enum\": ["] #[doc = " \"resolved\","] #[doc = " \"off-topic\","] #[doc = " \"too heated\","] #[doc = " \"spam\","] #[doc = " null"] #[doc = " ]"] #[doc = " },"] #[doc = " \"assignee\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"assignees\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"author_association\": {"] #[doc = " \"$ref\": \"#/definitions/author_association\""] #[doc = " },"] #[doc = " \"body\": {"] #[doc = " \"description\": \"Contents of the issue\","] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"closed_at\": {"] #[doc = " \"type\": ["] #[doc = " \"string\","] #[doc = " \"null\""] #[doc = " ],"] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"comments\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"comments_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"created_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"events_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"id\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"labels\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#/definitions/label\""] #[doc = " }"] #[doc = " },"] #[doc = " \"labels_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri-template\""] #[doc = " },"] #[doc = " \"locked\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"milestone\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/milestone\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"node_id\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"number\": {"] #[doc = " \"type\": \"integer\""] #[doc = " },"] #[doc = " \"performed_via_github_app\": {"] #[doc = " \"oneOf\": ["] #[doc = " {"] #[doc = " \"$ref\": \"#/definitions/app\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"null\""] #[doc = " }"] #[doc = " ]"] #[doc = " },"] #[doc = " \"pull_request\": {"] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"diff_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"html_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"patch_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false"] #[doc = " },"] #[doc = " \"repository_url\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"state\": {"] #[doc = " \"description\": \"State of the issue; either 'open' or 'closed'\","] #[doc = " \"type\": \"string\","] #[doc = " \"enum\": ["] #[doc = " \"open\","] #[doc = " \"closed\""] #[doc = " ]"] #[doc = " },"] #[doc = " \"title\": {"] #[doc = " \"description\": \"Title of the issue\","] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"updated_at\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"date-time\""] #[doc = " },"] #[doc = " \"url\": {"] #[doc = " \"description\": \"URL for the issue\","] #[doc = " \"type\": \"string\","] #[doc = " \"format\": \"uri\""] #[doc = " },"] #[doc = " \"user\": {"] #[doc = " \"$ref\": \"#/definitions/user\""] #[doc = " }"] #[doc = " },"] #[doc = " \"additionalProperties\": false,"] #[doc = " \"$schema\": \"http://json-schema.org/draft-07/schema\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub struct Issue { pub active_lock_reason: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub assignee: Option, pub assignees: Vec, pub author_association: AuthorAssociation, #[doc = "Contents of the issue"] pub body: Option, pub closed_at: Option>, pub comments: i64, pub comments_url: String, pub created_at: chrono::DateTime, pub events_url: String, pub html_url: String, pub id: i64, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec