pub struct ChatBoostSlot {
pub slot_id: i32,
pub currently_boosted_chat_id: i64,
pub start_date: i32,
pub expiration_date: i32,
pub cooldown_until_date: i32,
}
Expand description
Describes a slot for chat boost
Fields§
§slot_id: i32
Unique identifier of the slot
currently_boosted_chat_id: i64
Identifier of the currently boosted chat; 0 if none
start_date: i32
Point in time (Unix timestamp) when the chat was boosted; 0 if none
expiration_date: i32
Point in time (Unix timestamp) when the boost will expire
cooldown_until_date: i32
Point in time (Unix timestamp) after which the boost can be used for another chat
Trait Implementations§
Source§impl Clone for ChatBoostSlot
impl Clone for ChatBoostSlot
Source§fn clone(&self) -> ChatBoostSlot
fn clone(&self) -> ChatBoostSlot
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 ChatBoostSlot
impl Debug for ChatBoostSlot
Source§impl Default for ChatBoostSlot
impl Default for ChatBoostSlot
Source§fn default() -> ChatBoostSlot
fn default() -> ChatBoostSlot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatBoostSlot
impl<'de> Deserialize<'de> for ChatBoostSlot
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 ChatBoostSlot
impl PartialEq for ChatBoostSlot
Source§impl Serialize for ChatBoostSlot
impl Serialize for ChatBoostSlot
impl StructuralPartialEq for ChatBoostSlot
Auto Trait Implementations§
impl Freeze for ChatBoostSlot
impl RefUnwindSafe for ChatBoostSlot
impl Send for ChatBoostSlot
impl Sync for ChatBoostSlot
impl Unpin for ChatBoostSlot
impl UnwindSafe for ChatBoostSlot
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