#[non_exhaustive]pub struct RUMApplicationCreateAttributes {
pub name: String,
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.
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}
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}
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