Struct RepositoryLite

Source
pub struct RepositoryLite {
Show 46 fields pub archive_url: String, pub assignees_url: String, pub blobs_url: String, pub branches_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 deployments_url: String, pub description: Option<String>, pub downloads_url: String, pub events_url: String, pub fork: bool, pub forks_url: String, pub full_name: String, pub git_commits_url: String, pub git_refs_url: String, pub git_tags_url: String, pub hooks_url: String, pub html_url: String, 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 languages_url: String, pub merges_url: String, pub milestones_url: String, pub name: String, pub node_id: String, pub notifications_url: String, pub owner: User, pub private: bool, pub pulls_url: String, pub releases_url: String, pub stargazers_url: String, pub statuses_url: String, pub subscribers_url: String, pub subscription_url: String, pub tags_url: String, pub teams_url: String, pub trees_url: String, pub url: String,
}
Expand description

RepositoryLite

JSON schema
{
 "title": "Repository Lite",
 "type": "object",
 "required": [
   "archive_url",
   "assignees_url",
   "blobs_url",
   "branches_url",
   "collaborators_url",
   "comments_url",
   "commits_url",
   "compare_url",
   "contents_url",
   "contributors_url",
   "deployments_url",
   "description",
   "downloads_url",
   "events_url",
   "fork",
   "forks_url",
   "full_name",
   "git_commits_url",
   "git_refs_url",
   "git_tags_url",
   "hooks_url",
   "html_url",
   "id",
   "issue_comment_url",
   "issue_events_url",
   "issues_url",
   "keys_url",
   "labels_url",
   "languages_url",
   "merges_url",
   "milestones_url",
   "name",
   "node_id",
   "notifications_url",
   "owner",
   "private",
   "pulls_url",
   "releases_url",
   "stargazers_url",
   "statuses_url",
   "subscribers_url",
   "subscription_url",
   "tags_url",
   "teams_url",
   "trees_url",
   "url"
 ],
 "properties": {
   "archive_url": {
     "description": "A template for the API URL to download the repository as an archive.",
     "type": "string",
     "format": "uri-template"
   },
   "assignees_url": {
     "description": "A template for the API URL to list the available assignees for issues in the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "blobs_url": {
     "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "branches_url": {
     "description": "A template for the API URL to get information about branches in the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "collaborators_url": {
     "description": "A template for the API URL to get information about collaborators of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "comments_url": {
     "description": "A template for the API URL to get information about comments on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "commits_url": {
     "description": "A template for the API URL to get information about commits on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "compare_url": {
     "description": "A template for the API URL to compare two commits or refs.",
     "type": "string",
     "format": "uri-template"
   },
   "contents_url": {
     "description": "A template for the API URL to get the contents of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "contributors_url": {
     "description": "A template for the API URL to list the contributors to the repository.",
     "type": "string",
     "format": "uri"
   },
   "deployments_url": {
     "description": "The API URL to list the deployments of the repository.",
     "type": "string",
     "format": "uri"
   },
   "description": {
     "description": "The repository description.",
     "type": [
       "string",
       "null"
     ]
   },
   "downloads_url": {
     "description": "The API URL to list the downloads on the repository.",
     "type": "string",
     "format": "uri"
   },
   "events_url": {
     "description": "The API URL to list the events of the repository.",
     "type": "string",
     "format": "uri"
   },
   "fork": {
     "description": "Whether the repository is a fork.",
     "type": "boolean"
   },
   "forks_url": {
     "description": "The API URL to list the forks of the repository.",
     "type": "string",
     "format": "uri"
   },
   "full_name": {
     "description": "The full, globally unique, name of the repository.",
     "type": "string"
   },
   "git_commits_url": {
     "description": "A template for the API URL to get information about Git commits of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "git_refs_url": {
     "description": "A template for the API URL to get information about Git refs of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "git_tags_url": {
     "description": "A template for the API URL to get information about Git tags of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "hooks_url": {
     "description": "The API URL to list the hooks on the repository.",
     "type": "string",
     "format": "uri"
   },
   "html_url": {
     "description": "The URL to view the repository on GitHub.com.",
     "type": "string",
     "format": "uri"
   },
   "id": {
     "description": "Unique identifier of the repository",
     "type": "integer"
   },
   "issue_comment_url": {
     "description": "A template for the API URL to get information about issue comments on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "issue_events_url": {
     "description": "A template for the API URL to get information about issue events on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "issues_url": {
     "description": "A template for the API URL to get information about issues on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "keys_url": {
     "description": "A template for the API URL to get information about deploy keys on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "labels_url": {
     "description": "A template for the API URL to get information about labels of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "languages_url": {
     "description": "The API URL to get information about the languages of the repository.",
     "type": "string",
     "format": "uri"
   },
   "merges_url": {
     "description": "The API URL to merge branches in the repository.",
     "type": "string",
     "format": "uri"
   },
   "milestones_url": {
     "description": "A template for the API URL to get information about milestones of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "name": {
     "description": "The name of the repository.",
     "type": "string"
   },
   "node_id": {
     "description": "The GraphQL identifier of the repository.",
     "type": "string"
   },
   "notifications_url": {
     "description": "A template for the API URL to get information about notifications on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "owner": {
     "$ref": "#/definitions/user"
   },
   "private": {
     "description": "Whether the repository is private or public.",
     "type": "boolean"
   },
   "pulls_url": {
     "description": "A template for the API URL to get information about pull requests on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "releases_url": {
     "description": "A template for the API URL to get information about releases on the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "stargazers_url": {
     "description": "The API URL to list the stargazers on the repository.",
     "type": "string",
     "format": "uri"
   },
   "statuses_url": {
     "description": "A template for the API URL to get information about statuses of a commit.",
     "type": "string",
     "format": "uri-template"
   },
   "subscribers_url": {
     "description": "The API URL to list the subscribers on the repository.",
     "type": "string",
     "format": "uri"
   },
   "subscription_url": {
     "description": "The API URL to subscribe to notifications for this repository.",
     "type": "string",
     "format": "uri"
   },
   "tags_url": {
     "description": "The API URL to get information about tags on the repository.",
     "type": "string",
     "format": "uri"
   },
   "teams_url": {
     "description": "The API URL to list the teams on the repository.",
     "type": "string",
     "format": "uri"
   },
   "trees_url": {
     "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.",
     "type": "string",
     "format": "uri-template"
   },
   "url": {
     "description": "The URL to get more information about the repository from the GitHub API.",
     "type": "string",
     "format": "uri"
   }
 },
 "additionalProperties": false,
 "$schema": "http://json-schema.org/draft-07/schema"
}

