pub struct ChatBoostRemovedBuilder {
pub chat: BoxWrapper<Unbox<Chat>>,
pub boost_id: String,
pub remove_date: i64,
pub source: BoxWrapper<Unbox<ChatBoostSource>>,
}Expand description
This object represents a boost removed from a chat.
Fields§
§chat: BoxWrapper<Unbox<Chat>>Chat which was boosted
boost_id: StringUnique identifier of the boost
remove_date: i64Point in time (Unix timestamp) when the boost was removed
source: BoxWrapper<Unbox<ChatBoostSource>>Source of the removed boost
Implementations§
Source§impl ChatBoostRemovedBuilder
impl ChatBoostRemovedBuilder
pub fn new<A: Into<Chat>, B: Into<ChatBoostSource>>( chat: A, boost_id: String, remove_date: i64, source: B, ) -> Self
Sourcepub fn set_boost_id(self, boost_id: String) -> Self
pub fn set_boost_id(self, boost_id: String) -> Self
Unique identifier of the boost
Sourcepub fn set_remove_date(self, remove_date: i64) -> Self
pub fn set_remove_date(self, remove_date: i64) -> Self
Point in time (Unix timestamp) when the boost was removed
Sourcepub fn set_source(self, source: ChatBoostSource) -> Self
pub fn set_source(self, source: ChatBoostSource) -> Self
Source of the removed boost
pub fn build(self) -> ChatBoostRemoved
Trait Implementations§
Source§impl Clone for ChatBoostRemovedBuilder
impl Clone for ChatBoostRemovedBuilder
Source§fn clone(&self) -> ChatBoostRemovedBuilder
fn clone(&self) -> ChatBoostRemovedBuilder
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 ChatBoostRemovedBuilder
impl Debug for ChatBoostRemovedBuilder
Source§impl Default for ChatBoostRemovedBuilder
impl Default for ChatBoostRemovedBuilder
Source§fn default() -> ChatBoostRemovedBuilder
fn default() -> ChatBoostRemovedBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatBoostRemovedBuilder
impl<'de> Deserialize<'de> for ChatBoostRemovedBuilder
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 Hash for ChatBoostRemovedBuilder
impl Hash for ChatBoostRemovedBuilder
Source§impl Ord for ChatBoostRemovedBuilder
impl Ord for ChatBoostRemovedBuilder
Source§fn cmp(&self, other: &ChatBoostRemovedBuilder) -> Ordering
fn cmp(&self, other: &ChatBoostRemovedBuilder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChatBoostRemovedBuilder
impl PartialEq for ChatBoostRemovedBuilder
Source§impl PartialOrd for ChatBoostRemovedBuilder
impl PartialOrd for ChatBoostRemovedBuilder
Source§impl Serialize for ChatBoostRemovedBuilder
impl Serialize for ChatBoostRemovedBuilder
impl Eq for ChatBoostRemovedBuilder
impl StructuralPartialEq for ChatBoostRemovedBuilder
Auto Trait Implementations§
impl Freeze for ChatBoostRemovedBuilder
impl RefUnwindSafe for ChatBoostRemovedBuilder
impl Send for ChatBoostRemovedBuilder
impl Sync for ChatBoostRemovedBuilder
impl Unpin for ChatBoostRemovedBuilder
impl UnsafeUnpin for ChatBoostRemovedBuilder
impl UnwindSafe for ChatBoostRemovedBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.