pub struct MessageProperties {
pub subject: Option<String>,
pub body: Option<String>,
pub contact_email: Option<String>,
pub root_content_id: Option<String>,
pub recipient_user_ids: Option<Vec<String>>,
pub images: Option<Vec<Image>>,
pub extra: Option<Value>,
}Expand description
Used to represent a message exchanged between users of your service.
https://sift.com/developers/docs/curl/events-api/reserved-events/create-content/message
Fields§
§subject: Option<String>The user-supplied subject of the message.
body: Option<String>The text content of the message.
contact_email: Option<String>The email address associated with the message sender.
root_content_id: Option<String>The content id in the context of which the messages is sent.
For example, this would be the job listing being responded to.
recipient_user_ids: Option<Vec<String>>The user ids of the recipients of the message.
images: Option<Vec<Image>>The list of images shared by the user with their message.
It includes images pasted inline or attached separately.
extra: Option<Value>Any extra non-reserved fields to be recorded with the message.
Trait Implementations§
Source§impl Debug for MessageProperties
impl Debug for MessageProperties
Source§impl Default for MessageProperties
impl Default for MessageProperties
Source§fn default() -> MessageProperties
fn default() -> MessageProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageProperties
impl<'de> Deserialize<'de> for MessageProperties
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
Auto Trait Implementations§
impl Freeze for MessageProperties
impl RefUnwindSafe for MessageProperties
impl Send for MessageProperties
impl Sync for MessageProperties
impl Unpin for MessageProperties
impl UnwindSafe for MessageProperties
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