pub struct BaseProject {
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>,
}
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
Implementations§
Source§impl BaseProject
impl BaseProject
pub fn new() -> BaseProject
Trait Implementations§
Source§impl Clone for BaseProject
impl Clone for BaseProject
Source§fn clone(&self) -> BaseProject
fn clone(&self) -> BaseProject
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 BaseProject
impl Debug for BaseProject
Source§impl Default for BaseProject
impl Default for BaseProject
Source§fn default() -> BaseProject
fn default() -> BaseProject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaseProject
impl<'de> Deserialize<'de> for BaseProject
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 BaseProject
impl PartialEq for BaseProject
Source§impl Serialize for BaseProject
impl Serialize for BaseProject
impl StructuralPartialEq for BaseProject
Auto Trait Implementations§
impl Freeze for BaseProject
impl RefUnwindSafe for BaseProject
impl Send for BaseProject
impl Sync for BaseProject
impl Unpin for BaseProject
impl UnwindSafe for BaseProject
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