Skip to main content

ChannelAdminLogEventAction

Enum ChannelAdminLogEventAction 

Source
pub enum ChannelAdminLogEventAction {
Show 52 variants ChangeTitle(ChannelAdminLogEventActionChangeTitle), ChangeAbout(ChannelAdminLogEventActionChangeAbout), ChangeUsername(ChannelAdminLogEventActionChangeUsername), ChangePhoto(ChannelAdminLogEventActionChangePhoto), ToggleInvites(ChannelAdminLogEventActionToggleInvites), ToggleSignatures(ChannelAdminLogEventActionToggleSignatures), UpdatePinned(ChannelAdminLogEventActionUpdatePinned), EditMessage(ChannelAdminLogEventActionEditMessage), DeleteMessage(ChannelAdminLogEventActionDeleteMessage), ParticipantJoin, ParticipantLeave, ParticipantInvite(ChannelAdminLogEventActionParticipantInvite), ParticipantToggleBan(ChannelAdminLogEventActionParticipantToggleBan), ParticipantToggleAdmin(ChannelAdminLogEventActionParticipantToggleAdmin), ChangeStickerSet(ChannelAdminLogEventActionChangeStickerSet), TogglePreHistoryHidden(ChannelAdminLogEventActionTogglePreHistoryHidden), DefaultBannedRights(ChannelAdminLogEventActionDefaultBannedRights), StopPoll(ChannelAdminLogEventActionStopPoll), ChangeLinkedChat(ChannelAdminLogEventActionChangeLinkedChat), ChangeLocation(ChannelAdminLogEventActionChangeLocation), ToggleSlowMode(ChannelAdminLogEventActionToggleSlowMode), StartGroupCall(ChannelAdminLogEventActionStartGroupCall), DiscardGroupCall(ChannelAdminLogEventActionDiscardGroupCall), ParticipantMute(ChannelAdminLogEventActionParticipantMute), ParticipantUnmute(ChannelAdminLogEventActionParticipantUnmute), ToggleGroupCallSetting(ChannelAdminLogEventActionToggleGroupCallSetting), ParticipantJoinByInvite(ChannelAdminLogEventActionParticipantJoinByInvite), ExportedInviteDelete(ChannelAdminLogEventActionExportedInviteDelete), ExportedInviteRevoke(ChannelAdminLogEventActionExportedInviteRevoke), ExportedInviteEdit(ChannelAdminLogEventActionExportedInviteEdit), ParticipantVolume(ChannelAdminLogEventActionParticipantVolume), ChangeHistoryTtl(ChannelAdminLogEventActionChangeHistoryTtl), ParticipantJoinByRequest(ChannelAdminLogEventActionParticipantJoinByRequest), ToggleNoForwards(ChannelAdminLogEventActionToggleNoForwards), SendMessage(ChannelAdminLogEventActionSendMessage), ChangeAvailableReactions(ChannelAdminLogEventActionChangeAvailableReactions), ChangeUsernames(ChannelAdminLogEventActionChangeUsernames), ToggleForum(ChannelAdminLogEventActionToggleForum), CreateTopic(ChannelAdminLogEventActionCreateTopic), EditTopic(ChannelAdminLogEventActionEditTopic), DeleteTopic(ChannelAdminLogEventActionDeleteTopic), PinTopic(ChannelAdminLogEventActionPinTopic), ToggleAntiSpam(ChannelAdminLogEventActionToggleAntiSpam), ChangePeerColor(ChannelAdminLogEventActionChangePeerColor), ChangeProfilePeerColor(ChannelAdminLogEventActionChangeProfilePeerColor), ChangeWallpaper(ChannelAdminLogEventActionChangeWallpaper), ChangeEmojiStatus(ChannelAdminLogEventActionChangeEmojiStatus), ChangeEmojiStickerSet(ChannelAdminLogEventActionChangeEmojiStickerSet), ToggleSignatureProfiles(ChannelAdminLogEventActionToggleSignatureProfiles), ParticipantSubExtend(ChannelAdminLogEventActionParticipantSubExtend), ToggleAutotranslation(ChannelAdminLogEventActionToggleAutotranslation), ParticipantEditRank(ChannelAdminLogEventActionParticipantEditRank),
}
Expand description

Variants§

§

ChangeTitle(ChannelAdminLogEventActionChangeTitle)

§

ChangeAbout(ChannelAdminLogEventActionChangeAbout)

§

