pub struct EditCommunity {
pub community_id: CommunityId,
pub title: Option<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
Edit a community.
Fields§
§community_id: CommunityId
§title: Option<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 EditCommunity
impl Clone for EditCommunity
Source§fn clone(&self) -> EditCommunity
fn clone(&self) -> EditCommunity
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 EditCommunity
impl Debug for EditCommunity
Source§impl Default for EditCommunity
impl Default for EditCommunity
Source§fn default() -> EditCommunity
fn default() -> EditCommunity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditCommunity
impl<'de> Deserialize<'de> for EditCommunity
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 EditCommunity
impl Hash for EditCommunity
Source§impl PartialEq for EditCommunity
impl PartialEq for EditCommunity
Source§impl Serialize for EditCommunity
impl Serialize for EditCommunity
impl Eq for EditCommunity
impl StructuralPartialEq for EditCommunity
Auto Trait Implementations§
impl Freeze for EditCommunity
impl RefUnwindSafe for EditCommunity
impl Send for EditCommunity
impl Sync for EditCommunity
impl Unpin for EditCommunity
impl UnwindSafe for EditCommunity
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