Enum rtdlib::types::ChatSource [−][src]
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
The chat is sponsored by the user’s MTProxy server
Tuple Fields of MtprotoProxy
The chat contains a public service announcement
Tuple Fields of PublicServiceAnnouncement
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.
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