#[non_exhaustive]pub struct CaseUpdateDescriptionAttributes {
pub description: String,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}Expand description
Case update description 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.description: StringCase new description
additional_properties: BTreeMap<String, Value>Implementations§
Source§impl CaseUpdateDescriptionAttributes
impl CaseUpdateDescriptionAttributes
Sourcepub fn new(description: String) -> CaseUpdateDescriptionAttributes
pub fn new(description: String) -> CaseUpdateDescriptionAttributes
Examples found in repository?
examples/v2_case-management_UpdateCaseDescription.rs (lines 14-16)
10async fn main() {
11 // there is a valid "case" in the system
12 let case_id = std::env::var("CASE_ID").unwrap();
13 let body = CaseUpdateDescriptionRequest::new(CaseUpdateDescription::new(
14 CaseUpdateDescriptionAttributes::new(
15 "Seeing some weird memory increase... Updating the description".to_string(),
16 ),
17 CaseResourceType::CASE,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = CaseManagementAPI::with_config(configuration);
21 let resp = api.update_case_description(case_id.clone(), body).await;
22 if let Ok(value) = resp {
23 println!("{:#?}", value);
24 } else {
25 println!("{:#?}", resp.unwrap_err());
26 }
27}pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for CaseUpdateDescriptionAttributes
impl Clone for CaseUpdateDescriptionAttributes
Source§fn clone(&self) -> CaseUpdateDescriptionAttributes
fn clone(&self) -> CaseUpdateDescriptionAttributes
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<'de> Deserialize<'de> for CaseUpdateDescriptionAttributes
impl<'de> Deserialize<'de> for CaseUpdateDescriptionAttributes
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 CaseUpdateDescriptionAttributes
impl PartialEq for CaseUpdateDescriptionAttributes
Source§fn eq(&self, other: &CaseUpdateDescriptionAttributes) -> bool
fn eq(&self, other: &CaseUpdateDescriptionAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CaseUpdateDescriptionAttributes
Auto Trait Implementations§
impl Freeze for CaseUpdateDescriptionAttributes
impl RefUnwindSafe for CaseUpdateDescriptionAttributes
impl Send for CaseUpdateDescriptionAttributes
impl Sync for CaseUpdateDescriptionAttributes
impl Unpin for CaseUpdateDescriptionAttributes
impl UnwindSafe for CaseUpdateDescriptionAttributes
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