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 auth: Sensitive<String>,
}Fields
name: Stringtitle: Stringdescription: Option<String>icon: Option<String>nsfw: Option<bool>posting_restricted_to_mods: Option<bool>auth: Sensitive<String>Trait Implementations
sourceimpl Clone for CreateCommunity
impl Clone for CreateCommunity
sourcefn clone(&self) -> CreateCommunity
fn clone(&self) -> CreateCommunity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CreateCommunity
impl Debug for CreateCommunity
sourceimpl Default for CreateCommunity
impl Default for CreateCommunity
sourcefn default() -> CreateCommunity
fn default() -> CreateCommunity
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CreateCommunity
impl<'de> Deserialize<'de> for CreateCommunity
sourcefn 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
sourceimpl Serialize for CreateCommunity
impl Serialize for CreateCommunity
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more