pub struct ServerRenderedProject {
pub slug: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub categories: Option<Vec<String>>,
pub client_side: Option<ClientSide>,
pub server_side: Option<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>,
}
Fields§
§slug: Option<String>
The slug of a project, used for vanity URLs. Regex: ^[\\w!@$()`.+,\"\\-']{3,64}$
title: Option<String>
The title or name of the project
description: Option<String>
A short description of the project
categories: Option<Vec<String>>
A list of the categories that the project has
client_side: Option<ClientSide>
The client side support of the project
server_side: Option<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>
Implementations§
Source§impl ServerRenderedProject
impl ServerRenderedProject
pub fn new(project_type: ProjectType, downloads: i32) -> ServerRenderedProject
Trait Implementations§
Source§impl Clone for ServerRenderedProject
impl Clone for ServerRenderedProject
Source§fn clone(&self) -> ServerRenderedProject
fn clone(&self) -> ServerRenderedProject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerRenderedProject
impl Debug for ServerRenderedProject
Source§impl Default for ServerRenderedProject
impl Default for ServerRenderedProject
Source§fn default() -> ServerRenderedProject
fn default() -> ServerRenderedProject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerRenderedProject
impl<'de> Deserialize<'de> for ServerRenderedProject
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
Source§impl PartialEq for ServerRenderedProject
impl PartialEq for ServerRenderedProject
Source§impl Serialize for ServerRenderedProject
impl Serialize for ServerRenderedProject
impl StructuralPartialEq for ServerRenderedProject
Auto Trait Implementations§
impl Freeze for ServerRenderedProject
impl RefUnwindSafe for ServerRenderedProject
impl Send for ServerRenderedProject
impl Sync for ServerRenderedProject
impl Unpin for ServerRenderedProject
impl UnwindSafe for ServerRenderedProject
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