#[non_exhaustive]pub struct RUMApplicationUpdateAttributes {
pub name: Option<String>,
pub product_analytics_retention_state: Option<RUMProductAnalyticsRetentionState>,
pub rum_event_processing_state: Option<RUMEventProcessingState>,
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.
product_analytics_retention_state: Option<RUMProductAnalyticsRetentionState>
Controls the retention policy for Product Analytics data derived from RUM events.
rum_event_processing_state: Option<RUMEventProcessingState>
Configures which RUM events are processed and stored for the 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}
More examples
examples/v2_rum_UpdateRUMApplication_394074053.rs (line 21)
12async fn main() {
13 // there is a valid "rum_application" in the system
14 let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
15 let body = RUMApplicationUpdateRequest::new(
16 RUMApplicationUpdate::new(
17 rum_application_data_id.clone(),
18 RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
19 )
20 .attributes(
21 RUMApplicationUpdateAttributes::new()
22 .name("updated_rum_with_product_scales".to_string())
23 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::MAX)
24 .rum_event_processing_state(RUMEventProcessingState::ALL),
25 ),
26 );
27 let configuration = datadog::Configuration::new();
28 let api = RUMAPI::with_config(configuration);
29 let resp = api
30 .update_rum_application(rum_application_data_id.clone(), body)
31 .await;
32 if let Ok(value) = resp {
33 println!("{:#?}", value);
34 } else {
35 println!("{:#?}", resp.unwrap_err());
36 }
37}
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}
More examples
examples/v2_rum_UpdateRUMApplication_394074053.rs (line 22)
12async fn main() {
13 // there is a valid "rum_application" in the system
14 let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
15 let body = RUMApplicationUpdateRequest::new(
16 RUMApplicationUpdate::new(
17 rum_application_data_id.clone(),
18 RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
19 )
20 .attributes(
21 RUMApplicationUpdateAttributes::new()
22 .name("updated_rum_with_product_scales".to_string())
23 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::MAX)
24 .rum_event_processing_state(RUMEventProcessingState::ALL),
25 ),
26 );
27 let configuration = datadog::Configuration::new();
28 let api = RUMAPI::with_config(configuration);
29 let resp = api
30 .update_rum_application(rum_application_data_id.clone(), body)
31 .await;
32 if let Ok(value) = resp {
33 println!("{:#?}", value);
34 } else {
35 println!("{:#?}", resp.unwrap_err());
36 }
37}
Sourcepub fn product_analytics_retention_state(
self,
value: RUMProductAnalyticsRetentionState,
) -> Self
pub fn product_analytics_retention_state( self, value: RUMProductAnalyticsRetentionState, ) -> Self
Examples found in repository?
examples/v2_rum_UpdateRUMApplication_394074053.rs (line 23)
12async fn main() {
13 // there is a valid "rum_application" in the system
14 let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
15 let body = RUMApplicationUpdateRequest::new(
16 RUMApplicationUpdate::new(
17 rum_application_data_id.clone(),
18 RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
19 )
20 .attributes(
21 RUMApplicationUpdateAttributes::new()
22 .name("updated_rum_with_product_scales".to_string())
23 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::MAX)
24 .rum_event_processing_state(RUMEventProcessingState::ALL),
25 ),
26 );
27 let configuration = datadog::Configuration::new();
28 let api = RUMAPI::with_config(configuration);
29 let resp = api
30 .update_rum_application(rum_application_data_id.clone(), body)
31 .await;
32 if let Ok(value) = resp {
33 println!("{:#?}", value);
34 } else {
35 println!("{:#?}", resp.unwrap_err());
36 }
37}
Sourcepub fn rum_event_processing_state(self, value: RUMEventProcessingState) -> Self
pub fn rum_event_processing_state(self, value: RUMEventProcessingState) -> Self
Examples found in repository?
examples/v2_rum_UpdateRUMApplication_394074053.rs (line 24)
12async fn main() {
13 // there is a valid "rum_application" in the system
14 let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
15 let body = RUMApplicationUpdateRequest::new(
16 RUMApplicationUpdate::new(
17 rum_application_data_id.clone(),
18 RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
19 )
20 .attributes(
21 RUMApplicationUpdateAttributes::new()
22 .name("updated_rum_with_product_scales".to_string())
23 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::MAX)
24 .rum_event_processing_state(RUMEventProcessingState::ALL),
25 ),
26 );
27 let configuration = datadog::Configuration::new();
28 let api = RUMAPI::with_config(configuration);
29 let resp = api
30 .update_rum_application(rum_application_data_id.clone(), body)
31 .await;
32 if let Ok(value) = resp {
33 println!("{:#?}", value);
34 } else {
35 println!("{:#?}", resp.unwrap_err());
36 }
37}
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