Struct lemmy_api_common::community::CreateCommunity
source · pub struct CreateCommunity {
pub name: String,
pub title: String,
pub description: Option<String>,
pub icon: Option<String>,
pub banner: Option<String>,
pub nsfw: Option<bool>,
pub posting_restricted_to_mods: Option<bool>,
pub discussion_languages: Option<Vec<LanguageId>>,
}
Expand description
Create a community.
Fields§
§name: String
The unique name.
title: String
A longer title.
description: Option<String>
A longer sidebar, or description of your community, in markdown.
icon: Option<String>
An icon URL.
A banner URL.
nsfw: Option<bool>
Whether its an NSFW community.
posting_restricted_to_mods: Option<bool>
Whether to restrict posting only to moderators.
discussion_languages: Option<Vec<LanguageId>>
Trait Implementations§
source§impl Clone for CreateCommunity
impl Clone for CreateCommunity
source§fn clone(&self) -> CreateCommunity
fn clone(&self) -> CreateCommunity
Returns a copy 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 CreateCommunity
impl Debug for CreateCommunity
source§impl Default for CreateCommunity
impl Default for CreateCommunity
source§fn default() -> CreateCommunity
fn default() -> CreateCommunity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCommunity
impl<'de> Deserialize<'de> for CreateCommunity
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 RefUnwindSafe for CreateCommunity
impl Send for CreateCommunity
impl Sync for CreateCommunity
impl Unpin for CreateCommunity
impl UnwindSafe for CreateCommunity
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