Enum rtdlib::types::ChatSource
source · [−]pub enum ChatSource {
MtprotoProxy(ChatSourceMtprotoProxy),
PublicServiceAnnouncement(ChatSourcePublicServiceAnnouncement),
// some variants omitted
}
Expand description
Describes a reason why an external chat is shown in a chat list
Variants
MtprotoProxy(ChatSourceMtprotoProxy)
The chat is sponsored by the user’s MTProxy server
PublicServiceAnnouncement(ChatSourcePublicServiceAnnouncement)
The chat contains a public service announcement
Implementations
pub fn on_public_service_announcement<F: FnOnce(&ChatSourcePublicServiceAnnouncement)>(
&self,
fnc: F
) -> &Self
pub fn public_service_announcement<T: AsRef<ChatSourcePublicServiceAnnouncement>>(
t: T
) -> Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<ChatSource, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ChatSource, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChatSource
impl Send for ChatSource
impl Sync for ChatSource
impl Unpin for ChatSource
impl UnwindSafe for ChatSource
Blanket Implementations
Mutably borrows from an owned value. Read more