pub struct Hit {Show 20 fields
pub slug: String,
pub title: String,
pub description: String,
pub categories: Box<String>,
pub client_side: String,
pub server_side: String,
pub project_type: String,
pub downloads: usize,
pub icon_url: Option<String>,
pub color: Option<usize>,
pub project_id: String,
pub author: String,
pub display_categories: Box<[String]>,
pub versions: Box<[String]>,
pub follows: usize,
pub date_created: String,
pub date_modified: String,
pub latest_version: Option<String>,
pub license: String,
pub gallery: Box<[String]>,
}Expand description
Every hit of SearchProjects struct.
This struct contains the information of each hit.
§Missing fields
Want them ? PR !!
thread_idmonetization_status
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
project_type: StringAllowed values: mod modpack resourcepack shader
downloads: usize§icon_url: Option<String>§color: Option<usize>§project_id: String§display_categories: Box<[String]>§versions: Box<[String]>§follows: usize§date_created: Stringformat: ISO-8601
date_modified: Stringformat: ISO-8601
latest_version: Option<String>The latest version of minecraft that this project supports.
license: String§gallery: Box<[String]>All gallery images attached to the project (urls)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hit
impl<'de> Deserialize<'de> for Hit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnwindSafe for Hit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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