pub struct ChatBoost {
pub id: String,
pub count: i32,
pub source: ChatBoostSource,
pub start_date: i32,
pub expiration_date: i32,
}
Expand description
Describes a boost applied to a chat
Fields§
§id: String
Unique identifier of the boost
count: i32
The number of identical boosts applied
source: ChatBoostSource
Source of the boost
start_date: i32
Point in time (Unix timestamp) when the chat was boosted
expiration_date: i32
Point in time (Unix timestamp) when the boost will expire
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatBoost
impl<'de> Deserialize<'de> for ChatBoost
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 ChatBoost
Auto Trait Implementations§
impl Freeze for ChatBoost
impl RefUnwindSafe for ChatBoost
impl Send for ChatBoost
impl Sync for ChatBoost
impl Unpin for ChatBoost
impl UnwindSafe for ChatBoost
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