#[non_exhaustive]pub struct RUMApplicationUpdate {
pub attributes: Option<RUMApplicationUpdateAttributes>,
pub id: String,
pub type_: RUMApplicationUpdateType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
RUM application update.
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.attributes: Option<RUMApplicationUpdateAttributes>
RUM application update attributes.
id: String
RUM application ID.
type_: RUMApplicationUpdateType
RUM application update type.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RUMApplicationUpdate
impl RUMApplicationUpdate
Sourcepub fn new(id: String, type_: RUMApplicationUpdateType) -> RUMApplicationUpdate
pub fn new(id: String, type_: RUMApplicationUpdateType) -> RUMApplicationUpdate
Examples found in repository?
examples/v2_rum_UpdateRUMApplication.rs (lines 14-17)
10async fn main() {
11 // there is a valid "rum_application" in the system
12 let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
13 let body = RUMApplicationUpdateRequest::new(
14 RUMApplicationUpdate::new(
15 rum_application_data_id.clone(),
16 RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
17 )
18 .attributes(
19 RUMApplicationUpdateAttributes::new()
20 .name("updated_name_for_my_existing_rum_application".to_string())
21 .type_("browser".to_string()),
22 ),
23 );
24 let configuration = datadog::Configuration::new();
25 let api = RUMAPI::with_config(configuration);
26 let resp = api
27 .update_rum_application(rum_application_data_id.clone(), body)
28 .await;
29 if let Ok(value) = resp {
30 println!("{:#?}", value);
31 } else {
32 println!("{:#?}", resp.unwrap_err());
33 }
34}
Sourcepub fn attributes(self, value: RUMApplicationUpdateAttributes) -> Self
pub fn attributes(self, value: RUMApplicationUpdateAttributes) -> Self
Examples found in repository?
examples/v2_rum_UpdateRUMApplication.rs (lines 18-22)
10async fn main() {
11 // there is a valid "rum_application" in the system
12 let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
13 let body = RUMApplicationUpdateRequest::new(
14 RUMApplicationUpdate::new(
15 rum_application_data_id.clone(),
16 RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
17 )
18 .attributes(
19 RUMApplicationUpdateAttributes::new()
20 .name("updated_name_for_my_existing_rum_application".to_string())
21 .type_("browser".to_string()),
22 ),
23 );
24 let configuration = datadog::Configuration::new();
25 let api = RUMAPI::with_config(configuration);
26 let resp = api
27 .update_rum_application(rum_application_data_id.clone(), body)
28 .await;
29 if let Ok(value) = resp {
30 println!("{:#?}", value);
31 } else {
32 println!("{:#?}", resp.unwrap_err());
33 }
34}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for RUMApplicationUpdate
impl Clone for RUMApplicationUpdate
Source§fn clone(&self) -> RUMApplicationUpdate
fn clone(&self) -> RUMApplicationUpdate
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 RUMApplicationUpdate
impl Debug for RUMApplicationUpdate
Source§impl<'de> Deserialize<'de> for RUMApplicationUpdate
impl<'de> Deserialize<'de> for RUMApplicationUpdate
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 RUMApplicationUpdate
impl PartialEq for RUMApplicationUpdate
Source§impl Serialize for RUMApplicationUpdate
impl Serialize for RUMApplicationUpdate
impl StructuralPartialEq for RUMApplicationUpdate
Auto Trait Implementations§
impl Freeze for RUMApplicationUpdate
impl RefUnwindSafe for RUMApplicationUpdate
impl Send for RUMApplicationUpdate
impl Sync for RUMApplicationUpdate
impl Unpin for RUMApplicationUpdate
impl UnwindSafe for RUMApplicationUpdate
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