#[non_exhaustive]pub struct ActionConnectionDataUpdate {
pub attributes: ActionConnectionAttributesUpdate,
pub type_: ActionConnectionDataType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Data related to the connection update.
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: ActionConnectionAttributesUpdate
The definition of ActionConnectionAttributesUpdate
object.
type_: ActionConnectionDataType
The definition of ActionConnectionDataType
object.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl ActionConnectionDataUpdate
impl ActionConnectionDataUpdate
Sourcepub fn new(
attributes: ActionConnectionAttributesUpdate,
type_: ActionConnectionDataType,
) -> ActionConnectionDataUpdate
pub fn new( attributes: ActionConnectionAttributesUpdate, type_: ActionConnectionDataType, ) -> ActionConnectionDataUpdate
Examples found in repository?
examples/v2_action-connection_UpdateActionConnection.rs (lines 18-33)
17async fn main() {
18 let body = UpdateActionConnectionRequest::new(ActionConnectionDataUpdate::new(
19 ActionConnectionAttributesUpdate::new()
20 .integration(ActionConnectionIntegrationUpdate::AWSIntegrationUpdate(
21 Box::new(
22 AWSIntegrationUpdate::new(AWSIntegrationType::AWS).credentials(
23 AWSCredentialsUpdate::AWSAssumeRoleUpdate(Box::new(
24 AWSAssumeRoleUpdate::new(AWSAssumeRoleType::AWSASSUMEROLE)
25 .account_id("123456789123".to_string())
26 .role("MyRoleUpdated".to_string()),
27 )),
28 ),
29 ),
30 ))
31 .name("Cassette Connection".to_string()),
32 ActionConnectionDataType::ACTION_CONNECTION,
33 ));
34 let configuration = datadog::Configuration::new();
35 let api = ActionConnectionAPI::with_config(configuration);
36 let resp = api
37 .update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d".to_string(), body)
38 .await;
39 if let Ok(value) = resp {
40 println!("{:#?}", value);
41 } else {
42 println!("{:#?}", resp.unwrap_err());
43 }
44}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for ActionConnectionDataUpdate
impl Clone for ActionConnectionDataUpdate
Source§fn clone(&self) -> ActionConnectionDataUpdate
fn clone(&self) -> ActionConnectionDataUpdate
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 ActionConnectionDataUpdate
impl Debug for ActionConnectionDataUpdate
Source§impl<'de> Deserialize<'de> for ActionConnectionDataUpdate
impl<'de> Deserialize<'de> for ActionConnectionDataUpdate
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 ActionConnectionDataUpdate
Auto Trait Implementations§
impl Freeze for ActionConnectionDataUpdate
impl RefUnwindSafe for ActionConnectionDataUpdate
impl Send for ActionConnectionDataUpdate
impl Sync for ActionConnectionDataUpdate
impl Unpin for ActionConnectionDataUpdate
impl UnwindSafe for ActionConnectionDataUpdate
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