pub struct Entries<'a> { /* private fields */ }Implementations§
Source§impl<'a> Entries<'a>
impl<'a> Entries<'a>
Sourcepub async fn create_reply(
&self,
entry_id: i64,
body: &CreateReplyRequestContent,
) -> Result<(), Error>
pub async fn create_reply( &self, entry_id: i64, body: &CreateReplyRequestContent, ) -> Result<(), Error>
Reply to an entry
Sourcepub async fn delete_draft(&self, entry_id: i64) -> Result<(), Error>
pub async fn delete_draft(&self, entry_id: i64) -> Result<(), Error>
Trash a draft (Entries::DraftsController#destroy). The id is the draft’s entry id, as ListDrafts reports it.
Sourcepub async fn list_drafts(
&self,
params: &ListDraftsParams,
) -> Result<Page<ListDraftsResponseContent>, Error>
pub async fn list_drafts( &self, params: &ListDraftsParams, ) -> Result<Page<ListDraftsResponseContent>, Error>
List draft messages
Sourcepub async fn mark_spam(&self, entry_id: i64) -> Result<(), Error>
pub async fn mark_spam(&self, entry_id: i64) -> Result<(), Error>
Mark an entry as spam. Denies the sender when every thread from them is already spam.
Sourcepub async fn new_forward(
&self,
entry_id: i64,
) -> Result<NewEntryForwardResponseContent, Error>
pub async fn new_forward( &self, entry_id: i64, ) -> Result<NewEntryForwardResponseContent, Error>
Get a prefilled forward of an entry: subject, quoted body and blank recipients. Send it with CreateMessage once the recipients are filled in.
Sourcepub async fn new_reply(
&self,
entry_id: i64,
) -> Result<NewEntryReplyResponseContent, Error>
pub async fn new_reply( &self, entry_id: i64, ) -> Result<NewEntryReplyResponseContent, Error>
Get a prefilled reply to an entry: the quoted body and, in addressed, the participating contacts a reply goes to as HEY computes them — the sender moved onto the To line and the acting user’s own addresses, aliases and catch-alls excluded.
Source§impl Entries<'_>
impl Entries<'_>
Sourcepub async fn reply(
&self,
entry_id: i64,
reply: &ReplyContent,
) -> Result<(), Error>
pub async fn reply( &self, entry_id: i64, reply: &ReplyContent, ) -> Result<(), Error>
Delivers a reply to an entry. HEY does not reply-all on the caller’s behalf, and saves an unaddressed reply as a draft rather than delivering it, so the thread’s recipients — the prefill’s — are required.
Sourcepub async fn reply_draft(
&self,
entry_id: i64,
reply: &ReplyContent,
) -> Result<i64, Error>
pub async fn reply_draft( &self, entry_id: i64, reply: &ReplyContent, ) -> Result<i64, Error>
Saves a reply as a draft instead of delivering it, and answers the draft’s entry
id. Unlike Entries::reply it needs no recipients; whatever it carries is kept
for the send.