pub struct BMessage { /* private fields */ }Expand description
Single-level BENV structure; nested BENV not supported.
Implementations§
Source§impl BMessage
impl BMessage
Sourcepub const fn status(&self) -> &MessageStatus
pub const fn status(&self) -> &MessageStatus
Wire STATUS field: READ or UNREAD.
Sourcepub const fn message_type(&self) -> &MessageType
pub const fn message_type(&self) -> &MessageType
Wire TYPE field: SMS_GSM (the only value iOS reports).
Sourcepub const fn originator(&self) -> Option<&BVCard>
pub const fn originator(&self) -> Option<&BVCard>
Sender vCard outside BENV; None if absent.
Sourcepub const fn envelope(&self) -> &BEnvelope
pub const fn envelope(&self) -> &BEnvelope
BENV section: recipient vCards and the message body.
Sourcepub fn outbound_sms(phone: &str, text: &str) -> BMessage
pub fn outbound_sms(phone: &str, text: &str) -> BMessage
iOS-mandated structure for PushMessage: STATUS:UNREAD, TYPE:SMS_GSM, FOLDER:telecom/msg/outbox;
empty originator outside BENV, recipient inside BENV.
Trait Implementations§
impl Eq for BMessage
impl StructuralPartialEq for BMessage
Auto Trait Implementations§
impl Freeze for BMessage
impl RefUnwindSafe for BMessage
impl Send for BMessage
impl Sync for BMessage
impl Unpin for BMessage
impl UnsafeUnpin for BMessage
impl UnwindSafe for BMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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