pub struct UpdateSpeechRecognitionTrial {
pub max_media_duration: i32,
pub weekly_count: i32,
pub left_count: i32,
pub next_reset_date: i32,
}
Expand description
The parameters of speech recognition without Telegram Premium subscription has changed
Fields§
§max_media_duration: i32
The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds
weekly_count: i32
The total number of allowed speech recognitions per week; 0 if none
left_count: i32
Number of left speech recognition attempts this week
next_reset_date: i32
Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown
Trait Implementations§
Source§impl Clone for UpdateSpeechRecognitionTrial
impl Clone for UpdateSpeechRecognitionTrial
Source§fn clone(&self) -> UpdateSpeechRecognitionTrial
fn clone(&self) -> UpdateSpeechRecognitionTrial
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 UpdateSpeechRecognitionTrial
impl Debug for UpdateSpeechRecognitionTrial
Source§impl Default for UpdateSpeechRecognitionTrial
impl Default for UpdateSpeechRecognitionTrial
Source§fn default() -> UpdateSpeechRecognitionTrial
fn default() -> UpdateSpeechRecognitionTrial
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSpeechRecognitionTrial
impl<'de> Deserialize<'de> for UpdateSpeechRecognitionTrial
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
Source§impl PartialEq for UpdateSpeechRecognitionTrial
impl PartialEq for UpdateSpeechRecognitionTrial
Source§fn eq(&self, other: &UpdateSpeechRecognitionTrial) -> bool
fn eq(&self, other: &UpdateSpeechRecognitionTrial) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateSpeechRecognitionTrial
Auto Trait Implementations§
impl Freeze for UpdateSpeechRecognitionTrial
impl RefUnwindSafe for UpdateSpeechRecognitionTrial
impl Send for UpdateSpeechRecognitionTrial
impl Sync for UpdateSpeechRecognitionTrial
impl Unpin for UpdateSpeechRecognitionTrial
impl UnwindSafe for UpdateSpeechRecognitionTrial
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