Skip to main content

MessageAction

Enum MessageAction 

Source
pub enum MessageAction {
Show 64 variants Empty, ChatCreate(MessageActionChatCreate), ChatEditTitle(MessageActionChatEditTitle), ChatEditPhoto(MessageActionChatEditPhoto), ChatDeletePhoto, ChatAddUser(MessageActionChatAddUser), ChatDeleteUser(MessageActionChatDeleteUser), ChatJoinedByLink(MessageActionChatJoinedByLink), ChannelCreate(MessageActionChannelCreate), ChatMigrateTo(MessageActionChatMigrateTo), ChannelMigrateFrom(MessageActionChannelMigrateFrom), PinMessage, HistoryClear, GameScore(MessageActionGameScore), PaymentSentMe(MessageActionPaymentSentMe), PaymentSent(MessageActionPaymentSent), PhoneCall(MessageActionPhoneCall), ScreenshotTaken, CustomAction(MessageActionCustomAction), BotAllowed(MessageActionBotAllowed), SecureValuesSentMe(MessageActionSecureValuesSentMe), SecureValuesSent(MessageActionSecureValuesSent), ContactSignUp, GeoProximityReached(MessageActionGeoProximityReached), GroupCall(MessageActionGroupCall), InviteToGroupCall(MessageActionInviteToGroupCall), SetMessagesTtl(MessageActionSetMessagesTtl), GroupCallScheduled(MessageActionGroupCallScheduled), SetChatTheme(MessageActionSetChatTheme), ChatJoinedByRequest, WebViewDataSentMe(MessageActionWebViewDataSentMe), WebViewDataSent(MessageActionWebViewDataSent), GiftPremium(MessageActionGiftPremium), TopicCreate(MessageActionTopicCreate), TopicEdit(MessageActionTopicEdit), SuggestProfilePhoto(MessageActionSuggestProfilePhoto), RequestedPeer(MessageActionRequestedPeer), SetChatWallPaper(MessageActionSetChatWallPaper), GiftCode(MessageActionGiftCode), GiveawayLaunch(MessageActionGiveawayLaunch), GiveawayResults(MessageActionGiveawayResults), BoostApply(MessageActionBoostApply), RequestedPeerSentMe(MessageActionRequestedPeerSentMe), PaymentRefunded(MessageActionPaymentRefunded), GiftStars(MessageActionGiftStars), PrizeStars(MessageActionPrizeStars), StarGift(MessageActionStarGift), StarGiftUnique(MessageActionStarGiftUnique), PaidMessagesRefunded(MessageActionPaidMessagesRefunded), PaidMessagesPrice(MessageActionPaidMessagesPrice), ConferenceCall(MessageActionConferenceCall), TodoCompletions(MessageActionTodoCompletions), TodoAppendTasks(MessageActionTodoAppendTasks), SuggestedPostApproval(MessageActionSuggestedPostApproval), SuggestedPostSuccess(MessageActionSuggestedPostSuccess), SuggestedPostRefund(MessageActionSuggestedPostRefund), GiftTon(MessageActionGiftTon), SuggestBirthday(MessageActionSuggestBirthday), StarGiftPurchaseOffer(MessageActionStarGiftPurchaseOffer), StarGiftPurchaseOfferDeclined(MessageActionStarGiftPurchaseOfferDeclined), NewCreatorPending(MessageActionNewCreatorPending), ChangeCreator(MessageActionChangeCreator), NoForwardsToggle(MessageActionNoForwardsToggle), NoForwardsRequest(MessageActionNoForwardsRequest),
}
Expand description

Variants§

§

Empty

§

ChatCreate(MessageActionChatCreate)

§

ChatEditTitle(MessageActionChatEditTitle)

§

ChatEditPhoto(MessageActionChatEditPhoto)

§

ChatDeletePhoto

§

ChatAddUser(MessageActionChatAddUser)

§

ChatDeleteUser(MessageActionChatDeleteUser)

§

ChannelCreate(MessageActionChannelCreate)

§

ChatMigrateTo(MessageActionChatMigrateTo)

§

ChannelMigrateFrom(MessageActionChannelMigrateFrom)

§

