pub struct UpdatePeerBlocked {
pub blocked: bool,
pub blocked_my_stories_from: bool,
pub peer_id: Peer,
}Expand description
Generated from:
updatePeerBlocked#ebe07752 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer = UpdateFields§
§blocked: bool§blocked_my_stories_from: bool§peer_id: PeerTrait Implementations§
Source§impl Clone for UpdatePeerBlocked
impl Clone for UpdatePeerBlocked
Source§fn clone(&self) -> UpdatePeerBlocked
fn clone(&self) -> UpdatePeerBlocked
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 UpdatePeerBlocked
impl Debug for UpdatePeerBlocked
Source§impl Deserializable for UpdatePeerBlocked
impl Deserializable for UpdatePeerBlocked
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<UpdatePeerBlocked> for Update
impl From<UpdatePeerBlocked> for Update
Source§fn from(x: UpdatePeerBlocked) -> Self
fn from(x: UpdatePeerBlocked) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdatePeerBlocked
impl Identifiable for UpdatePeerBlocked
Source§const CONSTRUCTOR_ID: u32 = 0xebe07752
const CONSTRUCTOR_ID: u32 = 0xebe07752
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UpdatePeerBlocked
impl PartialEq for UpdatePeerBlocked
Source§impl Serializable for UpdatePeerBlocked
impl Serializable for UpdatePeerBlocked
Source§impl TryFrom<Update> for UpdatePeerBlocked
impl TryFrom<Update> for UpdatePeerBlocked
impl StructuralPartialEq for UpdatePeerBlocked
Auto Trait Implementations§
impl Freeze for UpdatePeerBlocked
impl RefUnwindSafe for UpdatePeerBlocked
impl Send for UpdatePeerBlocked
impl Sync for UpdatePeerBlocked
impl Unpin for UpdatePeerBlocked
impl UnsafeUnpin for UpdatePeerBlocked
impl UnwindSafe for UpdatePeerBlocked
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