#[non_exhaustive]pub struct DatadogAPIKeyUpdate {
pub api_key: Option<String>,
pub app_key: Option<String>,
pub datacenter: Option<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: Option<String>
The DatadogAPIKeyUpdate
api_key
.
app_key: Option<String>
The DatadogAPIKeyUpdate
app_key
.
datacenter: Option<String>
The DatadogAPIKeyUpdate
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 DatadogAPIKeyUpdate
impl DatadogAPIKeyUpdate
pub fn new(type_: DatadogAPIKeyType) -> DatadogAPIKeyUpdate
pub fn api_key(self, value: String) -> Self
pub fn app_key(self, value: String) -> Self
pub fn datacenter(self, value: String) -> Self
pub fn subdomain(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for DatadogAPIKeyUpdate
impl Clone for DatadogAPIKeyUpdate
Source§fn clone(&self) -> DatadogAPIKeyUpdate
fn clone(&self) -> DatadogAPIKeyUpdate
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 DatadogAPIKeyUpdate
impl Debug for DatadogAPIKeyUpdate
Source§impl<'de> Deserialize<'de> for DatadogAPIKeyUpdate
impl<'de> Deserialize<'de> for DatadogAPIKeyUpdate
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 DatadogAPIKeyUpdate
impl PartialEq for DatadogAPIKeyUpdate
Source§impl Serialize for DatadogAPIKeyUpdate
impl Serialize for DatadogAPIKeyUpdate
impl StructuralPartialEq for DatadogAPIKeyUpdate
Auto Trait Implementations§
impl Freeze for DatadogAPIKeyUpdate
impl RefUnwindSafe for DatadogAPIKeyUpdate
impl Send for DatadogAPIKeyUpdate
impl Sync for DatadogAPIKeyUpdate
impl Unpin for DatadogAPIKeyUpdate
impl UnwindSafe for DatadogAPIKeyUpdate
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