pub struct DocumentAttributeVideo {
pub round_message: bool,
pub supports_streaming: bool,
pub nosound: bool,
pub duration: f64,
pub w: i32,
pub h: i32,
pub preload_prefix_size: Option<i32>,
pub video_start_ts: Option<f64>,
pub video_codec: Option<String>,
}Expand description
Generated from:
documentAttributeVideo#43c57c48 flags:# round_message:flags.0?true supports_streaming:flags.1?true nosound:flags.3?true duration:double w:int h:int preload_prefix_size:flags.2?int video_start_ts:flags.4?double video_codec:flags.5?string = DocumentAttributeFields§
§round_message: bool§supports_streaming: bool§nosound: bool§duration: f64§w: i32§h: i32§preload_prefix_size: Option<i32>§video_start_ts: Option<f64>§video_codec: Option<String>Trait Implementations§
Source§impl Clone for DocumentAttributeVideo
impl Clone for DocumentAttributeVideo
Source§fn clone(&self) -> DocumentAttributeVideo
fn clone(&self) -> DocumentAttributeVideo
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 DocumentAttributeVideo
impl Debug for DocumentAttributeVideo
Source§impl Deserializable for DocumentAttributeVideo
impl Deserializable for DocumentAttributeVideo
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<DocumentAttributeVideo> for DocumentAttribute
impl From<DocumentAttributeVideo> for DocumentAttribute
Source§fn from(x: DocumentAttributeVideo) -> Self
fn from(x: DocumentAttributeVideo) -> Self
Converts to this type from the input type.
Source§impl Identifiable for DocumentAttributeVideo
impl Identifiable for DocumentAttributeVideo
Source§const CONSTRUCTOR_ID: u32 = 0x43c57c48
const CONSTRUCTOR_ID: u32 = 0x43c57c48
The constructor ID as specified in the TL schema.
Source§impl PartialEq for DocumentAttributeVideo
impl PartialEq for DocumentAttributeVideo
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeVideo
impl TryFrom<DocumentAttribute> for DocumentAttributeVideo
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
impl StructuralPartialEq for DocumentAttributeVideo
Auto Trait Implementations§
impl Freeze for DocumentAttributeVideo
impl RefUnwindSafe for DocumentAttributeVideo
impl Send for DocumentAttributeVideo
impl Sync for DocumentAttributeVideo
impl Unpin for DocumentAttributeVideo
impl UnsafeUnpin for DocumentAttributeVideo
impl UnwindSafe for DocumentAttributeVideo
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