pub struct PaidMediaVideo {
pub tg_type: String,
pub video: BoxWrapper<Unbox<Video>>,
}Expand description
The paid media is a video.
Fields§
§tg_type: StringType of the paid media, always “video”
video: BoxWrapper<Unbox<Video>>The video
Implementations§
Source§impl PaidMediaVideo
impl PaidMediaVideo
pub fn noskip(self) -> NoSkipPaidMediaVideo
Source§impl PaidMediaVideo
impl PaidMediaVideo
pub fn new<A: Into<Video>>(video: A) -> Self
Sourcepub fn get_tg_type<'a>(&'a self) -> &'a str
pub fn get_tg_type<'a>(&'a self) -> &'a str
Type of the paid media, always “video”
Sourcepub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
pub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
Type of the paid media, always “video”
Trait Implementations§
Source§impl Clone for PaidMediaVideo
impl Clone for PaidMediaVideo
Source§fn clone(&self) -> PaidMediaVideo
fn clone(&self) -> PaidMediaVideo
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 PaidMediaVideo
impl Debug for PaidMediaVideo
Source§impl Default for PaidMediaVideo
impl Default for PaidMediaVideo
Source§fn default() -> PaidMediaVideo
fn default() -> PaidMediaVideo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaidMediaVideo
impl<'de> Deserialize<'de> for PaidMediaVideo
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 From<BoxWrapper<Box<PaidMediaVideo>>> for PaidMediaVideo
impl From<BoxWrapper<Box<PaidMediaVideo>>> for PaidMediaVideo
Source§fn from(t: BoxWrapper<Box<PaidMediaVideo>>) -> Self
fn from(t: BoxWrapper<Box<PaidMediaVideo>>) -> Self
Converts to this type from the input type.
Source§impl From<BoxWrapper<Unbox<PaidMediaVideo>>> for PaidMediaVideo
impl From<BoxWrapper<Unbox<PaidMediaVideo>>> for PaidMediaVideo
Source§fn from(t: BoxWrapper<Unbox<PaidMediaVideo>>) -> Self
fn from(t: BoxWrapper<Unbox<PaidMediaVideo>>) -> Self
Converts to this type from the input type.
Source§impl From<NoSkipPaidMediaVideo> for PaidMediaVideo
impl From<NoSkipPaidMediaVideo> for PaidMediaVideo
Source§fn from(t: NoSkipPaidMediaVideo) -> Self
fn from(t: NoSkipPaidMediaVideo) -> Self
Converts to this type from the input type.
Source§impl Hash for PaidMediaVideo
impl Hash for PaidMediaVideo
Source§impl Into<NoSkipPaidMediaVideo> for PaidMediaVideo
impl Into<NoSkipPaidMediaVideo> for PaidMediaVideo
Source§fn into(self) -> NoSkipPaidMediaVideo
fn into(self) -> NoSkipPaidMediaVideo
Converts this type into the (usually inferred) input type.
Source§impl Ord for PaidMediaVideo
impl Ord for PaidMediaVideo
Source§fn cmp(&self, other: &PaidMediaVideo) -> Ordering
fn cmp(&self, other: &PaidMediaVideo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PaidMediaVideo
impl PartialEq for PaidMediaVideo
Source§impl PartialOrd for PaidMediaVideo
impl PartialOrd for PaidMediaVideo
Source§impl Serialize for PaidMediaVideo
impl Serialize for PaidMediaVideo
impl Eq for PaidMediaVideo
impl StructuralPartialEq for PaidMediaVideo
Auto Trait Implementations§
impl Freeze for PaidMediaVideo
impl RefUnwindSafe for PaidMediaVideo
impl Send for PaidMediaVideo
impl Sync for PaidMediaVideo
impl Unpin for PaidMediaVideo
impl UnsafeUnpin for PaidMediaVideo
impl UnwindSafe for PaidMediaVideo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.