#[non_exhaustive]pub struct RUMApplicationCreateAttributes {
pub name: 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 creation 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: 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 RUMApplicationCreateAttributes
impl RUMApplicationCreateAttributes
Sourcepub fn new(name: String) -> RUMApplicationCreateAttributes
pub fn new(name: String) -> RUMApplicationCreateAttributes
Examples found in repository?
examples/v2_rum_CreateRUMApplication.rs (line 12)
10async fn main() {
11 let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
12 RUMApplicationCreateAttributes::new("test-rum-5c67ebb32077e1d9".to_string())
13 .type_("ios".to_string()),
14 RUMApplicationCreateType::RUM_APPLICATION_CREATE,
15 ));
16 let configuration = datadog::Configuration::new();
17 let api = RUMAPI::with_config(configuration);
18 let resp = api.create_rum_application(body).await;
19 if let Ok(value) = resp {
20 println!("{:#?}", value);
21 } else {
22 println!("{:#?}", resp.unwrap_err());
23 }
24}
More examples
examples/v2_rum_CreateRUMApplication_1946294560.rs (lines 14-16)
12async fn main() {
13 let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
14 RUMApplicationCreateAttributes::new(
15 "test-rum-with-product-scales-5c67ebb32077e1d9".to_string(),
16 )
17 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::NONE)
18 .rum_event_processing_state(RUMEventProcessingState::ERROR_FOCUSED_MODE)
19 .type_("browser".to_string()),
20 RUMApplicationCreateType::RUM_APPLICATION_CREATE,
21 ));
22 let configuration = datadog::Configuration::new();
23 let api = RUMAPI::with_config(configuration);
24 let resp = api.create_rum_application(body).await;
25 if let Ok(value) = resp {
26 println!("{:#?}", value);
27 } else {
28 println!("{:#?}", resp.unwrap_err());
29 }
30}
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_CreateRUMApplication_1946294560.rs (line 17)
12async fn main() {
13 let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
14 RUMApplicationCreateAttributes::new(
15 "test-rum-with-product-scales-5c67ebb32077e1d9".to_string(),
16 )
17 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::NONE)
18 .rum_event_processing_state(RUMEventProcessingState::ERROR_FOCUSED_MODE)
19 .type_("browser".to_string()),
20 RUMApplicationCreateType::RUM_APPLICATION_CREATE,
21 ));
22 let configuration = datadog::Configuration::new();
23 let api = RUMAPI::with_config(configuration);
24 let resp = api.create_rum_application(body).await;
25 if let Ok(value) = resp {
26 println!("{:#?}", value);
27 } else {
28 println!("{:#?}", resp.unwrap_err());
29 }
30}
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_CreateRUMApplication_1946294560.rs (line 18)
12async fn main() {
13 let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
14 RUMApplicationCreateAttributes::new(
15 "test-rum-with-product-scales-5c67ebb32077e1d9".to_string(),
16 )
17 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::NONE)
18 .rum_event_processing_state(RUMEventProcessingState::ERROR_FOCUSED_MODE)
19 .type_("browser".to_string()),
20 RUMApplicationCreateType::RUM_APPLICATION_CREATE,
21 ));
22 let configuration = datadog::Configuration::new();
23 let api = RUMAPI::with_config(configuration);
24 let resp = api.create_rum_application(body).await;
25 if let Ok(value) = resp {
26 println!("{:#?}", value);
27 } else {
28 println!("{:#?}", resp.unwrap_err());
29 }
30}
Sourcepub fn type_(self, value: String) -> Self
pub fn type_(self, value: String) -> Self
Examples found in repository?
examples/v2_rum_CreateRUMApplication.rs (line 13)
10async fn main() {
11 let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
12 RUMApplicationCreateAttributes::new("test-rum-5c67ebb32077e1d9".to_string())
13 .type_("ios".to_string()),
14 RUMApplicationCreateType::RUM_APPLICATION_CREATE,
15 ));
16 let configuration = datadog::Configuration::new();
17 let api = RUMAPI::with_config(configuration);
18 let resp = api.create_rum_application(body).await;
19 if let Ok(value) = resp {
20 println!("{:#?}", value);
21 } else {
22 println!("{:#?}", resp.unwrap_err());
23 }
24}
More examples
examples/v2_rum_CreateRUMApplication_1946294560.rs (line 19)
12async fn main() {
13 let body = RUMApplicationCreateRequest::new(RUMApplicationCreate::new(
14 RUMApplicationCreateAttributes::new(
15 "test-rum-with-product-scales-5c67ebb32077e1d9".to_string(),
16 )
17 .product_analytics_retention_state(RUMProductAnalyticsRetentionState::NONE)
18 .rum_event_processing_state(RUMEventProcessingState::ERROR_FOCUSED_MODE)
19 .type_("browser".to_string()),
20 RUMApplicationCreateType::RUM_APPLICATION_CREATE,
21 ));
22 let configuration = datadog::Configuration::new();
23 let api = RUMAPI::with_config(configuration);
24 let resp = api.create_rum_application(body).await;
25 if let Ok(value) = resp {
26 println!("{:#?}", value);
27 } else {
28 println!("{:#?}", resp.unwrap_err());
29 }
30}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for RUMApplicationCreateAttributes
impl Clone for RUMApplicationCreateAttributes
Source§fn clone(&self) -> RUMApplicationCreateAttributes
fn clone(&self) -> RUMApplicationCreateAttributes
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 RUMApplicationCreateAttributes
impl<'de> Deserialize<'de> for RUMApplicationCreateAttributes
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 RUMApplicationCreateAttributes
impl PartialEq for RUMApplicationCreateAttributes
Source§fn eq(&self, other: &RUMApplicationCreateAttributes) -> bool
fn eq(&self, other: &RUMApplicationCreateAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RUMApplicationCreateAttributes
Auto Trait Implementations§
impl Freeze for RUMApplicationCreateAttributes
impl RefUnwindSafe for RUMApplicationCreateAttributes
impl Send for RUMApplicationCreateAttributes
impl Sync for RUMApplicationCreateAttributes
impl Unpin for RUMApplicationCreateAttributes
impl UnwindSafe for RUMApplicationCreateAttributes
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