#[non_exhaustive]pub struct CaseAttributes {Show 13 fields
pub archived_at: Option<Option<DateTime<Utc>>>,
pub closed_at: Option<Option<DateTime<Utc>>>,
pub created_at: Option<DateTime<Utc>>,
pub description: Option<String>,
pub jira_issue: Option<Option<JiraIssue>>,
pub key: Option<String>,
pub modified_at: Option<Option<DateTime<Utc>>>,
pub priority: Option<CasePriority>,
pub service_now_ticket: Option<Option<ServiceNowTicket>>,
pub status: Option<CaseStatus>,
pub title: Option<String>,
pub type_: Option<CaseType>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Case attributes
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.archived_at: Option<Option<DateTime<Utc>>>
Timestamp of when the case was archived
closed_at: Option<Option<DateTime<Utc>>>
Timestamp of when the case was closed
created_at: Option<DateTime<Utc>>
Timestamp of when the case was created
description: Option<String>
Description
jira_issue: Option<Option<JiraIssue>>
Jira issue attached to case
key: Option<String>
Key
modified_at: Option<Option<DateTime<Utc>>>
Timestamp of when the case was last modified
priority: Option<CasePriority>
Case priority
service_now_ticket: Option<Option<ServiceNowTicket>>
ServiceNow ticket attached to case
status: Option<CaseStatus>
Case status
title: Option<String>
Title
type_: Option<CaseType>
Case type
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl CaseAttributes
impl CaseAttributes
pub fn new() -> CaseAttributes
pub fn archived_at(self, value: Option<DateTime<Utc>>) -> Self
pub fn closed_at(self, value: Option<DateTime<Utc>>) -> Self
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn description(self, value: String) -> Self
pub fn jira_issue(self, value: Option<JiraIssue>) -> Self
pub fn key(self, value: String) -> Self
pub fn modified_at(self, value: Option<DateTime<Utc>>) -> Self
pub fn priority(self, value: CasePriority) -> Self
pub fn service_now_ticket(self, value: Option<ServiceNowTicket>) -> Self
pub fn status(self, value: CaseStatus) -> Self
pub fn title(self, value: String) -> Self
pub fn type_(self, value: CaseType) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for CaseAttributes
impl Clone for CaseAttributes
Source§fn clone(&self) -> CaseAttributes
fn clone(&self) -> CaseAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CaseAttributes
impl Debug for CaseAttributes
Source§impl Default for CaseAttributes
impl Default for CaseAttributes
Source§impl<'de> Deserialize<'de> for CaseAttributes
impl<'de> Deserialize<'de> for CaseAttributes
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
Source§impl PartialEq for CaseAttributes
impl PartialEq for CaseAttributes
Source§impl Serialize for CaseAttributes
impl Serialize for CaseAttributes
impl StructuralPartialEq for CaseAttributes
Auto Trait Implementations§
impl Freeze for CaseAttributes
impl RefUnwindSafe for CaseAttributes
impl Send for CaseAttributes
impl Sync for CaseAttributes
impl Unpin for CaseAttributes
impl UnwindSafe for CaseAttributes
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