Struct gitlab::types::Project

source ·
pub struct Project {
Show 55 fields pub id: ProjectId, pub description: Option<String>, pub default_branch: Option<String>, pub tag_list: Vec<String>, pub archived: bool, pub empty_repo: bool, pub visibility: VisibilityLevel, pub ssh_url_to_repo: String, pub http_url_to_repo: String, pub web_url: String, pub readme_url: Option<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 ci_config_path: Option<String>, pub build_git_strategy: Option<String>, pub ci_default_git_depth: Option<u64>, pub import_error: Option<String>, pub star_count: u64, pub forks_count: u64, pub open_issues_count: Option<u64>, pub runners_token: Option<String>, pub public_jobs: bool, pub shared_with_groups: Vec<SharedGroup>, pub only_allow_merge_if_pipeline_succeeds: Option<bool>, pub only_allow_merge_if_all_discussions_are_resolved: Option<bool>, pub remove_source_branch_after_merge: Option<bool>, pub printing_merge_request_link_enabled: Option<bool>, pub request_access_enabled: bool, pub resolve_outdated_diff_discussions: Option<bool>, pub jobs_enabled: bool, pub issues_enabled: bool, pub merge_requests_enabled: bool, pub snippets_enabled: bool, pub wiki_enabled: bool, pub builds_access_level: FeatureVisibilityLevel, pub issues_access_level: FeatureVisibilityLevel, pub merge_requests_access_level: FeatureVisibilityLevel, pub repository_access_level: FeatureVisibilityLevel, pub snippets_access_level: FeatureVisibilityLevel, pub wiki_access_level: FeatureVisibilityLevel, pub merge_method: Option<String>, pub statistics: Option<ProjectStatistics>, pub permissions: Option<Permissions>, /* private fields */
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description

Project information.

Fields§

§id: ProjectId
👎Deprecated since 0.1609.0: define deserialization types in client code

The ID of the project.

§description: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The description of the project.

§default_branch: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The default branch for the project.

§tag_list: Vec<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

A list of tags for the project.

§archived: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the project is archived or not.

§empty_repo: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the project has an empty repository or not.

§visibility: VisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the project is public, internal, or private.

§ssh_url_to_repo: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The URL to clone the repository over SSH.

§http_url_to_repo: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The URL to clone the repository over HTTPS.

§web_url: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The URL for the project’s homepage.

§readme_url: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The URL for the project’s readme.

§owner: Option<UserBasic>
👎Deprecated since 0.1609.0: define deserialization types in client code

The owner of the project (None for a group-owned project).

§name: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The display name of the project.

§name_with_namespace: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The display name of the project with the namespace.

§path: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The path to the project’s repository.

§path_with_namespace: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The path to the project’s repository with its namespace.

§container_registry_enabled: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

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>
👎Deprecated since 0.1609.0: define deserialization types in client code

When the repository was created.

§last_activity_at: DateTime<Utc>
👎Deprecated since 0.1609.0: define deserialization types in client code

When the last activity on the project occurred.

§shared_runners_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether continuous integration shared runners are enabled.

§lfs_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether LFS object storage is enabled.

§creator_id: UserId
👎Deprecated since 0.1609.0: define deserialization types in client code

The user who created the repository.

§namespace: Namespace
👎Deprecated since 0.1609.0: define deserialization types in client code

The namespace the project lives in.

§forked_from_project: Option<BasicProjectDetails>
👎Deprecated since 0.1609.0: define deserialization types in client code

If the project is a fork, details about it.

§avatar_url: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The URL to the project avatar.

§ci_config_path: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The path to CI config file.

§build_git_strategy: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The default Git strategy for CI jobs of the project.

§ci_default_git_depth: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code

The default number of revisions to fetch in CI jobs.

§import_error: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

Description of error if project failed to import.

§star_count: u64
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of stars for the project.

§forks_count: u64
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of forks.

§open_issues_count: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of open issues (if issues are enabled).

§runners_token: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The continuous integration runner token (if enabled).

§public_jobs: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether jobs are publicly visible.

§shared_with_groups: Vec<SharedGroup>
👎Deprecated since 0.1609.0: define deserialization types in client code

Groups the project is shared with.

§only_allow_merge_if_pipeline_succeeds: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the project only enables the merge button if all pipelines are passing.

§only_allow_merge_if_all_discussions_are_resolved: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the project only enables the merge button if all discussions are resolved.

§remove_source_branch_after_merge: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether enable ‘Delete source branch’ option by default for all new merge requests.

§printing_merge_request_link_enabled: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether to show the link to create/view merge request when pusing from command line.

§request_access_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether access to the project may be requested.

§resolve_outdated_diff_discussions: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether to automatically resolve merge request diff discussions when they become outdated, if configured.

§jobs_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether jobs are enabled or not.

§issues_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether issues are enabled or not.

§merge_requests_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether merge requests are enabled or not.

§snippets_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether snippets are enabled or not.

§wiki_enabled: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the project wiki is enabled or not.

§builds_access_level: FeatureVisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Visibility of builds.

§issues_access_level: FeatureVisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Visibility of issues.

§merge_requests_access_level: FeatureVisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Visibility of merge requests.

§repository_access_level: FeatureVisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Visibility of repository.

§snippets_access_level: FeatureVisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Visibility of snippets.

§wiki_access_level: FeatureVisibilityLevel
👎Deprecated since 0.1609.0: define deserialization types in client code

Visibility of wiki.

§merge_method: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The merge method used when merging merge request.

§statistics: Option<ProjectStatistics>
👎Deprecated since 0.1609.0: define deserialization types in client code

Statistics about the project.

§permissions: Option<Permissions>
👎Deprecated since 0.1609.0: define deserialization types in client code

If this is present, it is ProjectWithAccess, but since it is so similar, just have it be optional here.

Trait Implementations§

source§

impl Clone for Project

source§

fn clone(&self) -> Project

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 Project

source§

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

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

impl<'de> Deserialize<'de> for Project

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 Serialize for Project

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

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