Struct octocrab::models::Repository

source ·
#[non_exhaustive]
pub struct Repository {
Show 86 fields pub id: RepositoryId, pub node_id: Option<String>, pub name: String, pub full_name: Option<String>, pub owner: Option<Author>, pub private: Option<bool>, pub html_url: Option<Url>, pub description: Option<String>, pub fork: Option<bool>, pub url: Url, pub archive_url: Option<Url>, pub assignees_url: Option<Url>, pub blobs_url: Option<Url>, pub branches_url: Option<Url>, pub collaborators_url: Option<Url>, pub comments_url: Option<Url>, pub commits_url: Option<Url>, pub compare_url: Option<Url>, pub contents_url: Option<Url>, pub contributors_url: Option<Url>, pub deployments_url: Option<Url>, pub downloads_url: Option<Url>, pub events_url: Option<Url>, pub forks_url: Option<Url>, pub git_commits_url: Option<Url>, pub git_refs_url: Option<Url>, pub git_tags_url: Option<Url>, pub git_url: Option<Url>, pub issue_comment_url: Option<Url>, pub issue_events_url: Option<Url>, pub issues_url: Option<Url>, pub keys_url: Option<Url>, pub labels_url: Option<Url>, pub languages_url: Option<Url>, pub merges_url: Option<Url>, pub milestones_url: Option<Url>, pub notifications_url: Option<Url>, pub pulls_url: Option<Url>, pub releases_url: Option<Url>, pub ssh_url: Option<String>, pub stargazers_url: Option<Url>, pub statuses_url: Option<Url>, pub subscribers_url: Option<Url>, pub subscription_url: Option<Url>, pub tags_url: Option<Url>, pub teams_url: Option<Url>, pub trees_url: Option<Url>, pub clone_url: Option<Url>, pub mirror_url: Option<Url>, pub hooks_url: Option<Url>, pub svn_url: Option<Url>, pub homepage: Option<String>, pub language: Option<Value>, pub forks_count: Option<u32>, pub stargazers_count: Option<u32>, pub watchers_count: Option<u32>, pub size: Option<u32>, pub default_branch: Option<String>, pub open_issues_count: Option<u32>, pub is_template: Option<bool>, pub topics: Option<Vec<String>>, pub has_issues: Option<bool>, pub has_projects: Option<bool>, pub has_wiki: Option<bool>, pub has_pages: Option<bool>, pub has_downloads: Option<bool>, pub archived: Option<bool>, pub disabled: Option<bool>, pub visibility: Option<String>, pub pushed_at: Option<DateTime<Utc>>, pub created_at: Option<DateTime<Utc>>, pub updated_at: Option<DateTime<Utc>>, pub permissions: Option<Permissions>, pub allow_rebase_merge: Option<bool>, pub template_repository: Option<Box<Repository>>, pub allow_squash_merge: Option<bool>, pub allow_merge_commit: Option<bool>, pub allow_update_branch: Option<bool>, pub allow_forking: Option<bool>, pub subscribers_count: Option<i64>, pub network_count: Option<i64>, pub license: Option<License>, pub allow_auto_merge: Option<bool>, pub delete_branch_on_merge: Option<bool>, pub parent: Option<Box<Repository>>, pub source: Option<Box<Repository>>,
}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§id: RepositoryId§node_id: Option<String>§name: String§full_name: Option<String>§owner: Option<Author>§private: Option<bool>§html_url: Option<Url>§description: Option<String>§fork: Option<bool>§url: Url§archive_url: Option<Url>§assignees_url: Option<Url>§blobs_url: Option<Url>§branches_url: Option<Url>§collaborators_url: Option<Url>§comments_url: Option<Url>§commits_url: Option<Url>§compare_url: Option<Url>§contents_url: Option<Url>§contributors_url: Option<Url>§deployments_url: Option<Url>§downloads_url: Option<Url>§events_url: Option<Url>§forks_url: Option<Url>§git_commits_url: Option<Url>§git_refs_url: Option<Url>§git_tags_url: Option<Url>§git_url: Option<Url>§issue_comment_url: Option<Url>§issue_events_url: Option<Url>§issues_url: Option<Url>§keys_url: Option<Url>§labels_url: Option<Url>§languages_url: Option<Url>§merges_url: Option<Url>§milestones_url: Option<Url>§notifications_url: Option<Url>§pulls_url: Option<Url>§releases_url: Option<Url>§ssh_url: Option<String>§stargazers_url: Option<Url>§statuses_url: Option<Url>§subscribers_url: Option<Url>§subscription_url: Option<Url>§tags_url: Option<Url>§teams_url: Option<Url>§trees_url: Option<Url>§clone_url: Option<Url>§mirror_url: Option<Url>§hooks_url: Option<Url>§svn_url: Option<Url>§homepage: Option<String>§language: Option<Value>§forks_count: Option<u32>§stargazers_count: Option<u32>§watchers_count: Option<u32>§size: Option<u32>§default_branch: Option<String>§open_issues_count: Option<u32>§is_template: Option<bool>§topics: Option<Vec<String>>§has_issues: Option<bool>§has_projects: Option<bool>§has_wiki: Option<bool>§has_pages: Option<bool>§has_downloads: Option<bool>§archived: Option<bool>§disabled: Option<bool>§visibility: Option<String>§pushed_at: Option<DateTime<Utc>>§created_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>§permissions: Option<Permissions>§allow_rebase_merge: Option<bool>§template_repository: Option<Box<Repository>>§allow_squash_merge: Option<bool>§allow_merge_commit: Option<bool>§allow_update_branch: Option<bool>§allow_forking: Option<bool>§subscribers_count: Option<i64>§network_count: Option<i64>§license: Option<License>§allow_auto_merge: Option<bool>§delete_branch_on_merge: Option<bool>§parent: Option<Box<Repository>>§source: Option<Box<Repository>>

Trait Implementations§

source§

impl Clone for Repository

source§

fn clone(&self) -> Repository

Returns a copy 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 Repository

source§

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

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

impl<'de> Deserialize<'de> for Repository

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 PartialEq for Repository

source§

fn eq(&self, other: &Repository) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Repository

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 Eq for Repository

source§

impl StructuralPartialEq for Repository

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromResponse for T

source§

fn from_response<'async_trait, B>( response: Response<B> ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where B: Body<Data = Bytes, Error = Error> + Send + 'async_trait, T: 'async_trait,

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
source§

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

§

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

§

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

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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