pub struct VideoMessageAdvertisement {
pub unique_id: i64,
pub text: String,
pub min_display_duration: i32,
pub max_display_duration: i32,
pub can_be_reported: bool,
pub sponsor: AdvertisementSponsor,
pub title: String,
pub additional_info: String,
}Expand description
Describes an advertisent to be shown while a video from a message is watched
Fields§
§unique_id: i64Unique identifier of this result
text: StringText of the advertisement
min_display_duration: i32The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds
max_display_duration: i32The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds
can_be_reported: boolTrue, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement
sponsor: AdvertisementSponsorInformation about the sponsor of the advertisement
title: StringTitle of the sponsored message
additional_info: StringIf non-empty, additional information about the sponsored message to be shown along with the message
Trait Implementations§
Source§impl Clone for VideoMessageAdvertisement
impl Clone for VideoMessageAdvertisement
Source§fn clone(&self) -> VideoMessageAdvertisement
fn clone(&self) -> VideoMessageAdvertisement
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 VideoMessageAdvertisement
impl Debug for VideoMessageAdvertisement
Source§impl Default for VideoMessageAdvertisement
impl Default for VideoMessageAdvertisement
Source§fn default() -> VideoMessageAdvertisement
fn default() -> VideoMessageAdvertisement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VideoMessageAdvertisement
impl<'de> Deserialize<'de> for VideoMessageAdvertisement
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
impl StructuralPartialEq for VideoMessageAdvertisement
Auto Trait Implementations§
impl Freeze for VideoMessageAdvertisement
impl RefUnwindSafe for VideoMessageAdvertisement
impl Send for VideoMessageAdvertisement
impl Sync for VideoMessageAdvertisement
impl Unpin for VideoMessageAdvertisement
impl UnsafeUnpin for VideoMessageAdvertisement
impl UnwindSafe for VideoMessageAdvertisement
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