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