Struct gitlab::types::Project
[−]
[src]
pub struct Project { pub id: ProjectId, pub description: Option<String>, pub default_branch: Option<String>, pub tag_list: Vec<String>, pub public: bool, pub archived: bool, pub visibility_level: u64, pub ssh_url_to_repo: String, pub http_url_to_repo: String, pub web_url: String, pub owner: Option<UserBasic>, pub name: String, pub name_with_namespace: String, pub path: String, pub path_with_namespace: String, pub container_registry_enabled: Option<bool>, pub created_at: DateTime<UTC>, pub last_activity_at: DateTime<UTC>, pub shared_runners_enabled: bool, pub lfs_enabled: bool, pub creator_id: UserId, pub namespace: Namespace, pub forked_from_project: Option<BasicProjectDetails>, pub avatar_url: Option<String>, pub star_count: u64, pub forks_count: u64, pub open_issues_count: Option<u64>, pub runners_token: Option<String>, pub public_builds: bool, pub shared_with_groups: Vec<SharedGroup>, pub only_allow_merge_if_build_succeeds: Option<bool>, pub only_allow_merge_if_all_discussions_are_resolved: Option<bool>, pub request_access_enabled: bool, pub builds_enabled: bool, pub issues_enabled: bool, pub merge_requests_enabled: bool, pub snippets_enabled: bool, pub wiki_enabled: bool, pub statistics: Option<ProjectStatistics>, pub permissions: Option<Permissions>, }
Project information.
Fields
id: ProjectId
The ID of the project.
description: Option<String>
The description of the project.
default_branch: Option<String>
The default branch for the project.
tag_list: Vec<String>
A list of tags for the project.
public: bool
Whether the project is publicly visible or not.
archived: bool
Whether the project is archived or not.
visibility_level: u64
Integral value for the project's visibility.
ssh_url_to_repo: String
The URL to clone the repository over SSH.
http_url_to_repo: String
The URL to clone the repository over HTTPS.
web_url: String
The URL for the project's homepage.
owner: Option<UserBasic>
The owner of the project (None
for a group-owned project).
name: String
The display name of the project.
name_with_namespace: String
The display name of the project with the namespace.
path: String
The path to the project's repository.
path_with_namespace: String
The path to the project's repository with its namespace.
container_registry_enabled: Option<bool>
Whether the continuous integration container registry is enabled.
This is supposed to be just bool
, but projects created before the registry was
supported appear to return null
.
created_at: DateTime<UTC>
When the repository was created.
last_activity_at: DateTime<UTC>
When the last activity on the project occurred.
Whether continuous integration shared runners are enabled.
lfs_enabled: bool
Whether LFS object storage is enabled.
creator_id: UserId
The user who created the repository.
namespace: Namespace
The namespace the project lives in.
forked_from_project: Option<BasicProjectDetails>
If the project is a fork, details about it.
avatar_url: Option<String>
The URL to the project avatar.
star_count: u64
The number of stars for the project.
forks_count: u64
The number of forks.
open_issues_count: Option<u64>
The number of open issues (if issues are enabled).
runners_token: Option<String>
The continuous integration runner token (if enabled).
public_builds: bool
Whether builds are publicly visible.
Groups the project is shared with.
only_allow_merge_if_build_succeeds: Option<bool>
Whether the project only enables the merge button if all builds are passing.
only_allow_merge_if_all_discussions_are_resolved: Option<bool>
Whether the project only enables the merge button if all discussions are resolved.
request_access_enabled: bool
Whether access to the project may be requested.
builds_enabled: bool
Whether builds are enabled or not.
issues_enabled: bool
Whether issues are enabled or not.
merge_requests_enabled: bool
Whether merge requests are enabled or not.
snippets_enabled: bool
Whether snippets are enabled or not.
wiki_enabled: bool
Whether the project wiki is enabled or not.
statistics: Option<ProjectStatistics>
Statistics about the project.
permissions: Option<Permissions>
If this is present, it is ProjectWithAccess
, but since it is so similar, just have it be
optional here.
Trait Implementations
impl Debug for Project
[src]
impl Clone for Project
[src]
fn clone(&self) -> Project
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more