pub struct CommunityContext {
pub display_name: String,
pub description: String,
pub is_nsfw: bool,
pub enable_questions: bool,
pub enable_titles: bool,
pub require_titles: bool,
}Fields§
§display_name: String§description: String§is_nsfw: bool§enable_questions: bool§enable_titles: boolIf posts are allowed to set a title field.
require_titles: boolIf posts are required to set a title field.
enable_titles is required for this setting to work.
Trait Implementations§
Source§impl Clone for CommunityContext
impl Clone for CommunityContext
Source§fn clone(&self) -> CommunityContext
fn clone(&self) -> CommunityContext
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 CommunityContext
impl Debug for CommunityContext
Source§impl Default for CommunityContext
impl Default for CommunityContext
Source§fn default() -> CommunityContext
fn default() -> CommunityContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommunityContext
impl<'de> Deserialize<'de> for CommunityContext
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 Freeze for CommunityContext
impl RefUnwindSafe for CommunityContext
impl Send for CommunityContext
impl Sync for CommunityContext
impl Unpin for CommunityContext
impl UnwindSafe for CommunityContext
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