pub struct RinthProject {Show 22 fields
pub slug: String,
pub title: String,
pub description: String,
pub categories: Box<[String]>,
pub client_side: String,
pub server_side: String,
pub body: String,
pub status: String,
pub requested_status: Option<String>,
pub additional_categories: Box<[String]>,
pub project_type: String,
pub downloads: u32,
pub icon_url: Option<String>,
pub id: String,
pub team: String,
pub body_url: Option<String>,
pub published: String,
pub updated: String,
pub followers: u32,
pub versions: Box<[String]>,
pub game_versions: Box<[String]>,
pub loaders: Box<[String]>,
}Expand description
A project returned from the API
§API Request
§Get a project
GET https://api.modrinth.com/v2/project/{id | slug}
§Parameters
- id|slug String (Required)
This type is also usable when requesting searches for rinth api
§Missing fields
issues_urlsource_urlwiki_urldiscord_urldonation_urlcolorthread_idmonetization_statusmoderator messageapprovedqueuedlicensegallery
Want any of them ? PR !!!
Fields§
§slug: StringThe slug of a project, used for vanity URLs. Regex: ^[\w!@$()`.+,“-’]{3,64}$
title: String§description: String§categories: Box<[String]>§client_side: StringAllowed values: required optional unsupported unknown
server_side: StringAllowed values: required optional unsupported unknown
body: String§status: StringAllowed values: approved archived rejected draft unlisted processing withheld scheduled private unknown
requested_status: Option<String>Allowed values: approved archived unlisted private draft
additional_categories: Box<[String]>A list of categories which are searchable but non-primary.
project_type: StringAllowed values: mod modpack resourcepack shader
downloads: u32§icon_url: Option<String>§id: String§team: String§body_url: Option<String>The link to the long description of the project. Always null, only kept for legacy compatibility.
published: Stringformat: ISO-8601
updated: Stringformat: ISO-8601
followers: u32§versions: Box<[String]>A list of the version IDs of the project (will never be empty unless draft status)
game_versions: Box<[String]>A list of all of the game versions supported by the project
loaders: Box<[String]>Trait Implementations§
Source§impl Clone for RinthProject
impl Clone for RinthProject
Source§fn clone(&self) -> RinthProject
fn clone(&self) -> RinthProject
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RinthProject
impl RefUnwindSafe for RinthProject
impl Send for RinthProject
impl Sync for RinthProject
impl Unpin for RinthProject
impl UnwindSafe for RinthProject
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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 more