pub enum InputPaidMediaType {
Photo,
Video(InputPaidMediaTypeVideo),
}Variants§
Photo
The media is a photo. The photo must be at most 10 MB in size. The photo’s width and height must not exceed 10000 in total. Width and height ratio must be at most 20
Video(InputPaidMediaTypeVideo)
The media is a video
Trait Implementations§
Source§impl Clone for InputPaidMediaType
impl Clone for InputPaidMediaType
Source§fn clone(&self) -> InputPaidMediaType
fn clone(&self) -> InputPaidMediaType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputPaidMediaType
impl Debug for InputPaidMediaType
Source§impl<'de> Deserialize<'de> for InputPaidMediaType
impl<'de> Deserialize<'de> for InputPaidMediaType
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
Source§impl PartialEq for InputPaidMediaType
impl PartialEq for InputPaidMediaType
Source§fn eq(&self, other: &InputPaidMediaType) -> bool
fn eq(&self, other: &InputPaidMediaType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InputPaidMediaType
impl Serialize for InputPaidMediaType
impl StructuralPartialEq for InputPaidMediaType
Auto Trait Implementations§
impl Freeze for InputPaidMediaType
impl RefUnwindSafe for InputPaidMediaType
impl Send for InputPaidMediaType
impl Sync for InputPaidMediaType
impl Unpin for InputPaidMediaType
impl UnsafeUnpin for InputPaidMediaType
impl UnwindSafe for InputPaidMediaType
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