pub struct AttachMenuBotIcon {
pub name: String,
pub icon: Document,
pub colors: Option<Vec<AttachMenuBotIconColor>>,
}Expand description
Generated from:
attachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector<AttachMenuBotIconColor> = AttachMenuBotIconFields§
§name: String§icon: Document§colors: Option<Vec<AttachMenuBotIconColor>>Trait Implementations§
Source§impl Clone for AttachMenuBotIcon
impl Clone for AttachMenuBotIcon
Source§fn clone(&self) -> AttachMenuBotIcon
fn clone(&self) -> AttachMenuBotIcon
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 AttachMenuBotIcon
impl Debug for AttachMenuBotIcon
Source§impl Deserializable for AttachMenuBotIcon
impl Deserializable for AttachMenuBotIcon
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<AttachMenuBotIcon> for AttachMenuBotIcon
impl From<AttachMenuBotIcon> for AttachMenuBotIcon
Source§fn from(x: AttachMenuBotIcon) -> Self
fn from(x: AttachMenuBotIcon) -> Self
Converts to this type from the input type.
Source§impl Identifiable for AttachMenuBotIcon
impl Identifiable for AttachMenuBotIcon
Source§const CONSTRUCTOR_ID: u32 = 0xb2a7386b
const CONSTRUCTOR_ID: u32 = 0xb2a7386b
The constructor ID as specified in the TL schema.
Source§impl PartialEq for AttachMenuBotIcon
impl PartialEq for AttachMenuBotIcon
Source§impl Serializable for AttachMenuBotIcon
impl Serializable for AttachMenuBotIcon
Source§impl TryFrom<AttachMenuBotIcon> for AttachMenuBotIcon
impl TryFrom<AttachMenuBotIcon> for AttachMenuBotIcon
Source§type Error = AttachMenuBotIcon
type Error = AttachMenuBotIcon
The type returned in the event of a conversion error.
impl StructuralPartialEq for AttachMenuBotIcon
Auto Trait Implementations§
impl Freeze for AttachMenuBotIcon
impl RefUnwindSafe for AttachMenuBotIcon
impl Send for AttachMenuBotIcon
impl Sync for AttachMenuBotIcon
impl Unpin for AttachMenuBotIcon
impl UnsafeUnpin for AttachMenuBotIcon
impl UnwindSafe for AttachMenuBotIcon
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