Struct rust_tdlib::types::GetChatSponsoredMessage
source · pub struct GetChatSponsoredMessage { /* private fields */ }
Expand description
Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat
Implementations§
Trait Implementations§
source§impl AsRef<GetChatSponsoredMessage> for GetChatSponsoredMessage
impl AsRef<GetChatSponsoredMessage> for GetChatSponsoredMessage
source§fn as_ref(&self) -> &GetChatSponsoredMessage
fn as_ref(&self) -> &GetChatSponsoredMessage
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for GetChatSponsoredMessage
impl Clone for GetChatSponsoredMessage
source§fn clone(&self) -> GetChatSponsoredMessage
fn clone(&self) -> GetChatSponsoredMessage
Returns a copy 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 GetChatSponsoredMessage
impl Debug for GetChatSponsoredMessage
source§impl Default for GetChatSponsoredMessage
impl Default for GetChatSponsoredMessage
source§fn default() -> GetChatSponsoredMessage
fn default() -> GetChatSponsoredMessage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetChatSponsoredMessage
impl<'de> Deserialize<'de> for GetChatSponsoredMessage
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