pub struct CommunityPeer {
pub can_view_history: bool,
pub visible: Option<bool>,
pub peer: Peer,
}Expand description
Generated from:
communityPeer#76141ebd flags:# can_view_history:flags.2?true visible:flags.0?Bool peer:Peer = CommunityPeerFields§
§can_view_history: bool§visible: Option<bool>§peer: PeerTrait Implementations§
Source§impl Clone for CommunityPeer
impl Clone for CommunityPeer
Source§fn clone(&self) -> CommunityPeer
fn clone(&self) -> CommunityPeer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommunityPeer
impl Debug for CommunityPeer
Source§impl Deserializable for CommunityPeer
impl Deserializable for CommunityPeer
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<CommunityPeer> for CommunityPeer
impl From<CommunityPeer> for CommunityPeer
Source§fn from(x: CommunityPeer) -> Self
fn from(x: CommunityPeer) -> Self
Converts to this type from the input type.
Source§impl Identifiable for CommunityPeer
impl Identifiable for CommunityPeer
Source§const CONSTRUCTOR_ID: u32 = 0x76141ebd
const CONSTRUCTOR_ID: u32 = 0x76141ebd
The constructor ID as specified in the TL schema.
Source§impl PartialEq for CommunityPeer
impl PartialEq for CommunityPeer
Source§impl Serializable for CommunityPeer
impl Serializable for CommunityPeer
impl StructuralPartialEq for CommunityPeer
Source§impl TryFrom<CommunityPeer> for CommunityPeer
impl TryFrom<CommunityPeer> for CommunityPeer
Source§type Error = CommunityPeer
type Error = CommunityPeer
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CommunityPeer
impl RefUnwindSafe for CommunityPeer
impl Send for CommunityPeer
impl Sync for CommunityPeer
impl Unpin for CommunityPeer
impl UnsafeUnpin for CommunityPeer
impl UnwindSafe for CommunityPeer
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