pub struct RequestedPeerChannel {
pub channel_id: i64,
pub title: Option<String>,
pub username: Option<String>,
pub photo: Option<Photo>,
}Expand description
Generated from:
requestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeerFields§
§channel_id: i64§title: Option<String>§username: Option<String>§photo: Option<Photo>Trait Implementations§
Source§impl Clone for RequestedPeerChannel
impl Clone for RequestedPeerChannel
Source§fn clone(&self) -> RequestedPeerChannel
fn clone(&self) -> RequestedPeerChannel
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 RequestedPeerChannel
impl Debug for RequestedPeerChannel
Source§impl Deserializable for RequestedPeerChannel
impl Deserializable for RequestedPeerChannel
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<RequestedPeerChannel> for RequestedPeer
impl From<RequestedPeerChannel> for RequestedPeer
Source§fn from(x: RequestedPeerChannel) -> Self
fn from(x: RequestedPeerChannel) -> Self
Converts to this type from the input type.
Source§impl Identifiable for RequestedPeerChannel
impl Identifiable for RequestedPeerChannel
Source§const CONSTRUCTOR_ID: u32 = 0x8ba403e4
const CONSTRUCTOR_ID: u32 = 0x8ba403e4
The constructor ID as specified in the TL schema.
Source§impl PartialEq for RequestedPeerChannel
impl PartialEq for RequestedPeerChannel
Source§impl Serializable for RequestedPeerChannel
impl Serializable for RequestedPeerChannel
Source§impl TryFrom<RequestedPeer> for RequestedPeerChannel
impl TryFrom<RequestedPeer> for RequestedPeerChannel
Source§type Error = RequestedPeer
type Error = RequestedPeer
The type returned in the event of a conversion error.
impl StructuralPartialEq for RequestedPeerChannel
Auto Trait Implementations§
impl Freeze for RequestedPeerChannel
impl RefUnwindSafe for RequestedPeerChannel
impl Send for RequestedPeerChannel
impl Sync for RequestedPeerChannel
impl Unpin for RequestedPeerChannel
impl UnsafeUnpin for RequestedPeerChannel
impl UnwindSafe for RequestedPeerChannel
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