#[non_exhaustive]pub struct RUMApplicationUpdateRequest {
pub data: RUMApplicationUpdate,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
RUM application update request.
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: RUMApplicationUpdate
RUM application update.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RUMApplicationUpdateRequest
impl RUMApplicationUpdateRequest
Sourcepub fn new(data: RUMApplicationUpdate) -> RUMApplicationUpdateRequest
pub fn new(data: RUMApplicationUpdate) -> RUMApplicationUpdateRequest
Examples found in repository?
examples/v2_rum_UpdateRUMApplication.rs (lines 13-23)
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 RUMApplicationUpdateRequest
impl Clone for RUMApplicationUpdateRequest
Source§fn clone(&self) -> RUMApplicationUpdateRequest
fn clone(&self) -> RUMApplicationUpdateRequest
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 RUMApplicationUpdateRequest
impl Debug for RUMApplicationUpdateRequest
Source§impl<'de> Deserialize<'de> for RUMApplicationUpdateRequest
impl<'de> Deserialize<'de> for RUMApplicationUpdateRequest
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
impl StructuralPartialEq for RUMApplicationUpdateRequest
Auto Trait Implementations§
impl Freeze for RUMApplicationUpdateRequest
impl RefUnwindSafe for RUMApplicationUpdateRequest
impl Send for RUMApplicationUpdateRequest
impl Sync for RUMApplicationUpdateRequest
impl Unpin for RUMApplicationUpdateRequest
impl UnwindSafe for RUMApplicationUpdateRequest
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