pub struct InputProfilePhotoAnimated { /* private fields */ }Expand description
An animated profile photo in the MPEG4 format.
Implementations§
Source§impl InputProfilePhotoAnimated
impl InputProfilePhotoAnimated
Sourcepub fn new<T>(animation: T) -> Self
pub fn new<T>(animation: T) -> Self
Creates a new InputProfilePhotoAnimated.
§Arguments
animation- The animated profile photo; profile photos can’t be reused and can only be uploaded as a new file.
Sourcepub fn with_main_frame_timestamp(self, value: Float) -> Self
pub fn with_main_frame_timestamp(self, value: Float) -> Self
Sets a new main frame timestamp.
§Arguments
value- Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.
Trait Implementations§
Source§impl Debug for InputProfilePhotoAnimated
impl Debug for InputProfilePhotoAnimated
Source§impl From<InputProfilePhotoAnimated> for InputProfilePhoto
impl From<InputProfilePhotoAnimated> for InputProfilePhoto
Source§fn from(value: InputProfilePhotoAnimated) -> Self
fn from(value: InputProfilePhotoAnimated) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputProfilePhotoAnimated
impl !RefUnwindSafe for InputProfilePhotoAnimated
impl Send for InputProfilePhotoAnimated
impl Sync for InputProfilePhotoAnimated
impl Unpin for InputProfilePhotoAnimated
impl UnsafeUnpin for InputProfilePhotoAnimated
impl !UnwindSafe for InputProfilePhotoAnimated
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