pub struct InputMediaWebPage {
pub force_large_media: bool,
pub force_small_media: bool,
pub optional: bool,
pub url: String,
}Expand description
Generated from:
inputMediaWebPage#c21b8849 flags:# force_large_media:flags.0?true force_small_media:flags.1?true optional:flags.2?true url:string = InputMediaFields§
§force_large_media: bool§force_small_media: bool§optional: bool§url: StringTrait Implementations§
Source§impl Clone for InputMediaWebPage
impl Clone for InputMediaWebPage
Source§fn clone(&self) -> InputMediaWebPage
fn clone(&self) -> InputMediaWebPage
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 InputMediaWebPage
impl Debug for InputMediaWebPage
Source§impl Deserializable for InputMediaWebPage
impl Deserializable for InputMediaWebPage
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<InputMediaWebPage> for InputMedia
impl From<InputMediaWebPage> for InputMedia
Source§fn from(x: InputMediaWebPage) -> Self
fn from(x: InputMediaWebPage) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputMediaWebPage
impl Identifiable for InputMediaWebPage
Source§const CONSTRUCTOR_ID: u32 = 0xc21b8849
const CONSTRUCTOR_ID: u32 = 0xc21b8849
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputMediaWebPage
impl PartialEq for InputMediaWebPage
Source§impl Serializable for InputMediaWebPage
impl Serializable for InputMediaWebPage
Source§impl TryFrom<InputMedia> for InputMediaWebPage
impl TryFrom<InputMedia> for InputMediaWebPage
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputMediaWebPage
Auto Trait Implementations§
impl Freeze for InputMediaWebPage
impl RefUnwindSafe for InputMediaWebPage
impl Send for InputMediaWebPage
impl Sync for InputMediaWebPage
impl Unpin for InputMediaWebPage
impl UnsafeUnpin for InputMediaWebPage
impl UnwindSafe for InputMediaWebPage
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