pub struct Article {Show 16 fields
pub id: u64,
pub ticket_id: Option<u64>,
pub subject: Option<String>,
pub body: Option<String>,
pub from: Option<String>,
pub to: Option<String>,
pub cc: Option<String>,
pub reply_to: Option<String>,
pub content_type: Option<String>,
pub article_type: Option<String>,
pub sender: Option<String>,
pub internal: Option<bool>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub attachments: Vec<Attachment>,
pub extra: Map<String, Value>,
}Expand description
A ticket article (note, email, phone log, …).
Fields§
§id: u64Numeric article ID.
ticket_id: Option<u64>ID of the parent ticket.
subject: Option<String>Subject line.
body: Option<String>Article body (plain text or HTML depending on content_type).
from: Option<String>Sender address (free-form string Zammad chose).
to: Option<String>Recipient address.
cc: Option<String>CC recipients.
reply_to: Option<String>Reply-To header.
content_type: Option<String>MIME content type (text/plain, text/html).
article_type: Option<String>Article type (note, email, phone, …).
sender: Option<String>Sender role (Agent, Customer, System).
internal: Option<bool>Whether the article is hidden from customers.
created_at: Option<DateTime<Utc>>When the article was created.
updated_at: Option<DateTime<Utc>>When the article was last updated.
attachments: Vec<Attachment>File attachments on the article.
extra: Map<String, Value>Any attribute not modelled above.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Article
impl<'de> Deserialize<'de> for Article
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 Article
impl RefUnwindSafe for Article
impl Send for Article
impl Sync for Article
impl Unpin for Article
impl UnsafeUnpin for Article
impl UnwindSafe for Article
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