pub struct InstallationSuspendInstallation {Show 19 fields
pub access_tokens_url: String,
pub account: User,
pub app_id: i64,
pub app_slug: Option<String>,
pub created_at: InstallationSuspendInstallationCreatedAt,
pub events: Vec<InstallationSuspendInstallationEventsItem>,
pub has_multiple_single_files: Option<bool>,
pub html_url: String,
pub id: i64,
pub permissions: InstallationSuspendInstallationPermissions,
pub repositories_url: String,
pub repository_selection: InstallationSuspendInstallationRepositorySelection,
pub single_file_name: Option<String>,
pub single_file_paths: Vec<String>,
pub suspended_at: DateTime<Utc>,
pub suspended_by: InstallationSuspendInstallationSuspendedBy,
pub target_id: i64,
pub target_type: InstallationSuspendInstallationTargetType,
pub updated_at: InstallationSuspendInstallationUpdatedAt,
}
Expand description
InstallationSuspendInstallation
JSON schema
{
"type": "object",
"required": [
"access_tokens_url",
"account",
"app_id",
"created_at",
"events",
"html_url",
"id",
"permissions",
"repositories_url",
"repository_selection",
"single_file_name",
"suspended_at",
"suspended_by",
"target_id",
"target_type",
"updated_at"
],
"properties": {
"access_tokens_url": {
"type": "string",
"format": "uri"
},
"account": {
"$ref": "#/definitions/user"
},
"app_id": {
"type": "integer"
},
"app_slug": {
"type": "string"
},
"created_at": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "integer"
}
]
},
"events": {
"type": "array",
"items": {
"type": "string",
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"merge_group",
"merge_queue_entry",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"projects_v2_item",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"pull_request_review_thread",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"secret_scanning_alert_location",
"security_and_analysis",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_job",
"workflow_run"
]
}
},
"has_multiple_single_files": {
"type": "boolean"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "The ID of the installation.",
"type": "integer"
},
"permissions": {
"type": "object",
"properties": {
"actions": {
"description": "The level of permission granted to the access token for GitHub Actions workflows, workflow runs, and artifacts.",
"type": "string",
"enum": [
"read",
"write"
]
},
"administration": {
"description": "The level of permission granted to the access token for repository creation, deletion, settings, teams, and collaborators creation.",
"type": "string",
"enum": [
"read",
"write"
]
},
"blocking": {
"type": "string",
"enum": [
"read",
"write"
]
},
"checks": {
"description": "The level of permission granted to the access token for checks on code.",
"type": "string",
"enum": [
"read",
"write"
]
},
"content_references": {
"type": "string",
"enum": [
"read",
"write"
]
},
"contents": {
"description": "The level of permission granted to the access token for repository contents, commits, branches, downloads, releases, and merges.",
"type": "string",
"enum": [
"read",
"write"
]
},
"deployments": {
"description": "The level of permission granted to the access token for deployments and deployment statuses.",
"type": "string",
"enum": [
"read",
"write"
]
},
"discussions": {
"type": "string",
"enum": [
"read",
"write"
]
},
"emails": {
"type": "string",
"enum": [
"read",
"write"
]
},
"environments": {
"description": "The level of permission granted to the access token for managing repository environments.",
"type": "string",
"enum": [
"read",
"write"
]
},
"issues": {
"description": "The level of permission granted to the access token for issues and related comments, assignees, labels, and milestones.",
"type": "string",
"enum": [
"read",
"write"
]
},
"members": {
"description": "The level of permission granted to the access token for organization teams and members.",
"type": "string",
"enum": [
"read",
"write"
]
},
"merge_queues": {
"type": "string",
"enum": [
"read",
"write"
]
},
"metadata": {
"description": "The level of permission granted to the access token to search repositories, list collaborators, and access repository metadata.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_administration": {
"description": "The level of permission granted to the access token to manage access to an organization.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_events": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_hooks": {
"description": "The level of permission granted to the access token to manage the post-receive hooks for an organization.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_packages": {
"description": "The level of permission granted to the access token for organization packages published to GitHub Packages.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_plan": {
"description": "The level of permission granted to the access token for viewing an organization's plan.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_projects": {
"description": "The level of permission granted to the access token to manage organization projects and projects beta (where available).",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_secrets": {
"description": "The level of permission granted to the access token to manage organization secrets.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_self_hosted_runners": {
"description": "The level of permission granted to the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_user_blocking": {
"description": "The level of permission granted to the access token to view and manage users blocked by the organization.",
"type": "string",
"enum": [
"read",
"write"
]
},
"packages": {
"description": "The level of permission granted to the access token for packages published to GitHub Packages.",
"type": "string",
"enum": [
"read",
"write"
]
},
"pages": {
"description": "The level of permission granted to the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
"type": "string",
"enum": [
"read",
"write"
]
},
"pull_requests": {
"description": "The level of permission granted to the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
"type": "string",
"enum": [
"read",
"write"
]
},
"repository_hooks": {
"description": "The level of permission granted to the access token to manage the post-receive hooks for a repository.",
"type": "string",
"enum": [
"read",
"write"
]
},
"repository_projects": {
"description": "The level of permission granted to the access token to manage repository projects, columns, and cards.",
"type": "string",
"enum": [
"read",
"write"
]
},
"secret_scanning_alerts": {
"description": "The level of permission granted to the access token to view and manage secret scanning alerts.",
"type": "string",
"enum": [
"read",
"write"
]
},
"secrets": {
"description": "The level of permission granted to the access token to manage repository secrets.",
"type": "string",
"enum": [
"read",
"write"
]
},
"security_events": {
"description": "The level of permission granted to the access token to view and manage security events like code scanning alerts.",
"type": "string",
"enum": [
"read",
"write"
]
},
"security_scanning_alert": {
"type": "string",
"enum": [
"read",
"write"
]
},
"single_file": {
"description": "The level of permission granted to the access token to manage just a single file.",
"type": "string",
"enum": [
"read",
"write"
]
},
"statuses": {
"description": "The level of permission granted to the access token for commit statuses.",
"type": "string",
"enum": [
"read",
"write"
]
},
"team_discussions": {
"description": "The level of permission granted to the access token to manage team discussions and related comments.",
"type": "string",
"enum": [
"read",
"write"
]
},
"vulnerability_alerts": {
"description": "The level of permission granted to the access token to manage Dependabot alerts.",
"type": "string",
"enum": [
"read",
"write"
]
},
"workflows": {
"description": "The level of permission granted to the access token to update GitHub Actions workflow files.",
"type": "string",
"enum": [
"read",
"write"
]
}
},
"additionalProperties": false
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"repository_selection": {
"description": "Describe whether all repositories have been selected or there's a selection involved",
"type": "string",
"enum": [
"all",
"selected"
]
},
"single_file_name": {
"type": [
"string",
"null"
]
},
"single_file_paths": {
"type": "array",
"items": {
"type": "string"
}
},
"suspended_at": {
"type": "string",
"format": "date-time"
},
"suspended_by": {
"allOf": [
{
"type": "object",
"required": [
"avatar_url",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"login",
"node_id",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url"
],
"properties": {
"avatar_url": {
"type": "string",
"format": "uri"
},
"email": {
"type": [
"string",
"null"
]
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"gravatar_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"type": "integer"
},
"login": {
"type": "string"
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"site_admin": {
"type": "boolean"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string",
"enum": [
"Bot",
"User",
"Organization"
]
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
},
{
"$ref": "#/definitions/user"
}
]
},
"target_id": {
"description": "The ID of the user or organization this token is being scoped to.",
"type": "integer"
},
"target_type": {
"type": "string",
"enum": [
"User",
"Organization"
]
},
"updated_at": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "integer"
}
]
}
},
"additionalProperties": false
}
Fields§
§access_tokens_url: String
§account: User
§app_id: i64
§app_slug: Option<String>
§created_at: InstallationSuspendInstallationCreatedAt
§events: Vec<InstallationSuspendInstallationEventsItem>
§has_multiple_single_files: Option<bool>
§html_url: String
§id: i64
The ID of the installation.
permissions: InstallationSuspendInstallationPermissions
§repositories_url: String
§repository_selection: InstallationSuspendInstallationRepositorySelection
Describe whether all repositories have been selected or there’s a selection involved
single_file_name: Option<String>
§single_file_paths: Vec<String>
§suspended_at: DateTime<Utc>
§suspended_by: InstallationSuspendInstallationSuspendedBy
§target_id: i64
The ID of the user or organization this token is being scoped to.
target_type: InstallationSuspendInstallationTargetType
§updated_at: InstallationSuspendInstallationUpdatedAt
Implementations§
Trait Implementations§
Source§impl Clone for InstallationSuspendInstallation
impl Clone for InstallationSuspendInstallation
Source§fn clone(&self) -> InstallationSuspendInstallation
fn clone(&self) -> InstallationSuspendInstallation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for InstallationSuspendInstallation
impl<'de> Deserialize<'de> for InstallationSuspendInstallation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&InstallationSuspendInstallation> for InstallationSuspendInstallation
impl From<&InstallationSuspendInstallation> for InstallationSuspendInstallation
Source§fn from(value: &InstallationSuspendInstallation) -> Self
fn from(value: &InstallationSuspendInstallation) -> Self
Converts to this type from the input type.
Source§impl From<InstallationSuspendInstallation> for InstallationSuspendInstallation
impl From<InstallationSuspendInstallation> for InstallationSuspendInstallation
Source§fn from(value: InstallationSuspendInstallation) -> Self
fn from(value: InstallationSuspendInstallation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstallationSuspendInstallation
impl RefUnwindSafe for InstallationSuspendInstallation
impl Send for InstallationSuspendInstallation
impl Sync for InstallationSuspendInstallation
impl Unpin for InstallationSuspendInstallation
impl UnwindSafe for InstallationSuspendInstallation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more