Fields§

§archive_url: String

A template for the API URL to download the repository as an archive.

§assignees_url: String

A template for the API URL to list the available assignees for issues in the repository.

§blobs_url: String

A template for the API URL to create or retrieve a raw Git blob in the repository.

§branches_url: String

A template for the API URL to get information about branches in the repository.

§collaborators_url: String

A template for the API URL to get information about collaborators of the repository.

§comments_url: String

A template for the API URL to get information about comments on the repository.

§commits_url: String

A template for the API URL to get information about commits on the repository.

§compare_url: String

A template for the API URL to compare two commits or refs.

§contents_url: String

A template for the API URL to get the contents of the repository.

§contributors_url: String

A template for the API URL to list the contributors to the repository.

§deployments_url: String

The API URL to list the deployments of the repository.

§description: Option<String>

The repository description.

§downloads_url: String

The API URL to list the downloads on the repository.

§events_url: String

The API URL to list the events of the repository.

§fork: bool

Whether the repository is a fork.

§forks_url: String

The API URL to list the forks of the repository.

§full_name: String

The full, globally unique, name of the repository.

§git_commits_url: String

A template for the API URL to get information about Git commits of the repository.

§git_refs_url: String

A template for the API URL to get information about Git refs of the repository.

§git_tags_url: String

A template for the API URL to get information about Git tags of the repository.

§hooks_url: String

The API URL to list the hooks on the repository.

§html_url: String

The URL to view the repository on GitHub.com.

§id: i64

Unique identifier of the repository

§issue_comment_url: String

A template for the API URL to get information about issue comments on the repository.

§issue_events_url: String

A template for the API URL to get information about issue events on the repository.

§issues_url: String

A template for the API URL to get information about issues on the repository.

§keys_url: String

A template for the API URL to get information about deploy keys on the repository.

§labels_url: String

A template for the API URL to get information about labels of the repository.

§languages_url: String

The API URL to get information about the languages of the repository.

§merges_url: String

The API URL to merge branches in the repository.

§milestones_url: String

A template for the API URL to get information about milestones of the repository.

§name: String

The name of the repository.

§node_id: String

The GraphQL identifier of the repository.

§notifications_url: String

A template for the API URL to get information about notifications on the repository.

§owner: User§private: bool

Whether the repository is private or public.

§pulls_url: String

A template for the API URL to get information about pull requests on the repository.

§releases_url: String

A template for the API URL to get information about releases on the repository.

§stargazers_url: String

The API URL to list the stargazers on the repository.

§statuses_url: String

A template for the API URL to get information about statuses of a commit.

§subscribers_url: String

The API URL to list the subscribers on the repository.

§subscription_url: String

The API URL to subscribe to notifications for this repository.

§tags_url: String

The API URL to get information about tags on the repository.

§teams_url: String

The API URL to list the teams on the repository.

§trees_url: String

A template for the API URL to create or retrieve a raw Git tree of the repository.

§url: String

The URL to get more information about the repository from the GitHub API.

Implementations§

Trait Implementations§

Source§

impl Clone for RepositoryLite

Source§

fn clone(&self) -> RepositoryLite

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 RepositoryLite

Source§

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

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

impl<'de> Deserialize<'de> for RepositoryLite

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

Source§

fn from(value: &RepositoryLite) -> Self

Converts to this type from the input type.
Source§

impl From<RepositoryLite> for RepositoryLite

Source§

fn from(value: RepositoryLite) -> Self

Converts to this type from the input type.
Source§

impl Serialize for RepositoryLite

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<RepositoryLite> for RepositoryLite

Source§

type Error = String

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

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

Performs the conversion.

Auto Trait Implementations§

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>,