#[non_exhaustive]pub struct GetServiceDefinitionOptionalParams {
pub schema_version: Option<ServiceDefinitionSchemaVersions>,
}
Expand description
GetServiceDefinitionOptionalParams is a struct for passing parameters to the method ServiceDefinitionAPI::get_service_definition
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.schema_version: Option<ServiceDefinitionSchemaVersions>
The schema version desired in the response.
Implementations§
Source§impl GetServiceDefinitionOptionalParams
impl GetServiceDefinitionOptionalParams
Sourcepub fn schema_version(self, value: ServiceDefinitionSchemaVersions) -> Self
pub fn schema_version(self, value: ServiceDefinitionSchemaVersions) -> Self
The schema version desired in the response.
Examples found in repository?
examples/v2_service-definition_GetServiceDefinition.rs (line 15)
8async fn main() {
9 let configuration = datadog::Configuration::new();
10 let api = ServiceDefinitionAPI::with_config(configuration);
11 let resp = api
12 .get_service_definition(
13 "service-definition-test".to_string(),
14 GetServiceDefinitionOptionalParams::default()
15 .schema_version(ServiceDefinitionSchemaVersions::V2_1),
16 )
17 .await;
18 if let Ok(value) = resp {
19 println!("{:#?}", value);
20 } else {
21 println!("{:#?}", resp.unwrap_err());
22 }
23}
Trait Implementations§
Source§impl Clone for GetServiceDefinitionOptionalParams
impl Clone for GetServiceDefinitionOptionalParams
Source§fn clone(&self) -> GetServiceDefinitionOptionalParams
fn clone(&self) -> GetServiceDefinitionOptionalParams
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 Default for GetServiceDefinitionOptionalParams
impl Default for GetServiceDefinitionOptionalParams
Source§fn default() -> GetServiceDefinitionOptionalParams
fn default() -> GetServiceDefinitionOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetServiceDefinitionOptionalParams
impl RefUnwindSafe for GetServiceDefinitionOptionalParams
impl Send for GetServiceDefinitionOptionalParams
impl Sync for GetServiceDefinitionOptionalParams
impl Unpin for GetServiceDefinitionOptionalParams
impl UnwindSafe for GetServiceDefinitionOptionalParams
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