Struct forgejo_api::structs::Repository

source ·
pub struct Repository {
Show 60 fields pub allow_fast_forward_only_merge: Option<bool>, pub allow_merge_commits: Option<bool>, pub allow_rebase: Option<bool>, pub allow_rebase_explicit: Option<bool>, pub allow_rebase_update: Option<bool>, pub allow_squash_merge: Option<bool>, pub archived: Option<bool>, pub archived_at: Option<OffsetDateTime>, pub avatar_url: Option<Url>, pub clone_url: Option<Url>, pub created_at: Option<OffsetDateTime>, pub default_allow_maintainer_edit: Option<bool>, pub default_branch: Option<String>, pub default_delete_branch_after_merge: Option<bool>, pub default_merge_style: Option<DefaultMergeStyle>, pub description: Option<String>, pub empty: Option<bool>, pub external_tracker: Option<ExternalTracker>, pub external_wiki: Option<ExternalWiki>, pub fork: Option<bool>, pub forks_count: Option<u64>, pub full_name: Option<String>, pub has_actions: Option<bool>, pub has_issues: Option<bool>, pub has_packages: Option<bool>, pub has_projects: Option<bool>, pub has_pull_requests: Option<bool>, pub has_releases: Option<bool>, pub has_wiki: Option<bool>, pub html_url: Option<Url>, pub id: Option<u64>, pub ignore_whitespace_conflicts: Option<bool>, pub internal: Option<bool>, pub internal_tracker: Option<InternalTracker>, pub language: Option<String>, pub languages_url: Option<Url>, pub link: Option<String>, pub mirror: Option<bool>, pub mirror_interval: Option<String>, pub mirror_updated: Option<OffsetDateTime>, pub name: Option<String>, pub object_format_name: Option<ObjectFormatName>, pub open_issues_count: Option<u64>, pub open_pr_counter: Option<u64>, pub original_url: Option<Url>, pub owner: Option<User>, pub parent: Option<Box<Repository>>, pub permissions: Option<Permission>, pub private: Option<bool>, pub release_counter: Option<u64>, pub repo_transfer: Option<RepoTransfer>, pub size: Option<u64>, pub ssh_url: Option<String>, pub stars_count: Option<u64>, pub template: Option<bool>, pub updated_at: Option<OffsetDateTime>, pub url: Option<Url>, pub watchers_count: Option<u64>, pub website: Option<String>, pub wiki_branch: Option<String>,
}
Expand description

Repository represents a repository

Fields§

§allow_fast_forward_only_merge: Option<bool>§allow_merge_commits: Option<bool>§allow_rebase: Option<bool>§allow_rebase_explicit: Option<bool>§allow_rebase_update: Option<bool>§allow_squash_merge: Option<bool>§archived: Option<bool>§archived_at: Option<OffsetDateTime>§avatar_url: Option<Url>§clone_url: Option<Url>§created_at: Option<OffsetDateTime>§default_allow_maintainer_edit: Option<bool>§default_branch: Option<String>§default_delete_branch_after_merge: Option<bool>§default_merge_style: Option<DefaultMergeStyle>§description: Option<String>§empty: Option<bool>§external_tracker: Option<ExternalTracker>§external_wiki: Option<ExternalWiki>§fork: Option<bool>§forks_count: Option<u64>§full_name: Option<String>§has_actions: Option<bool>§has_issues: Option<bool>§has_packages: Option<bool>§has_projects: Option<bool>§has_pull_requests: Option<bool>§has_releases: Option<bool>§has_wiki: Option<bool>§html_url: Option<Url>§id: Option<u64>§ignore_whitespace_conflicts: Option<bool>§internal: Option<bool>§internal_tracker: Option<InternalTracker>§language: Option<String>§languages_url: Option<Url>§link: Option<String>§mirror: Option<bool>§mirror_interval: Option<String>§mirror_updated: Option<OffsetDateTime>§name: Option<String>§object_format_name: Option<ObjectFormatName>§open_issues_count: Option<u64>§open_pr_counter: Option<u64>§original_url: Option<Url>§owner: Option<User>§parent: Option<Box<Repository>>§permissions: Option<Permission>§private: Option<bool>§release_counter: Option<u64>§repo_transfer: Option<RepoTransfer>§size: Option<u64>§ssh_url: Option<String>§stars_count: Option<u64>§template: Option<bool>§updated_at: Option<OffsetDateTime>§url: Option<Url>§watchers_count: Option<u64>§website: Option<String>§wiki_branch: Option<String>

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