ChangeUsername(ChannelAdminLogEventActionChangeUsername)

§

ChangePhoto(ChannelAdminLogEventActionChangePhoto)

§

ToggleInvites(ChannelAdminLogEventActionToggleInvites)

§

ToggleSignatures(ChannelAdminLogEventActionToggleSignatures)

§

UpdatePinned(ChannelAdminLogEventActionUpdatePinned)

§

EditMessage(ChannelAdminLogEventActionEditMessage)

§

DeleteMessage(ChannelAdminLogEventActionDeleteMessage)

§

ParticipantJoin

§

ParticipantLeave

§

ParticipantInvite(ChannelAdminLogEventActionParticipantInvite)

§

ParticipantToggleBan(ChannelAdminLogEventActionParticipantToggleBan)

§

ParticipantToggleAdmin(ChannelAdminLogEventActionParticipantToggleAdmin)

§

ChangeStickerSet(ChannelAdminLogEventActionChangeStickerSet)

§

TogglePreHistoryHidden(ChannelAdminLogEventActionTogglePreHistoryHidden)

§

DefaultBannedRights(ChannelAdminLogEventActionDefaultBannedRights)

§

StopPoll(ChannelAdminLogEventActionStopPoll)

§

ChangeLinkedChat(ChannelAdminLogEventActionChangeLinkedChat)

§

ChangeLocation(ChannelAdminLogEventActionChangeLocation)

§

ToggleSlowMode(ChannelAdminLogEventActionToggleSlowMode)

§

StartGroupCall(ChannelAdminLogEventActionStartGroupCall)

§

DiscardGroupCall(ChannelAdminLogEventActionDiscardGroupCall)

§

ParticipantMute(ChannelAdminLogEventActionParticipantMute)

§

ParticipantUnmute(ChannelAdminLogEventActionParticipantUnmute)

§

ToggleGroupCallSetting(ChannelAdminLogEventActionToggleGroupCallSetting)

§

ParticipantJoinByInvite(ChannelAdminLogEventActionParticipantJoinByInvite)

§

ExportedInviteDelete(ChannelAdminLogEventActionExportedInviteDelete)

§

ExportedInviteRevoke(ChannelAdminLogEventActionExportedInviteRevoke)

§

ExportedInviteEdit(ChannelAdminLogEventActionExportedInviteEdit)

§

ParticipantVolume(ChannelAdminLogEventActionParticipantVolume)

§

ChangeHistoryTtl(ChannelAdminLogEventActionChangeHistoryTtl)

§

ParticipantJoinByRequest(ChannelAdminLogEventActionParticipantJoinByRequest)

§

ToggleNoForwards(ChannelAdminLogEventActionToggleNoForwards)

§

SendMessage(ChannelAdminLogEventActionSendMessage)

§

ChangeAvailableReactions(ChannelAdminLogEventActionChangeAvailableReactions)

§

ChangeUsernames(ChannelAdminLogEventActionChangeUsernames)

§

ToggleForum(ChannelAdminLogEventActionToggleForum)

§

CreateTopic(ChannelAdminLogEventActionCreateTopic)

§

EditTopic(ChannelAdminLogEventActionEditTopic)

§

DeleteTopic(ChannelAdminLogEventActionDeleteTopic)

§

PinTopic(ChannelAdminLogEventActionPinTopic)

§

ToggleAntiSpam(ChannelAdminLogEventActionToggleAntiSpam)

§

ChangePeerColor(ChannelAdminLogEventActionChangePeerColor)

§

ChangeProfilePeerColor(ChannelAdminLogEventActionChangeProfilePeerColor)

§

ChangeWallpaper(ChannelAdminLogEventActionChangeWallpaper)

§

ChangeEmojiStatus(ChannelAdminLogEventActionChangeEmojiStatus)

§

ChangeEmojiStickerSet(ChannelAdminLogEventActionChangeEmojiStickerSet)

§

ToggleSignatureProfiles(ChannelAdminLogEventActionToggleSignatureProfiles)

§

ParticipantSubExtend(ChannelAdminLogEventActionParticipantSubExtend)

§

ToggleAutotranslation(ChannelAdminLogEventActionToggleAutotranslation)

§

ParticipantEditRank(ChannelAdminLogEventActionParticipantEditRank)

Trait Implementations§

Source§

impl Clone for ChannelAdminLogEventAction

Source§

fn clone(&self) -> ChannelAdminLogEventAction

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 ChannelAdminLogEventAction

