pub struct Message {Show 13 fields
pub handle: Option<u64>,
pub subject: Option<String>,
pub timestamp: Option<i64>,
pub sender: Option<Audience>,
pub recipient: Option<Audience>,
pub type_: Option<MessageType>,
pub content: Option<String>,
pub folder: Option<String>,
pub priority: Option<bool>,
pub read: Option<bool>,
pub sent: Option<bool>,
pub protected: Option<bool>,
pub conversation_id: Option<[u8; 16]>,
/* private fields */
}
Expand description
Based on x-bt/message, x-bt/MAP-msg-listing v1.1, and MAP-Event-Report NewMessage objects. See MAP v1.4.2 sections 3.1.3 and 3.1.6 for details. Depending on the method used to get the message, not all fields may be populated.
Fields§
§handle: Option<u64>
Handle for this message. Locally unique to each Message Server Equipment (MSE). Always present.
subject: Option<String>
Summary of the message.
timestamp: Option<i64>
Unix timestamp that represents the sending time if it was included in the message, otherwise represents the reception time of the MSE.
sender: Option<Audience>
Information about the sender.
recipient: Option<Audience>
Information about the recipient.
type_: Option<MessageType>
Type of the message. Always present.
content: Option<String>
Content of the message.
folder: Option<String>
Folder where the message is located in.
priority: Option<bool>
Whether or not message is high priority. If this information is missing, it would be set as unknown, not false.
read: Option<bool>
Whether or not message was read. If this information is missing, it would be set as unknown, not false.
sent: Option<bool>
Whether or not meessage has already been sent to the recipient. If this information is missing, it would be set as unknown, not false.
protected: Option<bool>
Whether or not message is protected by a DRM scheme.
conversation_id: Option<[u8; 16]>
A 128 bit value that uniquely identifies a conversation within a single MAS instance.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Message, D> for Message
impl<D: ResourceDialect> Decode<Message, D> for Message
Source§impl TypeMarker for Message
impl TypeMarker for Message
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Message
impl ValueTypeMarker for Message
impl Persistable for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)