Struct lemmy_api_common::site::BlockInstance
source · pub struct BlockInstance {
pub instance_id: InstanceId,
pub block: bool,
}Expand description
Block an instance as user
Fields§
§instance_id: InstanceId§block: boolTrait Implementations§
source§impl Clone for BlockInstance
impl Clone for BlockInstance
source§fn clone(&self) -> BlockInstance
fn clone(&self) -> BlockInstance
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 BlockInstance
impl Debug for BlockInstance
source§impl Default for BlockInstance
impl Default for BlockInstance
source§fn default() -> BlockInstance
fn default() -> BlockInstance
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockInstance
impl<'de> Deserialize<'de> for BlockInstance
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 BlockInstance
impl Hash for BlockInstance
source§impl PartialEq for BlockInstance
impl PartialEq for BlockInstance
source§fn eq(&self, other: &BlockInstance) -> bool
fn eq(&self, other: &BlockInstance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BlockInstance
impl Serialize for BlockInstance
impl Copy for BlockInstance
impl Eq for BlockInstance
impl StructuralPartialEq for BlockInstance
Auto Trait Implementations§
impl Freeze for BlockInstance
impl RefUnwindSafe for BlockInstance
impl Send for BlockInstance
impl Sync for BlockInstance
impl Unpin for BlockInstance
impl UnwindSafe for BlockInstance
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