Source§

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

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

impl Deserializable for ChannelAdminLogEventAction

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<ChannelAdminLogEventActionChangeAbout> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeAbout) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeAvailableReactions> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeAvailableReactions) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeEmojiStatus> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeEmojiStatus) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeEmojiStickerSet> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeEmojiStickerSet) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeHistoryTtl> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeHistoryTtl) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeLinkedChat> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeLinkedChat) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeLocation> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeLocation) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangePeerColor> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangePeerColor) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangePhoto> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangePhoto) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeProfilePeerColor> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeProfilePeerColor) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeStickerSet> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeStickerSet) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeTitle> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeTitle) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeUsername> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeUsername) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeUsernames> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeUsernames) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionChangeWallpaper> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionChangeWallpaper) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionCreateTopic> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionCreateTopic) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionDefaultBannedRights> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionDefaultBannedRights) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionDeleteMessage> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionDeleteMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionDeleteTopic> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionDeleteTopic) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionDiscardGroupCall> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionDiscardGroupCall) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionEditMessage> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionEditMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionEditTopic> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionEditTopic) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionExportedInviteDelete> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionExportedInviteDelete) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionExportedInviteEdit> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionExportedInviteEdit) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionExportedInviteRevoke> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionExportedInviteRevoke) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantEditRank> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantEditRank) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantInvite> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantInvite) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantJoin> for ChannelAdminLogEventAction

Source§

fn from(_x: ChannelAdminLogEventActionParticipantJoin) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantJoinByInvite> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantJoinByInvite) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantJoinByRequest> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantJoinByRequest) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantLeave> for ChannelAdminLogEventAction

Source§

fn from(_x: ChannelAdminLogEventActionParticipantLeave) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantMute> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantMute) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantSubExtend> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantSubExtend) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantToggleAdmin> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantToggleAdmin) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantToggleBan> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantToggleBan) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantUnmute> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantUnmute) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionParticipantVolume> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionParticipantVolume) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionPinTopic> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionPinTopic) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionSendMessage> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionSendMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionStartGroupCall> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionStartGroupCall) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionStopPoll> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionStopPoll) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleAntiSpam> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleAntiSpam) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleAutotranslation> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleAutotranslation) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleForum> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleForum) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleGroupCallSetting> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleGroupCallSetting) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleInvites> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleInvites) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleNoForwards> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleNoForwards) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionTogglePreHistoryHidden> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionTogglePreHistoryHidden) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleSignatureProfiles> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleSignatureProfiles) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleSignatures> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleSignatures) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionToggleSlowMode> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionToggleSlowMode) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelAdminLogEventActionUpdatePinned> for ChannelAdminLogEventAction

Source§

fn from(x: ChannelAdminLogEventActionUpdatePinned) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ChannelAdminLogEventAction

Source§

fn eq(&self, other: &ChannelAdminLogEventAction) -> 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 ChannelAdminLogEventAction

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<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeAbout

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeAvailableReactions

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeEmojiStatus

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeEmojiStickerSet

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeHistoryTtl

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeLinkedChat

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeLocation

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangePeerColor

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangePhoto

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeProfilePeerColor

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeStickerSet

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeTitle

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeUsername

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeUsernames

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionChangeWallpaper

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionCreateTopic

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionDefaultBannedRights

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionDeleteMessage

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionDeleteTopic

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionDiscardGroupCall

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionEditMessage

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionEditTopic

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionExportedInviteDelete

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionExportedInviteEdit

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionExportedInviteRevoke

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantEditRank

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantInvite

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantJoinByInvite

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantJoinByRequest

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantMute

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantSubExtend

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantToggleAdmin

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantToggleBan

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantUnmute

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionParticipantVolume

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionPinTopic

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionSendMessage

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionStartGroupCall

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionStopPoll

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleAntiSpam

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleAutotranslation

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleForum

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleGroupCallSetting

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleInvites

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleNoForwards

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionTogglePreHistoryHidden

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleSignatureProfiles

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleSignatures

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionToggleSlowMode

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl TryFrom<ChannelAdminLogEventAction> for ChannelAdminLogEventActionUpdatePinned

Source§

type Error = ChannelAdminLogEventAction

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

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

Performs the conversion.
Source§

impl StructuralPartialEq for ChannelAdminLogEventAction

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.