#[non_exhaustive]pub struct RUMApplicationUpdateAttributes {
pub name: Option<String>,
pub type_: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
RUM application update 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.name: Option<String>
Name of the RUM application.
type_: Option<String>
Type of the RUM application. Supported values are browser
, ios
, android
, react-native
, flutter
, roku
, electron
, unity
, kotlin-multiplatform
.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RUMApplicationUpdateAttributes
impl RUMApplicationUpdateAttributes
Sourcepub fn new() -> RUMApplicationUpdateAttributes
pub fn new() -> RUMApplicationUpdateAttributes
Examples found in repository?
examples/v2_rum_UpdateRUMApplication.rs (line 19)
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 name(self, value: String) -> Self
pub fn name(self, value: String) -> Self
Examples found in repository?
examples/v2_rum_UpdateRUMApplication.rs (line 20)
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 type_(self, value: String) -> Self
pub fn type_(self, value: String) -> Self
Examples found in repository?
examples/v2_rum_UpdateRUMApplication.rs (line 21)
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 RUMApplicationUpdateAttributes
impl Clone for RUMApplicationUpdateAttributes
Source§fn clone(&self) -> RUMApplicationUpdateAttributes
fn clone(&self) -> RUMApplicationUpdateAttributes
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 RUMApplicationUpdateAttributes
impl<'de> Deserialize<'de> for RUMApplicationUpdateAttributes
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 RUMApplicationUpdateAttributes
impl PartialEq for RUMApplicationUpdateAttributes
Source§fn eq(&self, other: &RUMApplicationUpdateAttributes) -> bool
fn eq(&self, other: &RUMApplicationUpdateAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RUMApplicationUpdateAttributes
Auto Trait Implementations§
impl Freeze for RUMApplicationUpdateAttributes
impl RefUnwindSafe for RUMApplicationUpdateAttributes
impl Send for RUMApplicationUpdateAttributes
impl Sync for RUMApplicationUpdateAttributes
impl Unpin for RUMApplicationUpdateAttributes
impl UnwindSafe for RUMApplicationUpdateAttributes
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