PinMessage

§

HistoryClear

§

GameScore(MessageActionGameScore)

§

PaymentSentMe(MessageActionPaymentSentMe)

§

PaymentSent(MessageActionPaymentSent)

§

PhoneCall(MessageActionPhoneCall)

§

ScreenshotTaken

§

CustomAction(MessageActionCustomAction)

§

BotAllowed(MessageActionBotAllowed)

§

SecureValuesSentMe(MessageActionSecureValuesSentMe)

§

SecureValuesSent(MessageActionSecureValuesSent)

§

ContactSignUp

§

GeoProximityReached(MessageActionGeoProximityReached)

§

GroupCall(MessageActionGroupCall)

§

InviteToGroupCall(MessageActionInviteToGroupCall)

§

SetMessagesTtl(MessageActionSetMessagesTtl)

§

GroupCallScheduled(MessageActionGroupCallScheduled)

§

SetChatTheme(MessageActionSetChatTheme)

§

ChatJoinedByRequest

§

WebViewDataSentMe(MessageActionWebViewDataSentMe)

§

WebViewDataSent(MessageActionWebViewDataSent)

§

GiftPremium(MessageActionGiftPremium)

§

TopicCreate(MessageActionTopicCreate)

§

TopicEdit(MessageActionTopicEdit)

§

SuggestProfilePhoto(MessageActionSuggestProfilePhoto)

§

RequestedPeer(MessageActionRequestedPeer)

§

SetChatWallPaper(MessageActionSetChatWallPaper)

§

GiftCode(MessageActionGiftCode)

§

GiveawayLaunch(MessageActionGiveawayLaunch)

§

GiveawayResults(MessageActionGiveawayResults)

§

BoostApply(MessageActionBoostApply)

§

RequestedPeerSentMe(MessageActionRequestedPeerSentMe)

§

PaymentRefunded(MessageActionPaymentRefunded)

§

GiftStars(MessageActionGiftStars)

§

PrizeStars(MessageActionPrizeStars)

§

StarGift(MessageActionStarGift)

§

StarGiftUnique(MessageActionStarGiftUnique)

§

PaidMessagesRefunded(MessageActionPaidMessagesRefunded)

§

PaidMessagesPrice(MessageActionPaidMessagesPrice)

§

ConferenceCall(MessageActionConferenceCall)

§

TodoCompletions(MessageActionTodoCompletions)

§

TodoAppendTasks(MessageActionTodoAppendTasks)

§

SuggestedPostApproval(MessageActionSuggestedPostApproval)

§

SuggestedPostSuccess(MessageActionSuggestedPostSuccess)

§

SuggestedPostRefund(MessageActionSuggestedPostRefund)

§

GiftTon(MessageActionGiftTon)

§

SuggestBirthday(MessageActionSuggestBirthday)

§

StarGiftPurchaseOffer(MessageActionStarGiftPurchaseOffer)

§

StarGiftPurchaseOfferDeclined(MessageActionStarGiftPurchaseOfferDeclined)

§

NewCreatorPending(MessageActionNewCreatorPending)

§

ChangeCreator(MessageActionChangeCreator)

§

NoForwardsToggle(MessageActionNoForwardsToggle)

§

NoForwardsRequest(MessageActionNoForwardsRequest)

Trait Implementations§

Source§

impl Clone for MessageAction

Source§

fn clone(&self) -> MessageAction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MessageAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserializable for MessageAction

Source§

fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>

Read Self from buf, advancing its position.
Source§

fn from_bytes(bytes: &[u8]) -> Result<Self>

Convenience: deserialize from a byte slice.
Source§

impl From<MessageActionBoostApply> for MessageAction

Source§

fn from(x: MessageActionBoostApply) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionBotAllowed> for MessageAction

Source§

fn from(x: MessageActionBotAllowed) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChangeCreator> for MessageAction

Source§

fn from(x: MessageActionChangeCreator) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChannelCreate> for MessageAction

Source§

fn from(x: MessageActionChannelCreate) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChannelMigrateFrom> for MessageAction

Source§

fn from(x: MessageActionChannelMigrateFrom) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatAddUser> for MessageAction

