pub enum InputPaidMedia {
Photo(InputPaidMediaPhoto),
Video(InputPaidMediaVideo),
}Expand description
Paid media to send via sendPaidMedia.
Serialise with serde_json::to_value(&media) to pass to sendPaidMedia
until the method is updated to accept this type directly.
Variants§
Trait Implementations§
Source§impl Clone for InputPaidMedia
impl Clone for InputPaidMedia
Source§fn clone(&self) -> InputPaidMedia
fn clone(&self) -> InputPaidMedia
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 InputPaidMedia
impl Debug for InputPaidMedia
Source§impl<'de> Deserialize<'de> for InputPaidMedia
impl<'de> Deserialize<'de> for InputPaidMedia
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputPaidMedia
impl RefUnwindSafe for InputPaidMedia
impl Send for InputPaidMedia
impl Sync for InputPaidMedia
impl Unpin for InputPaidMedia
impl UnsafeUnpin for InputPaidMedia
impl UnwindSafe for InputPaidMedia
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