pub struct RequestPeerTypeCreateBot {
pub bot_managed: bool,
pub suggested_name: Option<String>,
pub suggested_username: Option<String>,
}Expand description
Generated from:
requestPeerTypeCreateBot#3e81e078 flags:# bot_managed:flags.0?true suggested_name:flags.1?string suggested_username:flags.2?string = RequestPeerTypeFields§
§bot_managed: bool§suggested_name: Option<String>§suggested_username: Option<String>Trait Implementations§
Source§impl Clone for RequestPeerTypeCreateBot
impl Clone for RequestPeerTypeCreateBot
Source§fn clone(&self) -> RequestPeerTypeCreateBot
fn clone(&self) -> RequestPeerTypeCreateBot
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 RequestPeerTypeCreateBot
impl Debug for RequestPeerTypeCreateBot
Source§impl Deserializable for RequestPeerTypeCreateBot
impl Deserializable for RequestPeerTypeCreateBot
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<RequestPeerTypeCreateBot> for RequestPeerType
impl From<RequestPeerTypeCreateBot> for RequestPeerType
Source§fn from(x: RequestPeerTypeCreateBot) -> Self
fn from(x: RequestPeerTypeCreateBot) -> Self
Converts to this type from the input type.
Source§impl Identifiable for RequestPeerTypeCreateBot
impl Identifiable for RequestPeerTypeCreateBot
Source§const CONSTRUCTOR_ID: u32 = 0x3e81e078
const CONSTRUCTOR_ID: u32 = 0x3e81e078
The constructor ID as specified in the TL schema.
Source§impl PartialEq for RequestPeerTypeCreateBot
impl PartialEq for RequestPeerTypeCreateBot
Source§impl TryFrom<RequestPeerType> for RequestPeerTypeCreateBot
impl TryFrom<RequestPeerType> for RequestPeerTypeCreateBot
Source§type Error = RequestPeerType
type Error = RequestPeerType
The type returned in the event of a conversion error.
impl StructuralPartialEq for RequestPeerTypeCreateBot
Auto Trait Implementations§
impl Freeze for RequestPeerTypeCreateBot
impl RefUnwindSafe for RequestPeerTypeCreateBot
impl Send for RequestPeerTypeCreateBot
impl Sync for RequestPeerTypeCreateBot
impl Unpin for RequestPeerTypeCreateBot
impl UnsafeUnpin for RequestPeerTypeCreateBot
impl UnwindSafe for RequestPeerTypeCreateBot
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