Struct App

Source
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§

Source§

impl App

Source

pub fn builder() -> App

Trait Implementations§

Source§

impl Clone for App

Source§

fn clone(&self) -> App

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for App

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for App

Source§

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<&App> for App

Source§

fn from(value: &App) -> Self

Converts to this type from the input type.
Source§

impl From<App> for App

Source§

fn from(value: App) -> Self

Converts to this type from the input type.
Source§

impl Serialize for App

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<App> for App

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: App) -> Result<Self, String>

Performs the conversion.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,