Source§

fn from(x: MessageActionChatAddUser) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatCreate> for MessageAction

Source§

fn from(x: MessageActionChatCreate) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatDeletePhoto> for MessageAction

Source§

fn from(_x: MessageActionChatDeletePhoto) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatDeleteUser> for MessageAction

Source§

fn from(x: MessageActionChatDeleteUser) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatEditPhoto> for MessageAction

Source§

fn from(x: MessageActionChatEditPhoto) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatEditTitle> for MessageAction

Source§

fn from(x: MessageActionChatEditTitle) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatJoinedByLink> for MessageAction

Source§

fn from(x: MessageActionChatJoinedByLink) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatJoinedByRequest> for MessageAction

Source§

fn from(_x: MessageActionChatJoinedByRequest) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionChatMigrateTo> for MessageAction

Source§

fn from(x: MessageActionChatMigrateTo) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionConferenceCall> for MessageAction

Source§

fn from(x: MessageActionConferenceCall) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionContactSignUp> for MessageAction

Source§

fn from(_x: MessageActionContactSignUp) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionCustomAction> for MessageAction

Source§

fn from(x: MessageActionCustomAction) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionEmpty> for MessageAction

Source§

fn from(_x: MessageActionEmpty) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGameScore> for MessageAction

Source§

fn from(x: MessageActionGameScore) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGeoProximityReached> for MessageAction

Source§

fn from(x: MessageActionGeoProximityReached) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGiftCode> for MessageAction

Source§

fn from(x: MessageActionGiftCode) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGiftPremium> for MessageAction

Source§

fn from(x: MessageActionGiftPremium) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGiftStars> for MessageAction

Source§

fn from(x: MessageActionGiftStars) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGiftTon> for MessageAction

Source§

fn from(x: MessageActionGiftTon) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGiveawayLaunch> for MessageAction

Source§

fn from(x: MessageActionGiveawayLaunch) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGiveawayResults> for MessageAction

Source§

fn from(x: MessageActionGiveawayResults) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGroupCall> for MessageAction

Source§

fn from(x: MessageActionGroupCall) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionGroupCallScheduled> for MessageAction

Source§

fn from(x: MessageActionGroupCallScheduled) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionHistoryClear> for MessageAction

Source§

fn from(_x: MessageActionHistoryClear) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionInviteToGroupCall> for MessageAction

Source§

fn from(x: MessageActionInviteToGroupCall) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionNewCreatorPending> for MessageAction

Source§

fn from(x: MessageActionNewCreatorPending) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionNoForwardsRequest> for MessageAction

Source§

fn from(x: MessageActionNoForwardsRequest) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionNoForwardsToggle> for MessageAction

Source§

fn from(x: MessageActionNoForwardsToggle) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPaidMessagesPrice> for MessageAction

Source§

fn from(x: MessageActionPaidMessagesPrice) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPaidMessagesRefunded> for MessageAction

Source§

fn from(x: MessageActionPaidMessagesRefunded) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPaymentRefunded> for MessageAction

Source§

fn from(x: MessageActionPaymentRefunded) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPaymentSent> for MessageAction

Source§

fn from(x: MessageActionPaymentSent) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPaymentSentMe> for MessageAction

Source§

fn from(x: MessageActionPaymentSentMe) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPhoneCall> for MessageAction

Source§

fn from(x: MessageActionPhoneCall) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPinMessage> for MessageAction

Source§

fn from(_x: MessageActionPinMessage) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionPrizeStars> for MessageAction

Source§

fn from(x: MessageActionPrizeStars) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionRequestedPeer> for MessageAction

Source§

fn from(x: MessageActionRequestedPeer) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionRequestedPeerSentMe> for MessageAction

Source§

fn from(x: MessageActionRequestedPeerSentMe) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionScreenshotTaken> for MessageAction

Source§

fn from(_x: MessageActionScreenshotTaken) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSecureValuesSent> for MessageAction

Source§

fn from(x: MessageActionSecureValuesSent) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSecureValuesSentMe> for MessageAction

Source§

fn from(x: MessageActionSecureValuesSentMe) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSetChatTheme> for MessageAction

