#[non_exhaustive]pub struct RUMApplicationCreate {
pub attributes: RUMApplicationCreateAttributes,
pub type_: RUMApplicationCreateType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
RUM application creation.
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.attributes: RUMApplicationCreateAttributes
RUM application creation attributes.
type_: RUMApplicationCreateType
RUM application creation type.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RUMApplicationCreate
impl RUMApplicationCreate
Sourcepub fn new(
attributes: RUMApplicationCreateAttributes,
type_: RUMApplicationCreateType,
) -> RUMApplicationCreate
pub fn new( attributes: RUMApplicationCreateAttributes, type_: RUMApplicationCreateType, ) -> RUMApplicationCreate
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 RUMApplicationCreate
impl Clone for RUMApplicationCreate
Source§fn clone(&self) -> RUMApplicationCreate
fn clone(&self) -> RUMApplicationCreate
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 Debug for RUMApplicationCreate
impl Debug for RUMApplicationCreate
Source§impl<'de> Deserialize<'de> for RUMApplicationCreate
impl<'de> Deserialize<'de> for RUMApplicationCreate
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 RUMApplicationCreate
impl PartialEq for RUMApplicationCreate
Source§impl Serialize for RUMApplicationCreate
impl Serialize for RUMApplicationCreate
impl StructuralPartialEq for RUMApplicationCreate
Auto Trait Implementations§
impl Freeze for RUMApplicationCreate
impl RefUnwindSafe for RUMApplicationCreate
impl Send for RUMApplicationCreate
impl Sync for RUMApplicationCreate
impl Unpin for RUMApplicationCreate
impl UnwindSafe for RUMApplicationCreate
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