pub struct SponsoredChat {
pub unique_id: i64,
pub chat_id: i64,
pub sponsor_info: String,
pub additional_info: String,
}Expand description
Describes a sponsored chat
Fields§
§unique_id: i64Unique identifier of this result
chat_id: i64Chat identifier
sponsor_info: StringAdditional optional information about the sponsor to be shown along with the chat
additional_info: StringIf non-empty, additional information about the sponsored chat to be shown along with the chat
Trait Implementations§
Source§impl Clone for SponsoredChat
impl Clone for SponsoredChat
Source§fn clone(&self) -> SponsoredChat
fn clone(&self) -> SponsoredChat
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 SponsoredChat
impl Debug for SponsoredChat
Source§impl Default for SponsoredChat
impl Default for SponsoredChat
Source§fn default() -> SponsoredChat
fn default() -> SponsoredChat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SponsoredChat
impl<'de> Deserialize<'de> for SponsoredChat
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 SponsoredChat
impl PartialEq for SponsoredChat
Source§impl Serialize for SponsoredChat
impl Serialize for SponsoredChat
impl StructuralPartialEq for SponsoredChat
Auto Trait Implementations§
impl Freeze for SponsoredChat
impl RefUnwindSafe for SponsoredChat
impl Send for SponsoredChat
impl Sync for SponsoredChat
impl Unpin for SponsoredChat
impl UnsafeUnpin for SponsoredChat
impl UnwindSafe for SponsoredChat
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