#[non_exhaustive]pub struct RUMApplicationCreateRequest {
pub data: RUMApplicationCreate,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
RUM application creation request 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.data: RUMApplicationCreate
RUM application creation.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RUMApplicationCreateRequest
impl RUMApplicationCreateRequest
Sourcepub fn new(data: RUMApplicationCreate) -> RUMApplicationCreateRequest
pub fn new(data: RUMApplicationCreate) -> RUMApplicationCreateRequest
Examples found in repository?
examples/v2_rum_CreateRUMApplication.rs (lines 11-15)
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 RUMApplicationCreateRequest
impl Clone for RUMApplicationCreateRequest
Source§fn clone(&self) -> RUMApplicationCreateRequest
fn clone(&self) -> RUMApplicationCreateRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RUMApplicationCreateRequest
impl Debug for RUMApplicationCreateRequest
Source§impl<'de> Deserialize<'de> for RUMApplicationCreateRequest
impl<'de> Deserialize<'de> for RUMApplicationCreateRequest
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 RUMApplicationCreateRequest
impl PartialEq for RUMApplicationCreateRequest
Source§fn eq(&self, other: &RUMApplicationCreateRequest) -> bool
fn eq(&self, other: &RUMApplicationCreateRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RUMApplicationCreateRequest
Auto Trait Implementations§
impl Freeze for RUMApplicationCreateRequest
impl RefUnwindSafe for RUMApplicationCreateRequest
impl Send for RUMApplicationCreateRequest
impl Sync for RUMApplicationCreateRequest
impl Unpin for RUMApplicationCreateRequest
impl UnwindSafe for RUMApplicationCreateRequest
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