pub struct CreatableProject {Show 21 fields
pub slug: String,
pub title: String,
pub description: String,
pub categories: Vec<String>,
pub client_side: ClientSide,
pub server_side: ServerSide,
pub body: String,
pub status: Option<Status>,
pub requested_status: Option<Option<RequestedStatus>>,
pub additional_categories: Option<Vec<String>>,
pub issues_url: Option<Option<String>>,
pub source_url: Option<Option<String>>,
pub wiki_url: Option<Option<String>>,
pub discord_url: Option<Option<String>>,
pub donation_urls: Option<Vec<ProjectDonationUrl>>,
pub license_id: String,
pub license_url: Option<Option<String>>,
pub project_type: ProjectType,
pub initial_versions: Option<Vec<EditableVersion>>,
pub is_draft: Option<bool>,
pub gallery_items: Option<Vec<CreatableProjectGalleryItem>>,
}
Fields§
§slug: String
The slug of a project, used for vanity URLs. Regex: ^[\\w!@$()`.+,\"\\-']{3,64}$
title: String
The title or name of the project
description: String
A short description of the project
categories: Vec<String>
A list of the categories that the project has
client_side: ClientSide
The client side support of the project
server_side: ServerSide
The server side support of the project
body: String
A long form description of the project
status: Option<Status>
The status of the project
requested_status: Option<Option<RequestedStatus>>
The requested status when submitting for review or scheduling the project for release
additional_categories: Option<Vec<String>>
A list of categories which are searchable but non-primary
issues_url: Option<Option<String>>
An optional link to where to submit bugs or issues with the project
source_url: Option<Option<String>>
An optional link to the source code of the project
wiki_url: Option<Option<String>>
An optional link to the project’s wiki page or other relevant information
discord_url: Option<Option<String>>
An optional invite link to the project’s discord
donation_urls: Option<Vec<ProjectDonationUrl>>
A list of donation links for the project
license_id: String
The SPDX license ID of a project
license_url: Option<Option<String>>
The URL to this license
project_type: ProjectType
§initial_versions: Option<Vec<EditableVersion>>
A list of initial versions to upload with the created project. Deprecated - please upload version files after initial upload.
is_draft: Option<bool>
Whether the project should be saved as a draft instead of being sent to moderation for review. Deprecated - please always mark this as true.
gallery_items: Option<Vec<CreatableProjectGalleryItem>>
Gallery images to be uploaded with the created project. Deprecated - please upload gallery images after initial upload.
Implementations§
Source§impl CreatableProject
impl CreatableProject
pub fn new( slug: String, title: String, description: String, categories: Vec<String>, client_side: ClientSide, server_side: ServerSide, body: String, license_id: String, project_type: ProjectType, ) -> CreatableProject
Trait Implementations§
Source§impl Clone for CreatableProject
impl Clone for CreatableProject
Source§fn clone(&self) -> CreatableProject
fn clone(&self) -> CreatableProject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more