pub struct GitHubRepository {Show 16 fields
pub description: Option<String>,
pub homepage: Option<String>,
pub topics: Vec<String>,
pub private: bool,
pub has_issues: bool,
pub has_projects: bool,
pub has_wiki: bool,
pub allow_squash_merge: bool,
pub allow_merge_commit: bool,
pub allow_rebase_merge: bool,
pub allow_auto_merge: bool,
pub delete_branch_on_merge: bool,
pub default_branch: String,
pub archived: bool,
pub disabled: bool,
pub collaborators: HashMap<CollaboratorPrincipal, Role>,
}Expand description
A GitHub repository with its configuration settings
Fields§
§description: Option<String>A short description of the repository
homepage: Option<String>A URL with more information about the repository
topics: Vec<String>An array of topics to help categorize the repository
private: boolWhether the repository is private. If false, the repository is public
has_issues: boolWhether issues are enabled for the repository
has_projects: boolWhether projects are enabled for the repository
has_wiki: boolWhether the wiki is enabled for the repository
allow_squash_merge: boolWhether to allow squash merges for pull requests
allow_merge_commit: boolWhether to allow merge commits for pull requests
allow_rebase_merge: boolWhether to allow rebase merges for pull requests
allow_auto_merge: boolWhether to allow auto-merge on pull requests
delete_branch_on_merge: boolWhether to delete head branches when pull requests are merged
default_branch: StringThe default branch for the repository (e.g., “main” or “master”)
archived: boolWhether the repository is archived and read-only
disabled: boolWhether the repository is disabled
collaborators: HashMap<CollaboratorPrincipal, Role>Map of collaborators (users or teams) and their permission roles
Trait Implementations§
Source§impl Debug for GitHubRepository
impl Debug for GitHubRepository
Source§impl Default for GitHubRepository
impl Default for GitHubRepository
Source§impl<'de> Deserialize<'de> for GitHubRepositorywhere
GitHubRepository: Default,
impl<'de> Deserialize<'de> for GitHubRepositorywhere
GitHubRepository: Default,
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>,
Source§impl Documented for GitHubRepository
impl Documented for GitHubRepository
Source§impl DocumentedFields for GitHubRepository
impl DocumentedFields for GitHubRepository
Source§const FIELD_NAMES: &'static [&'static str]
const FIELD_NAMES: &'static [&'static str]
Self::get_field_docs. Read moreSource§const FIELD_DOCS: &'static [&'static str]
const FIELD_DOCS: &'static [&'static str]
Source§impl FieldTypes for GitHubRepository
impl FieldTypes for GitHubRepository
Source§impl PartialEq for GitHubRepository
impl PartialEq for GitHubRepository
Source§impl Serialize for GitHubRepository
impl Serialize for GitHubRepository
impl StructuralPartialEq for GitHubRepository
Auto Trait Implementations§
impl Freeze for GitHubRepository
impl RefUnwindSafe for GitHubRepository
impl Send for GitHubRepository
impl Sync for GitHubRepository
impl Unpin for GitHubRepository
impl UnsafeUnpin for GitHubRepository
impl UnwindSafe for GitHubRepository
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
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request