#[non_exhaustive]pub struct FleetDeploymentConfigureCreateRequest {
pub data: FleetDeploymentConfigureCreate,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}Expand description
Request payload for creating a new deployment.
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: FleetDeploymentConfigureCreateData for creating a new deployment.
additional_properties: BTreeMap<String, Value>Implementations§
Source§impl FleetDeploymentConfigureCreateRequest
impl FleetDeploymentConfigureCreateRequest
Sourcepub fn new(
data: FleetDeploymentConfigureCreate,
) -> FleetDeploymentConfigureCreateRequest
pub fn new( data: FleetDeploymentConfigureCreate, ) -> FleetDeploymentConfigureCreateRequest
Examples found in repository?
examples/v2_fleet-automation_CreateFleetDeploymentConfigure.rs (lines 15-26)
14async fn main() {
15 let body = FleetDeploymentConfigureCreateRequest::new(FleetDeploymentConfigureCreate::new(
16 FleetDeploymentConfigureAttributes::new(vec![FleetDeploymentOperation::new(
17 FleetDeploymentFileOp::MERGE_PATCH,
18 "/datadog.yaml".to_string(),
19 )
20 .patch(BTreeMap::from([
21 ("log_level".to_string(), Value::from("debug")),
22 ("logs_enabled".to_string(), Value::from("True")),
23 ]))])
24 .filter_query("env:prod AND service:web".to_string()),
25 FleetDeploymentResourceType::DEPLOYMENT,
26 ));
27 let mut configuration = datadog::Configuration::new();
28 configuration.set_unstable_operation_enabled("v2.CreateFleetDeploymentConfigure", true);
29 let api = FleetAutomationAPI::with_config(configuration);
30 let resp = api.create_fleet_deployment_configure(body).await;
31 if let Ok(value) = resp {
32 println!("{:#?}", value);
33 } else {
34 println!("{:#?}", resp.unwrap_err());
35 }
36}pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for FleetDeploymentConfigureCreateRequest
impl Clone for FleetDeploymentConfigureCreateRequest
Source§fn clone(&self) -> FleetDeploymentConfigureCreateRequest
fn clone(&self) -> FleetDeploymentConfigureCreateRequest
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 FleetDeploymentConfigureCreateRequest
impl<'de> Deserialize<'de> for FleetDeploymentConfigureCreateRequest
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 FleetDeploymentConfigureCreateRequest
impl PartialEq for FleetDeploymentConfigureCreateRequest
Source§fn eq(&self, other: &FleetDeploymentConfigureCreateRequest) -> bool
fn eq(&self, other: &FleetDeploymentConfigureCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FleetDeploymentConfigureCreateRequest
Auto Trait Implementations§
impl Freeze for FleetDeploymentConfigureCreateRequest
impl RefUnwindSafe for FleetDeploymentConfigureCreateRequest
impl Send for FleetDeploymentConfigureCreateRequest
impl Sync for FleetDeploymentConfigureCreateRequest
impl Unpin for FleetDeploymentConfigureCreateRequest
impl UnwindSafe for FleetDeploymentConfigureCreateRequest
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