Source§

fn from(x: MessageActionSetChatTheme) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSetChatWallPaper> for MessageAction

Source§

fn from(x: MessageActionSetChatWallPaper) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSetMessagesTtl> for MessageAction

Source§

fn from(x: MessageActionSetMessagesTtl) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionStarGift> for MessageAction

Source§

fn from(x: MessageActionStarGift) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionStarGiftPurchaseOffer> for MessageAction

Source§

fn from(x: MessageActionStarGiftPurchaseOffer) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionStarGiftPurchaseOfferDeclined> for MessageAction

Source§

fn from(x: MessageActionStarGiftPurchaseOfferDeclined) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionStarGiftUnique> for MessageAction

Source§

fn from(x: MessageActionStarGiftUnique) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSuggestBirthday> for MessageAction

Source§

fn from(x: MessageActionSuggestBirthday) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSuggestProfilePhoto> for MessageAction

Source§

fn from(x: MessageActionSuggestProfilePhoto) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSuggestedPostApproval> for MessageAction

Source§

fn from(x: MessageActionSuggestedPostApproval) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSuggestedPostRefund> for MessageAction

Source§

fn from(x: MessageActionSuggestedPostRefund) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionSuggestedPostSuccess> for MessageAction

Source§

fn from(x: MessageActionSuggestedPostSuccess) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionTodoAppendTasks> for MessageAction

Source§

fn from(x: MessageActionTodoAppendTasks) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionTodoCompletions> for MessageAction

Source§

fn from(x: MessageActionTodoCompletions) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionTopicCreate> for MessageAction

Source§

fn from(x: MessageActionTopicCreate) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionTopicEdit> for MessageAction

Source§

fn from(x: MessageActionTopicEdit) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionWebViewDataSent> for MessageAction

Source§

fn from(x: MessageActionWebViewDataSent) -> Self

Converts to this type from the input type.
Source§

impl From<MessageActionWebViewDataSentMe> for MessageAction

Source§

fn from(x: MessageActionWebViewDataSentMe) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MessageAction

Source§

fn eq(&self, other: &MessageAction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serializable for MessageAction

Source§

fn serialize(&self, buf: &mut impl Extend<u8>)

Appends the serialized form of self to buf.
Source§

fn to_bytes(&self) -> Vec<u8>

Convenience: allocate a fresh Vec<u8> and serialize into it.
Source§

impl TryFrom<MessageAction> for MessageActionBoostApply

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionBotAllowed

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChangeCreator

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChannelCreate

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChannelMigrateFrom

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChatAddUser

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChatCreate

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChatDeleteUser

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChatEditPhoto

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChatEditTitle

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionChatMigrateTo

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionConferenceCall

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionCustomAction

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGameScore

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGeoProximityReached

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGiftCode

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGiftPremium

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGiftStars

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGiftTon

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGiveawayLaunch

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGiveawayResults

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGroupCall

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionGroupCallScheduled

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionInviteToGroupCall

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionNewCreatorPending

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionNoForwardsRequest

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionNoForwardsToggle

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPaidMessagesPrice

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPaidMessagesRefunded

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPaymentRefunded

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPaymentSent

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPaymentSentMe

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPhoneCall

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionPrizeStars

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionRequestedPeer

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionRequestedPeerSentMe

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSecureValuesSent

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSecureValuesSentMe

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSetChatTheme

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSetChatWallPaper

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSetMessagesTtl

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionStarGift

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionStarGiftPurchaseOffer

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionStarGiftPurchaseOfferDeclined

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionStarGiftUnique

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSuggestBirthday

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSuggestProfilePhoto

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSuggestedPostApproval

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSuggestedPostRefund

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionSuggestedPostSuccess

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionTodoAppendTasks

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionTodoCompletions

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionTopicCreate

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionTopicEdit

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionWebViewDataSent

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MessageAction> for MessageActionWebViewDataSentMe

Source§

type Error = MessageAction

The type returned in the event of a conversion error.
Source§

fn try_from(v: MessageAction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for MessageAction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.