#[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 make_snd_new() -> Self
pub fn make_snd_sent(snd_progress: SndCIStatusProgress) -> Self
pub fn make_snd_rcvd( msg_rcpt_status: MsgReceiptStatus, snd_progress: SndCIStatusProgress, ) -> Self
pub fn make_snd_error_auth() -> Self
pub fn make_snd_error(agent_error: SndError) -> Self
pub fn make_snd_warning(agent_error: SndError) -> Self
pub fn make_rcv_new() -> Self
pub fn make_rcv_read() -> Self
pub fn make_invalid(text: String) -> Self
Source§impl CIStatus
impl CIStatus
pub fn is_snd_new(&self) -> bool
pub fn snd_sent(&self) -> Option<&SndCIStatusProgress>
pub fn snd_rcvd(&self) -> Option<CIStatusSndRcvdRef<'_>>
pub fn is_snd_error_auth(&self) -> bool
pub fn snd_error(&self) -> Option<&SndError>
pub fn snd_warning(&self) -> Option<&SndError>
pub fn is_rcv_new(&self) -> bool
pub fn is_rcv_read(&self) -> bool
pub fn invalid(&self) -> Option<&String>
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