#[non_exhaustive]pub enum CIStatus {
SndNew,
SndSent {
snd_progress: SndCIStatusProgress,
undocumented: JsonObject,
},
SndRcvd {
msg_rcpt_status: MsgReceiptStatus,
snd_progress: SndCIStatusProgress,
undocumented: JsonObject,
},
SndErrorAuth,
SndError {
agent_error: SndError,
undocumented: JsonObject,
},
SndWarning {
agent_error: SndError,
undocumented: JsonObject,
},
RcvNew,
RcvRead,
Invalid {
text: String,
undocumented: JsonObject,
},
Undocumented(JsonObject),
}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.
SndNew
SndSent
SndRcvd
SndErrorAuth
SndError
SndWarning
RcvNew
RcvRead
Invalid
Undocumented(JsonObject)
Implementations§
Source§impl CIStatus
impl CIStatus
pub fn snd_new() -> Self
pub fn snd_sent(snd_progress: SndCIStatusProgress) -> Self
pub fn snd_rcvd( msg_rcpt_status: MsgReceiptStatus, snd_progress: SndCIStatusProgress, ) -> Self
pub fn snd_error_auth() -> Self
pub fn snd_error(agent_error: SndError) -> Self
pub fn snd_warning(agent_error: SndError) -> Self
pub fn rcv_new() -> Self
pub fn rcv_read() -> Self
pub fn invalid(text: String) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CIStatus
impl<'de> Deserialize<'de> for CIStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CIStatus
Auto Trait Implementations§
impl Freeze for CIStatus
impl RefUnwindSafe for CIStatus
impl Send for CIStatus
impl Sync for CIStatus
impl Unpin for CIStatus
impl UnsafeUnpin for CIStatus
impl UnwindSafe for CIStatus
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