Struct datadog_api_client::datadogV2::model::model_service_definition_v1::ServiceDefinitionV1
source · #[non_exhaustive]pub struct ServiceDefinitionV1 {
pub contact: Option<ServiceDefinitionV1Contact>,
pub extensions: Option<BTreeMap<String, Value>>,
pub external_resources: Option<Vec<ServiceDefinitionV1Resource>>,
pub info: ServiceDefinitionV1Info,
pub integrations: Option<ServiceDefinitionV1Integrations>,
pub org: Option<ServiceDefinitionV1Org>,
pub schema_version: ServiceDefinitionV1Version,
pub tags: Option<Vec<String>>,
/* private fields */
}
Expand description
Deprecated - Service definition V1 for providing additional service metadata and integrations.
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.contact: Option<ServiceDefinitionV1Contact>
Contact information about the service.
extensions: Option<BTreeMap<String, Value>>
Extensions to V1 schema.
external_resources: Option<Vec<ServiceDefinitionV1Resource>>
A list of external links related to the services.
info: ServiceDefinitionV1Info
Basic information about a service.
integrations: Option<ServiceDefinitionV1Integrations>
Third party integrations that Datadog supports.
org: Option<ServiceDefinitionV1Org>
Org related information about the service.
schema_version: ServiceDefinitionV1Version
Schema version being used.
A set of custom tags.
Implementations§
source§impl ServiceDefinitionV1
impl ServiceDefinitionV1
pub fn new( info: ServiceDefinitionV1Info, schema_version: ServiceDefinitionV1Version, ) -> ServiceDefinitionV1
pub fn contact(self, value: ServiceDefinitionV1Contact) -> Self
pub fn extensions(self, value: BTreeMap<String, Value>) -> Self
pub fn external_resources(self, value: Vec<ServiceDefinitionV1Resource>) -> Self
pub fn integrations(self, value: ServiceDefinitionV1Integrations) -> Self
pub fn org(self, value: ServiceDefinitionV1Org) -> Self
Trait Implementations§
source§impl Clone for ServiceDefinitionV1
impl Clone for ServiceDefinitionV1
source§fn clone(&self) -> ServiceDefinitionV1
fn clone(&self) -> ServiceDefinitionV1
Returns a copy 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 ServiceDefinitionV1
impl Debug for ServiceDefinitionV1
source§impl<'de> Deserialize<'de> for ServiceDefinitionV1
impl<'de> Deserialize<'de> for ServiceDefinitionV1
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 ServiceDefinitionV1
impl PartialEq for ServiceDefinitionV1
source§fn eq(&self, other: &ServiceDefinitionV1) -> bool
fn eq(&self, other: &ServiceDefinitionV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServiceDefinitionV1
impl Serialize for ServiceDefinitionV1
impl StructuralPartialEq for ServiceDefinitionV1
Auto Trait Implementations§
impl Freeze for ServiceDefinitionV1
impl RefUnwindSafe for ServiceDefinitionV1
impl Send for ServiceDefinitionV1
impl Sync for ServiceDefinitionV1
impl Unpin for ServiceDefinitionV1
impl UnwindSafe for ServiceDefinitionV1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)