Struct lemmy_api_common::community::AddModToCommunity
source · pub struct AddModToCommunity {
pub community_id: CommunityId,
pub person_id: PersonId,
pub added: bool,
}Expand description
Add a moderator to a community.
Fields§
§community_id: CommunityId§person_id: PersonId§added: boolTrait Implementations§
source§impl Clone for AddModToCommunity
impl Clone for AddModToCommunity
source§fn clone(&self) -> AddModToCommunity
fn clone(&self) -> AddModToCommunity
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 AddModToCommunity
impl Debug for AddModToCommunity
source§impl Default for AddModToCommunity
impl Default for AddModToCommunity
source§fn default() -> AddModToCommunity
fn default() -> AddModToCommunity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AddModToCommunity
impl<'de> Deserialize<'de> for AddModToCommunity
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 AddModToCommunity
impl Hash for AddModToCommunity
source§impl PartialEq for AddModToCommunity
impl PartialEq for AddModToCommunity
source§fn eq(&self, other: &AddModToCommunity) -> bool
fn eq(&self, other: &AddModToCommunity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AddModToCommunity
impl Serialize for AddModToCommunity
impl Eq for AddModToCommunity
impl StructuralPartialEq for AddModToCommunity
Auto Trait Implementations§
impl Freeze for AddModToCommunity
impl RefUnwindSafe for AddModToCommunity
impl Send for AddModToCommunity
impl Sync for AddModToCommunity
impl Unpin for AddModToCommunity
impl UnwindSafe for AddModToCommunity
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