#[non_exhaustive]pub struct EntityV3API {
pub api_version: EntityV3APIVersion,
pub datadog: Option<EntityV3APIDatadog>,
pub extensions: Option<BTreeMap<String, Value>>,
pub integrations: Option<EntityV3Integrations>,
pub kind: EntityV3APIKind,
pub metadata: EntityV3Metadata,
pub spec: Option<EntityV3APISpec>,
/* private fields */
}
Expand description
Schema for API entities.
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.api_version: EntityV3APIVersion
The schema version of entity type. The field is known as schema-version in the previous version.
datadog: Option<EntityV3APIDatadog>
Datadog product integrations for the API entity.
extensions: Option<BTreeMap<String, Value>>
Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field.
integrations: Option<EntityV3Integrations>
A base schema for defining third-party integrations.
kind: EntityV3APIKind
The definition of Entity V3 API Kind object.
metadata: EntityV3Metadata
The definition of Entity V3 Metadata object.
spec: Option<EntityV3APISpec>
The definition of Entity V3 API Spec object.
Implementations§
Source§impl EntityV3API
impl EntityV3API
pub fn new( api_version: EntityV3APIVersion, kind: EntityV3APIKind, metadata: EntityV3Metadata, ) -> EntityV3API
pub fn datadog(self, value: EntityV3APIDatadog) -> Self
pub fn extensions(self, value: BTreeMap<String, Value>) -> Self
pub fn integrations(self, value: EntityV3Integrations) -> Self
pub fn spec(self, value: EntityV3APISpec) -> Self
Trait Implementations§
Source§impl Clone for EntityV3API
impl Clone for EntityV3API
Source§fn clone(&self) -> EntityV3API
fn clone(&self) -> EntityV3API
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 EntityV3API
impl Debug for EntityV3API
Source§impl<'de> Deserialize<'de> for EntityV3API
impl<'de> Deserialize<'de> for EntityV3API
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 EntityV3API
impl PartialEq for EntityV3API
Source§impl Serialize for EntityV3API
impl Serialize for EntityV3API
impl StructuralPartialEq for EntityV3API
Auto Trait Implementations§
impl Freeze for EntityV3API
impl RefUnwindSafe for EntityV3API
impl Send for EntityV3API
impl Sync for EntityV3API
impl Unpin for EntityV3API
impl UnwindSafe for EntityV3API
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