pub struct ShowLoadingAnimationRequest {
pub chat_id: String,
pub loading_seconds: Option<i32>,
}
Fields§
§chat_id: String
User ID of the target user for whom the loading animation is to be displayed.
loading_seconds: Option<i32>
The number of seconds to display the loading indicator. It must be a multiple of 5. The maximum value is 60 seconds.
Implementations§
Source§impl ShowLoadingAnimationRequest
impl ShowLoadingAnimationRequest
pub fn new(chat_id: String) -> ShowLoadingAnimationRequest
Trait Implementations§
Source§impl Clone for ShowLoadingAnimationRequest
impl Clone for ShowLoadingAnimationRequest
Source§fn clone(&self) -> ShowLoadingAnimationRequest
fn clone(&self) -> ShowLoadingAnimationRequest
Returns a copy 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 ShowLoadingAnimationRequest
impl Debug for ShowLoadingAnimationRequest
Source§impl Default for ShowLoadingAnimationRequest
impl Default for ShowLoadingAnimationRequest
Source§fn default() -> ShowLoadingAnimationRequest
fn default() -> ShowLoadingAnimationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShowLoadingAnimationRequest
impl<'de> Deserialize<'de> for ShowLoadingAnimationRequest
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 ShowLoadingAnimationRequest
Auto Trait Implementations§
impl Freeze for ShowLoadingAnimationRequest
impl RefUnwindSafe for ShowLoadingAnimationRequest
impl Send for ShowLoadingAnimationRequest
impl Sync for ShowLoadingAnimationRequest
impl Unpin for ShowLoadingAnimationRequest
impl UnwindSafe for ShowLoadingAnimationRequest
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