pub struct AttachMenuBot {
pub inactive: bool,
pub has_settings: bool,
pub request_write_access: bool,
pub show_in_attach_menu: bool,
pub show_in_side_menu: bool,
pub side_menu_disclaimer_needed: bool,
pub bot_id: i64,
pub short_name: String,
pub peer_types: Option<Vec<AttachMenuPeerType>>,
pub icons: Vec<AttachMenuBotIcon>,
}Expand description
Generated from:
attachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true show_in_attach_menu:flags.3?true show_in_side_menu:flags.4?true side_menu_disclaimer_needed:flags.5?true bot_id:long short_name:string peer_types:flags.3?Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBotFields§
§inactive: bool§has_settings: bool§request_write_access: bool§bot_id: i64§short_name: String§peer_types: Option<Vec<AttachMenuPeerType>>§icons: Vec<AttachMenuBotIcon>Trait Implementations§
Source§impl Clone for AttachMenuBot
impl Clone for AttachMenuBot
Source§fn clone(&self) -> AttachMenuBot
fn clone(&self) -> AttachMenuBot
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 AttachMenuBot
impl Debug for AttachMenuBot
Source§impl Deserializable for AttachMenuBot
impl Deserializable for AttachMenuBot
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<AttachMenuBot> for AttachMenuBot
impl From<AttachMenuBot> for AttachMenuBot
Source§fn from(x: AttachMenuBot) -> Self
fn from(x: AttachMenuBot) -> Self
Converts to this type from the input type.
Source§impl Identifiable for AttachMenuBot
impl Identifiable for AttachMenuBot
Source§const CONSTRUCTOR_ID: u32 = 0xd90d8dfe
const CONSTRUCTOR_ID: u32 = 0xd90d8dfe
The constructor ID as specified in the TL schema.
Source§impl PartialEq for AttachMenuBot
impl PartialEq for AttachMenuBot
Source§impl Serializable for AttachMenuBot
impl Serializable for AttachMenuBot
Source§impl TryFrom<AttachMenuBot> for AttachMenuBot
impl TryFrom<AttachMenuBot> for AttachMenuBot
Source§type Error = AttachMenuBot
type Error = AttachMenuBot
The type returned in the event of a conversion error.
impl StructuralPartialEq for AttachMenuBot
Auto Trait Implementations§
impl Freeze for AttachMenuBot
impl RefUnwindSafe for AttachMenuBot
impl Send for AttachMenuBot
impl Sync for AttachMenuBot
impl Unpin for AttachMenuBot
impl UnsafeUnpin for AttachMenuBot
impl UnwindSafe for AttachMenuBot
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