pub struct ProjectResult {Show 23 fields
pub slug: String,
pub title: String,
pub description: String,
pub categories: Option<Vec<String>>,
pub client_side: ClientSide,
pub server_side: ServerSide,
pub project_type: ProjectType,
pub downloads: i32,
pub icon_url: Option<Option<String>>,
pub color: Option<Option<i32>>,
pub thread_id: Option<String>,
pub monetization_status: Option<MonetizationStatus>,
pub project_id: String,
pub author: String,
pub display_categories: Option<Vec<String>>,
pub versions: Vec<String>,
pub follows: i32,
pub date_created: String,
pub date_modified: String,
pub latest_version: Option<String>,
pub license: String,
pub gallery: Option<Vec<String>>,
pub featured_gallery: Option<Option<String>>,
}
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: Option<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
project_type: ProjectType
The project type of the project
downloads: i32
The total number of downloads of the project
icon_url: Option<Option<String>>
The URL of the project’s icon
color: Option<Option<i32>>
The RGB color of the project, automatically generated from the project icon
thread_id: Option<String>
The ID of the moderation thread associated with this project
monetization_status: Option<MonetizationStatus>
§project_id: String
The ID of the project
The username of the project’s author
display_categories: Option<Vec<String>>
A list of the categories that the project has which are not secondary
versions: Vec<String>
A list of the minecraft versions supported by the project
follows: i32
The total number of users following the project
date_created: String
The date the project was added to search
date_modified: String
The date the project was last modified
latest_version: Option<String>
The latest version of minecraft that this project supports
license: String
The SPDX license ID of a project
gallery: Option<Vec<String>>
All gallery images attached to the project
featured_gallery: Option<Option<String>>
The featured gallery image of the project
Implementations§
Source§impl ProjectResult
impl ProjectResult
pub fn new( slug: String, title: String, description: String, client_side: ClientSide, server_side: ServerSide, project_type: ProjectType, downloads: i32, project_id: String, author: String, versions: Vec<String>, follows: i32, date_created: String, date_modified: String, license: String, ) -> ProjectResult
Trait Implementations§
Source§impl Clone for ProjectResult
impl Clone for ProjectResult
Source§fn clone(&self) -> ProjectResult
fn clone(&self) -> ProjectResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more