#[non_exhaustive]pub struct DatadogAPIKey {
pub api_key: String,
pub app_key: String,
pub datacenter: String,
pub subdomain: Option<String>,
pub type_: DatadogAPIKeyType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The definition of the DatadogAPIKey
object.
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_key: String
The DatadogAPIKey
api_key
.
app_key: String
The DatadogAPIKey
app_key
.
datacenter: String
The DatadogAPIKey
datacenter
.
subdomain: Option<String>
Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses <https://acme.datadoghq.com
> to access Datadog, set this field to acme
. If this field is omitted, generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)).
type_: DatadogAPIKeyType
The definition of the DatadogAPIKey
object.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl DatadogAPIKey
impl DatadogAPIKey
pub fn new( api_key: String, app_key: String, datacenter: String, type_: DatadogAPIKeyType, ) -> DatadogAPIKey
pub fn subdomain(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for DatadogAPIKey
impl Clone for DatadogAPIKey
Source§fn clone(&self) -> DatadogAPIKey
fn clone(&self) -> DatadogAPIKey
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 DatadogAPIKey
impl Debug for DatadogAPIKey
Source§impl<'de> Deserialize<'de> for DatadogAPIKey
impl<'de> Deserialize<'de> for DatadogAPIKey
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 DatadogAPIKey
impl PartialEq for DatadogAPIKey
Source§impl Serialize for DatadogAPIKey
impl Serialize for DatadogAPIKey
impl StructuralPartialEq for DatadogAPIKey
Auto Trait Implementations§
impl Freeze for DatadogAPIKey
impl RefUnwindSafe for DatadogAPIKey
impl Send for DatadogAPIKey
impl Sync for DatadogAPIKey
impl Unpin for DatadogAPIKey
impl UnwindSafe for DatadogAPIKey
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