Struct ricq_core::pb::msg::VideoFile

source ·
pub struct VideoFile {
Show 24 fields pub file_uuid: Option<Vec<u8>>, pub file_md5: Option<Vec<u8>>, pub file_name: Option<String>, pub file_format: Option<i32>, pub file_time: Option<i32>, pub file_size: Option<i32>, pub thumb_width: Option<i32>, pub thumb_height: Option<i32>, pub thumb_file_md5: Option<Vec<u8>>, pub source: Option<Vec<u8>>, pub thumb_file_size: Option<i32>, pub busi_type: Option<i32>, pub from_chat_type: Option<i32>, pub to_chat_type: Option<i32>, pub bool_support_progressive: Option<bool>, pub file_width: Option<i32>, pub file_height: Option<i32>, pub sub_busi_type: Option<i32>, pub video_attr: Option<i32>, pub bytes_thumb_file_urls: Vec<Vec<u8>>, pub bytes_video_file_urls: Vec<Vec<u8>>, pub thumb_download_flag: Option<i32>, pub video_download_flag: Option<i32>, pub pb_reserve: Option<Vec<u8>>,
}

Fields§

§file_uuid: Option<Vec<u8>>§file_md5: Option<Vec<u8>>§file_name: Option<String>§file_format: Option<i32>§file_time: Option<i32>§file_size: Option<i32>§thumb_width: Option<i32>§thumb_height: Option<i32>§thumb_file_md5: Option<Vec<u8>>§source: Option<Vec<u8>>§thumb_file_size: Option<i32>§busi_type: Option<i32>§from_chat_type: Option<i32>§to_chat_type: Option<i32>§bool_support_progressive: Option<bool>§file_width: Option<i32>§file_height: Option<i32>§sub_busi_type: Option<i32>§video_attr: Option<i32>§bytes_thumb_file_urls: Vec<Vec<u8>>§bytes_video_file_urls: Vec<Vec<u8>>§thumb_download_flag: Option<i32>§video_download_flag: Option<i32>§pb_reserve: Option<Vec<u8>>

Implementations§

Returns the value of file_uuid, or the default value if file_uuid is unset.

Returns the value of file_md5, or the default value if file_md5 is unset.

Returns the value of file_name, or the default value if file_name is unset.

Returns the value of file_format, or the default value if file_format is unset.

Returns the value of file_time, or the default value if file_time is unset.

Returns the value of file_size, or the default value if file_size is unset.

Returns the value of thumb_width, or the default value if thumb_width is unset.

Returns the value of thumb_height, or the default value if thumb_height is unset.

Returns the value of thumb_file_md5, or the default value if thumb_file_md5 is unset.

Returns the value of source, or the default value if source is unset.

Returns the value of thumb_file_size, or the default value if thumb_file_size is unset.

Returns the value of busi_type, or the default value if busi_type is unset.

Returns the value of from_chat_type, or the default value if from_chat_type is unset.

Returns the value of to_chat_type, or the default value if to_chat_type is unset.

Returns the value of bool_support_progressive, or the default value if bool_support_progressive is unset.

Returns the value of file_width, or the default value if file_width is unset.

Returns the value of file_height, or the default value if file_height is unset.

Returns the value of sub_busi_type, or the default value if sub_busi_type is unset.

Returns the value of video_attr, or the default value if video_attr is unset.

Returns the value of thumb_download_flag, or the default value if thumb_download_flag is unset.

Returns the value of video_download_flag, or the default value if video_download_flag is unset.

Returns the value of pb_reserve, or the default value if pb_reserve is unset.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Returns the encoded length of the message without a length delimiter.
Clears the message, resetting all fields to their default.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self. Read more
Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.