pub struct InputProfilePhotoAnimatedBuilder {
pub tg_type: String,
pub animation: String,
pub main_frame_timestamp: Option<OrderedFloat<f64>>,
}Expand description
An animated profile photo in the MPEG4 format.
Fields§
§tg_type: StringType of the profile photo, must be animated
animation: StringThe animated profile photo. Profile photos can’t be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the photo was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files: https://core.telegram.org/bots/api#sending-files
main_frame_timestamp: Option<OrderedFloat<f64>>Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.
Implementations§
Source§impl InputProfilePhotoAnimatedBuilder
impl InputProfilePhotoAnimatedBuilder
pub fn new(animation: String) -> Self
Sourcepub fn set_animation(self, animation: String) -> Self
pub fn set_animation(self, animation: String) -> Self
The animated profile photo. Profile photos can’t be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the photo was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files: https://core.telegram.org/bots/api#sending-files
Sourcepub fn set_main_frame_timestamp(
self,
main_frame_timestamp: OrderedFloat<f64>,
) -> Self
pub fn set_main_frame_timestamp( self, main_frame_timestamp: OrderedFloat<f64>, ) -> Self
Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.
pub fn build(self) -> InputProfilePhotoAnimated
Trait Implementations§
Source§impl Clone for InputProfilePhotoAnimatedBuilder
impl Clone for InputProfilePhotoAnimatedBuilder
Source§fn clone(&self) -> InputProfilePhotoAnimatedBuilder
fn clone(&self) -> InputProfilePhotoAnimatedBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InputProfilePhotoAnimatedBuilder
impl Default for InputProfilePhotoAnimatedBuilder
Source§fn default() -> InputProfilePhotoAnimatedBuilder
fn default() -> InputProfilePhotoAnimatedBuilder
Source§impl<'de> Deserialize<'de> for InputProfilePhotoAnimatedBuilder
impl<'de> Deserialize<'de> for InputProfilePhotoAnimatedBuilder
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>,
Source§impl Ord for InputProfilePhotoAnimatedBuilder
impl Ord for InputProfilePhotoAnimatedBuilder
Source§fn cmp(&self, other: &InputProfilePhotoAnimatedBuilder) -> Ordering
fn cmp(&self, other: &InputProfilePhotoAnimatedBuilder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for InputProfilePhotoAnimatedBuilder
impl PartialEq for InputProfilePhotoAnimatedBuilder
Source§fn eq(&self, other: &InputProfilePhotoAnimatedBuilder) -> bool
fn eq(&self, other: &InputProfilePhotoAnimatedBuilder) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InputProfilePhotoAnimatedBuilder
impl PartialOrd for InputProfilePhotoAnimatedBuilder
impl Eq for InputProfilePhotoAnimatedBuilder
impl StructuralPartialEq for InputProfilePhotoAnimatedBuilder
Auto Trait Implementations§
impl Freeze for InputProfilePhotoAnimatedBuilder
impl RefUnwindSafe for InputProfilePhotoAnimatedBuilder
impl Send for InputProfilePhotoAnimatedBuilder
impl Sync for InputProfilePhotoAnimatedBuilder
impl Unpin for InputProfilePhotoAnimatedBuilder
impl UnsafeUnpin for InputProfilePhotoAnimatedBuilder
impl UnwindSafe for InputProfilePhotoAnimatedBuilder
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
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
key and return true if they are equal.