pub struct UpdatePinnedForumTopic {
pub pinned: bool,
pub peer: Peer,
pub topic_id: i32,
}Expand description
Generated from:
updatePinnedForumTopic#683b2c52 flags:# pinned:flags.0?true peer:Peer topic_id:int = UpdateFields§
§pinned: bool§peer: Peer§topic_id: i32Trait Implementations§
Source§impl Clone for UpdatePinnedForumTopic
impl Clone for UpdatePinnedForumTopic
Source§fn clone(&self) -> UpdatePinnedForumTopic
fn clone(&self) -> UpdatePinnedForumTopic
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 UpdatePinnedForumTopic
impl Debug for UpdatePinnedForumTopic
Source§impl Deserializable for UpdatePinnedForumTopic
impl Deserializable for UpdatePinnedForumTopic
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<UpdatePinnedForumTopic> for Update
impl From<UpdatePinnedForumTopic> for Update
Source§fn from(x: UpdatePinnedForumTopic) -> Self
fn from(x: UpdatePinnedForumTopic) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdatePinnedForumTopic
impl Identifiable for UpdatePinnedForumTopic
Source§const CONSTRUCTOR_ID: u32 = 0x683b2c52
const CONSTRUCTOR_ID: u32 = 0x683b2c52
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UpdatePinnedForumTopic
impl PartialEq for UpdatePinnedForumTopic
Source§impl TryFrom<Update> for UpdatePinnedForumTopic
impl TryFrom<Update> for UpdatePinnedForumTopic
impl StructuralPartialEq for UpdatePinnedForumTopic
Auto Trait Implementations§
impl Freeze for UpdatePinnedForumTopic
impl RefUnwindSafe for UpdatePinnedForumTopic
impl Send for UpdatePinnedForumTopic
impl Sync for UpdatePinnedForumTopic
impl Unpin for UpdatePinnedForumTopic
impl UnsafeUnpin for UpdatePinnedForumTopic
impl UnwindSafe for UpdatePinnedForumTopic
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