pub struct App {
pub created_at: DateTime<Utc>,
pub description: Option<String>,
pub events: Vec<AppEventsItem>,
pub external_url: String,
pub html_url: String,
pub id: i64,
pub name: String,
pub node_id: String,
pub owner: User,
pub permissions: Option<AppPermissions>,
pub slug: Option<String>,
pub updated_at: DateTime<Utc>,
}
Expand 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.
JSON schema
{
"title": "App",
"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.",
"type": "object",
"required": [
"created_at",
"description",
"external_url",
"html_url",
"id",
"name",
"node_id",
"owner",
"updated_at"
],
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": [
"string",
"null"
]
},
"events": {
"description": "The list of events for the GitHub app",
"type": "array",
"items": {
"type": "string",
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"create",
"delete",
"dependabot_alert",
"deployment",
"deployment_protection_rule",
"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",
"repository_ruleset",
"secret_scanning_alert",
"secret_scanning_alert_location",
"security_and_analysis",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_job",
"workflow_run"
]
}
},
"external_url": {
"type": "string",
"format": "uri"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "Unique identifier of the GitHub app",
"type": "integer"
},
"name": {
"description": "The name of the GitHub app",
"type": "string"
},
"node_id": {
"type": "string"
},
"owner": {
"$ref": "#/definitions/user"
},
"permissions": {
"description": "The set of permissions for the GitHub app",
"type": "object",
"properties": {
"actions": {
"type": "string",
"enum": [
"read",
"write"
]
},
"administration": {
"type": "string",
"enum": [
"read",
"write"
]
},
"blocking": {
"type": "string",
"enum": [
"read",
"write"
]
},
"checks": {
"type": "string",
"enum": [
"read",
"write"
]
},
"content_references": {
"type": "string",
"enum": [
"read",
"write"
]
},
"contents": {
"type": "string",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"enum": [
"read",
"write"
]
},
"discussions": {
"type": "string",
"enum": [
"read",
"write"
]
},
"emails": {
"type": "string",
"enum": [
"read",
"write"
]
},
"environments": {
"type": "string",
"enum": [
"read",
"write"
]
},
"followers": {
"type": "string",
"enum": [
"read",
"write"
]
},
"gpg_keys": {
"type": "string",
"enum": [
"read",
"write"
]
},
"interaction_limits": {
"type": "string",
"enum": [
"read",
"write"
]
},
"issues": {
"type": "string",
"enum": [
"read",
"write"
]
},
"keys": {
"type": "string",
"enum": [
"read",
"write"
]
},
"members": {
"type": "string",
"enum": [
"read",
"write"
]
},
"merge_queues": {
"type": "string",
"enum": [
"read",
"write"
]
},
"metadata": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_administration": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_hooks": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_packages": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_plan": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_projects": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_secrets": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_self_hosted_runners": {
"type": "string",
"enum": [
"read",
"write"
]
},
"organization_user_blocking": {
"type": "string",
"enum": [
"read",
"write"
]
},
"packages": {
"type": "string",
"enum": [
"read",
"write"
]
},
"pages": {
"type": "string",
"enum": [
"read",
"write"
]
},
"plan": {
"type": "string",
"enum": [
"read",
"write"
]
},
"pull_requests": {
"type": "string",
"enum": [
"read",
"write"
]
},
"repository_hooks": {
"type": "string",
"enum": [
"read",
"write"
]
},
"repository_projects": {
"type": "string",
"enum": [
"read",
"write"
]
},
"secret_scanning_alerts": {
"type": "string",
"enum": [
"read",
"write"
]
},
"secrets": {
"type": "string",
"enum": [
"read",
"write"
]
},
"security_events": {
"type": "string",
"enum": [
"read",
"write"
]
},
"security_scanning_alert": {
"type": "string",
"enum": [
"read",
"write"
]
},
"single_file": {
"type": "string",
"enum": [
"read",
"write"
]
},
"starring": {
"type": "string",
"enum": [
"read",
"write"
]
},
"statuses": {
"type": "string",
"enum": [
"read",
"write"
]
},
"team_discussions": {
"type": "string",
"enum": [
"read",
"write"
]
},
"vulnerability_alerts": {
"type": "string",
"enum": [
"read",
"write"
]
},
"watching": {
"type": "string",
"enum": [
"read",
"write"
]
},
"workflows": {
"type": "string",
"enum": [
"read",
"write"
]
}
},
"additionalProperties": false
},
"slug": {
"description": "The slug name of the GitHub app",
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§created_at: DateTime<Utc>
§description: Option<String>
§events: Vec<AppEventsItem>
The list of events for the GitHub app
external_url: String
§html_url: String
§id: i64
Unique identifier of the GitHub app
name: String
The name of the GitHub app
node_id: String
§owner: User
§permissions: Option<AppPermissions>
§slug: Option<String>
The slug name of the GitHub app
updated_at: DateTime<Utc>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for App
impl<'de> Deserialize<'de> for App
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
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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