#[non_exhaustive]pub enum CIContent {
Show 33 variants
SndMsgContent {
msg_content: MsgContent,
undocumented: Value,
},
RcvMsgContent {
msg_content: MsgContent,
undocumented: Value,
},
SndDeleted {
delete_mode: CIDeleteMode,
undocumented: Value,
},
RcvDeleted {
delete_mode: CIDeleteMode,
undocumented: Value,
},
SndCall {
status: CICallStatus,
duration: i32,
undocumented: Value,
},
RcvCall {
status: CICallStatus,
duration: i32,
undocumented: Value,
},
RcvIntegrityError {
msg_error: MsgErrorType,
undocumented: Value,
},
RcvDecryptionError {
msg_decrypt_error: MsgDecryptError,
msg_count: u32,
undocumented: Value,
},
RcvMsgError {
rcv_msg_error: RcvMsgError,
undocumented: Value,
},
RcvGroupInvitation {
group_invitation: CIGroupInvitation,
member_role: GroupMemberRole,
undocumented: Value,
},
SndGroupInvitation {
group_invitation: CIGroupInvitation,
member_role: GroupMemberRole,
undocumented: Value,
},
RcvDirectEvent {
rcv_direct_event: RcvDirectEvent,
undocumented: Value,
},
RcvGroupEvent {
rcv_group_event: RcvGroupEvent,
undocumented: Value,
},
SndGroupEvent {
snd_group_event: SndGroupEvent,
undocumented: Value,
},
RcvConnEvent {
rcv_conn_event: RcvConnEvent,
undocumented: Value,
},
SndConnEvent {
snd_conn_event: SndConnEvent,
undocumented: Value,
},
RcvChatFeature {
feature: ChatFeature,
enabled: PrefEnabled,
param: Option<i32>,
undocumented: Value,
},
SndChatFeature {
feature: ChatFeature,
enabled: PrefEnabled,
param: Option<i32>,
undocumented: Value,
},
RcvChatPreference {
feature: ChatFeature,
allowed: FeatureAllowed,
param: Option<i32>,
undocumented: Value,
},
SndChatPreference {
feature: ChatFeature,
allowed: FeatureAllowed,
param: Option<i32>,
undocumented: Value,
},
RcvGroupFeature {
group_feature: GroupFeature,
preference: GroupPreference,
param: Option<i32>,
member_role: Option<GroupMemberRole>,
undocumented: Value,
},
SndGroupFeature {
group_feature: GroupFeature,
preference: GroupPreference,
param: Option<i32>,
member_role: Option<GroupMemberRole>,
undocumented: Value,
},
RcvChatFeatureRejected {
feature: ChatFeature,
undocumented: Value,
},
RcvGroupFeatureRejected {
group_feature: GroupFeature,
undocumented: Value,
},
SndModerated,
RcvModerated,
RcvBlocked,
SndDirectE2EeInfo {
e_2_ee_info: E2EInfo,
undocumented: Value,
},
RcvDirectE2EeInfo {
e_2_ee_info: E2EInfo,
undocumented: Value,
},
SndGroupE2EeInfo {
e_2_ee_info: E2EInfo,
undocumented: Value,
},
RcvGroupE2EeInfo {
e_2_ee_info: E2EInfo,
undocumented: Value,
},
ChatBanner,
Undocumented(Value),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SndMsgContent
RcvMsgContent
SndDeleted
RcvDeleted
SndCall
RcvCall
RcvIntegrityError
RcvDecryptionError
RcvMsgError
RcvGroupInvitation
SndGroupInvitation
RcvDirectEvent
RcvGroupEvent
SndGroupEvent
RcvConnEvent
SndConnEvent
RcvChatFeature
SndChatFeature
RcvChatPreference
SndChatPreference
RcvGroupFeature
SndGroupFeature
RcvChatFeatureRejected
RcvGroupFeatureRejected
SndModerated
RcvModerated
RcvBlocked
SndDirectE2EeInfo
RcvDirectE2EeInfo
SndGroupE2EeInfo
RcvGroupE2EeInfo
ChatBanner
Undocumented(Value)
Implementations§
Source§impl CIContent
impl CIContent
pub fn make_snd_msg_content(msg_content: MsgContent) -> CIContent
pub fn make_rcv_msg_content(msg_content: MsgContent) -> CIContent
pub fn make_snd_deleted(delete_mode: CIDeleteMode) -> CIContent
pub fn make_rcv_deleted(delete_mode: CIDeleteMode) -> CIContent
pub fn make_snd_call(status: CICallStatus, duration: i32) -> CIContent
pub fn make_rcv_call(status: CICallStatus, duration: i32) -> CIContent
pub fn make_rcv_integrity_error(msg_error: MsgErrorType) -> CIContent
pub fn make_rcv_decryption_error( msg_decrypt_error: MsgDecryptError, msg_count: u32, ) -> CIContent
pub fn make_rcv_msg_error(rcv_msg_error: RcvMsgError) -> CIContent
pub fn make_rcv_group_invitation( group_invitation: CIGroupInvitation, member_role: GroupMemberRole, ) -> CIContent
pub fn make_snd_group_invitation( group_invitation: CIGroupInvitation, member_role: GroupMemberRole, ) -> CIContent
pub fn make_rcv_direct_event(rcv_direct_event: RcvDirectEvent) -> CIContent
pub fn make_rcv_group_event(rcv_group_event: RcvGroupEvent) -> CIContent
pub fn make_snd_group_event(snd_group_event: SndGroupEvent) -> CIContent
pub fn make_rcv_conn_event(rcv_conn_event: RcvConnEvent) -> CIContent
pub fn make_snd_conn_event(snd_conn_event: SndConnEvent) -> CIContent
pub fn make_rcv_chat_feature( feature: ChatFeature, enabled: PrefEnabled, param: Option<i32>, ) -> CIContent
pub fn make_snd_chat_feature( feature: ChatFeature, enabled: PrefEnabled, param: Option<i32>, ) -> CIContent
pub fn make_rcv_chat_preference( feature: ChatFeature, allowed: FeatureAllowed, param: Option<i32>, ) -> CIContent
pub fn make_snd_chat_preference( feature: ChatFeature, allowed: FeatureAllowed, param: Option<i32>, ) -> CIContent
pub fn make_rcv_group_feature( group_feature: GroupFeature, preference: GroupPreference, param: Option<i32>, member_role: Option<GroupMemberRole>, ) -> CIContent
pub fn make_snd_group_feature( group_feature: GroupFeature, preference: GroupPreference, param: Option<i32>, member_role: Option<GroupMemberRole>, ) -> CIContent
pub fn make_rcv_chat_feature_rejected(feature: ChatFeature) -> CIContent
pub fn make_rcv_group_feature_rejected(group_feature: GroupFeature) -> CIContent
pub fn make_snd_moderated() -> CIContent
pub fn make_rcv_moderated() -> CIContent
pub fn make_rcv_blocked() -> CIContent
pub fn make_snd_direct_e_2_ee_info(e_2_ee_info: E2EInfo) -> CIContent
pub fn make_rcv_direct_e_2_ee_info(e_2_ee_info: E2EInfo) -> CIContent
pub fn make_snd_group_e_2_ee_info(e_2_ee_info: E2EInfo) -> CIContent
pub fn make_rcv_group_e_2_ee_info(e_2_ee_info: E2EInfo) -> CIContent
Source§impl CIContent
impl CIContent
pub fn snd_msg_content(&self) -> Option<&MsgContent>
pub fn rcv_msg_content(&self) -> Option<&MsgContent>
pub fn snd_deleted(&self) -> Option<&CIDeleteMode>
pub fn rcv_deleted(&self) -> Option<&CIDeleteMode>
pub fn snd_call(&self) -> Option<CIContentSndCallRef<'_>>
pub fn rcv_call(&self) -> Option<CIContentRcvCallRef<'_>>
pub fn rcv_integrity_error(&self) -> Option<&MsgErrorType>
pub fn rcv_decryption_error(&self) -> Option<CIContentRcvDecryptionErrorRef<'_>>
pub fn rcv_msg_error(&self) -> Option<&RcvMsgError>
pub fn rcv_group_invitation(&self) -> Option<CIContentRcvGroupInvitationRef<'_>>
pub fn snd_group_invitation(&self) -> Option<CIContentSndGroupInvitationRef<'_>>
pub fn rcv_direct_event(&self) -> Option<&RcvDirectEvent>
pub fn rcv_group_event(&self) -> Option<&RcvGroupEvent>
pub fn snd_group_event(&self) -> Option<&SndGroupEvent>
pub fn rcv_conn_event(&self) -> Option<&RcvConnEvent>
pub fn snd_conn_event(&self) -> Option<&SndConnEvent>
pub fn rcv_chat_feature(&self) -> Option<CIContentRcvChatFeatureRef<'_>>
pub fn snd_chat_feature(&self) -> Option<CIContentSndChatFeatureRef<'_>>
pub fn rcv_chat_preference(&self) -> Option<CIContentRcvChatPreferenceRef<'_>>
pub fn snd_chat_preference(&self) -> Option<CIContentSndChatPreferenceRef<'_>>
pub fn rcv_group_feature(&self) -> Option<CIContentRcvGroupFeatureRef<'_>>
pub fn snd_group_feature(&self) -> Option<CIContentSndGroupFeatureRef<'_>>
pub fn rcv_chat_feature_rejected(&self) -> Option<&ChatFeature>
pub fn rcv_group_feature_rejected(&self) -> Option<&GroupFeature>
pub fn is_snd_moderated(&self) -> bool
pub fn is_rcv_moderated(&self) -> bool
pub fn is_rcv_blocked(&self) -> bool
pub fn snd_direct_e_2_ee_info(&self) -> Option<&E2EInfo>
pub fn rcv_direct_e_2_ee_info(&self) -> Option<&E2EInfo>
pub fn snd_group_e_2_ee_info(&self) -> Option<&E2EInfo>
pub fn rcv_group_e_2_ee_info(&self) -> Option<&E2EInfo>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CIContent
impl<'de> Deserialize<'de> for CIContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CIContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CIContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CIContent
impl Serialize for CIContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CIContent
Auto Trait Implementations§
impl Freeze for CIContent
impl RefUnwindSafe for CIContent
impl Send for CIContent
impl Sync for CIContent
impl Unpin for CIContent
impl UnsafeUnpin for CIContent
impl UnwindSafe for CIContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more