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>>,
pub visibility: Option<CommunityVisibility>,
}
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>>
§visibility: Option<CommunityVisibility>
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
source§impl Hash for CreateCommunity
impl Hash for CreateCommunity
source§impl PartialEq for CreateCommunity
impl PartialEq for CreateCommunity
source§fn eq(&self, other: &CreateCommunity) -> bool
fn eq(&self, other: &CreateCommunity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreateCommunity
impl Serialize for CreateCommunity
impl Eq for CreateCommunity
impl StructuralPartialEq for CreateCommunity
Auto Trait Implementations§
impl Freeze for CreateCommunity
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