datadog-api-client 0.30.0

Rust client for the Datadog API.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2019-Present Datadog, Inc.
use serde::de::{Error, MapAccess, Visitor};
use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// An indicator of compromise with extended context from your environment.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct IoCIndicatorDetailed {
    /// Additional domain-specific context from threat intelligence sources.
    #[serde(rename = "additional_data")]
    pub additional_data: Option<std::collections::BTreeMap<String, serde_json::Value>>,
    /// Autonomous system CIDR block.
    #[serde(rename = "as_cidr_block")]
    pub as_cidr_block: Option<String>,
    /// Geographic location information for an IP indicator.
    #[serde(rename = "as_geo")]
    pub as_geo: Option<crate::datadogV2::model::IoCGeoLocation>,
    /// Autonomous system number.
    #[serde(rename = "as_number")]
    pub as_number: Option<String>,
    /// Autonomous system organization name.
    #[serde(rename = "as_organization")]
    pub as_organization: Option<String>,
    /// Autonomous system type.
    #[serde(rename = "as_type")]
    pub as_type: Option<String>,
    /// Threat intelligence sources that flagged this indicator as benign.
    #[serde(
        rename = "benign_sources",
        default,
        with = "::serde_with::rust::double_option"
    )]
    pub benign_sources: Option<Option<Vec<crate::datadogV2::model::IoCSource>>>,
    /// Threat categories associated with the indicator.
    #[serde(rename = "categories")]
    pub categories: Option<Vec<String>>,
    /// Critical assets associated with this indicator.
    #[serde(rename = "critical_assets")]
    pub critical_assets: Option<Vec<String>>,
    /// Timestamp when the indicator was first seen.
    #[serde(rename = "first_seen")]
    pub first_seen: Option<chrono::DateTime<chrono::Utc>>,
    /// Hosts associated with this indicator.
    #[serde(rename = "hosts")]
    pub hosts: Option<Vec<String>>,
    /// Unique identifier for the indicator.
    #[serde(rename = "id")]
    pub id: Option<String>,
    /// The indicator value (for example, an IP address or domain).
    #[serde(rename = "indicator")]
    pub indicator: Option<String>,
    /// Type of indicator (for example, IP address or domain).
    #[serde(rename = "indicator_type")]
    pub indicator_type: Option<String>,
    /// Timestamp when the indicator was last seen.
    #[serde(rename = "last_seen")]
    pub last_seen: Option<chrono::DateTime<chrono::Utc>>,
    /// Number of logs that matched this indicator.
    #[serde(rename = "log_matches")]
    pub log_matches: Option<i64>,
    /// Log sources where this indicator was observed.
    #[serde(rename = "log_sources")]
    pub log_sources: Option<Vec<String>>,
    /// Effect of a scoring factor on the indicator's threat score.
    #[serde(rename = "m_as_type")]
    pub m_as_type: Option<crate::datadogV2::model::IoCScoreEffect>,
    /// Effect of a scoring factor on the indicator's threat score.
    #[serde(rename = "m_persistence")]
    pub m_persistence: Option<crate::datadogV2::model::IoCScoreEffect>,
    /// Effect of a scoring factor on the indicator's threat score.
    #[serde(rename = "m_signal")]
    pub m_signal: Option<crate::datadogV2::model::IoCScoreEffect>,
    /// Effect of a scoring factor on the indicator's threat score.
    #[serde(rename = "m_sources")]
    pub m_sources: Option<crate::datadogV2::model::IoCScoreEffect>,
    /// Threat intelligence sources that flagged this indicator as malicious.
    #[serde(
        rename = "malicious_sources",
        default,
        with = "::serde_with::rust::double_option"
    )]
    pub malicious_sources: Option<Option<Vec<crate::datadogV2::model::IoCSource>>>,
    /// Effect of a scoring factor on the indicator's threat score.
    #[serde(rename = "max_trust_score")]
    pub max_trust_score: Option<crate::datadogV2::model::IoCScoreEffect>,
    /// Threat score for the indicator (0-100).
    #[serde(rename = "score")]
    pub score: Option<f64>,
    /// Services where this indicator was observed.
    #[serde(rename = "services")]
    pub services: Option<Vec<String>>,
    /// Number of security signals that matched this indicator.
    #[serde(rename = "signal_matches")]
    pub signal_matches: Option<i64>,
    /// Breakdown of security signals by severity.
    #[serde(rename = "signal_severity")]
    pub signal_severity: Option<Vec<crate::datadogV2::model::IoCSignalSeverityCount>>,
    /// Signal tier level.
    #[serde(rename = "signal_tier")]
    pub signal_tier: Option<i64>,
    /// Threat intelligence sources that flagged this indicator as suspicious.
    #[serde(
        rename = "suspicious_sources",
        default,
        with = "::serde_with::rust::double_option"
    )]
    pub suspicious_sources: Option<Option<Vec<crate::datadogV2::model::IoCSource>>>,
    /// Tags associated with the indicator.
    #[serde(rename = "tags")]
    pub tags: Option<Vec<String>>,
    /// Users associated with this indicator, grouped by category.
    #[serde(rename = "users")]
    pub users: Option<std::collections::BTreeMap<String, Vec<String>>>,
    #[serde(flatten)]
    pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
    #[serde(skip)]
    #[serde(default)]
    pub(crate) _unparsed: bool,
}

impl IoCIndicatorDetailed {
    pub fn new() -> IoCIndicatorDetailed {
        IoCIndicatorDetailed {
            additional_data: None,
            as_cidr_block: None,
            as_geo: None,
            as_number: None,
            as_organization: None,
            as_type: None,
            benign_sources: None,
            categories: None,
            critical_assets: None,
            first_seen: None,
            hosts: None,
            id: None,
            indicator: None,
            indicator_type: None,
            last_seen: None,
            log_matches: None,
            log_sources: None,
            m_as_type: None,
            m_persistence: None,
            m_signal: None,
            m_sources: None,
            malicious_sources: None,
            max_trust_score: None,
            score: None,
            services: None,
            signal_matches: None,
            signal_severity: None,
            signal_tier: None,
            suspicious_sources: None,
            tags: None,
            users: None,
            additional_properties: std::collections::BTreeMap::new(),
            _unparsed: false,
        }
    }

    pub fn additional_data(
        mut self,
        value: std::collections::BTreeMap<String, serde_json::Value>,
    ) -> Self {
        self.additional_data = Some(value);
        self
    }

    pub fn as_cidr_block(mut self, value: String) -> Self {
        self.as_cidr_block = Some(value);
        self
    }

    pub fn as_geo(mut self, value: crate::datadogV2::model::IoCGeoLocation) -> Self {
        self.as_geo = Some(value);
        self
    }

    pub fn as_number(mut self, value: String) -> Self {
        self.as_number = Some(value);
        self
    }

    pub fn as_organization(mut self, value: String) -> Self {
        self.as_organization = Some(value);
        self
    }

    pub fn as_type(mut self, value: String) -> Self {
        self.as_type = Some(value);
        self
    }

    pub fn benign_sources(
        mut self,
        value: Option<Vec<crate::datadogV2::model::IoCSource>>,
    ) -> Self {
        self.benign_sources = Some(value);
        self
    }

    pub fn categories(mut self, value: Vec<String>) -> Self {
        self.categories = Some(value);
        self
    }

    pub fn critical_assets(mut self, value: Vec<String>) -> Self {
        self.critical_assets = Some(value);
        self
    }

    pub fn first_seen(mut self, value: chrono::DateTime<chrono::Utc>) -> Self {
        self.first_seen = Some(value);
        self
    }

    pub fn hosts(mut self, value: Vec<String>) -> Self {
        self.hosts = Some(value);
        self
    }

    pub fn id(mut self, value: String) -> Self {
        self.id = Some(value);
        self
    }

    pub fn indicator(mut self, value: String) -> Self {
        self.indicator = Some(value);
        self
    }

    pub fn indicator_type(mut self, value: String) -> Self {
        self.indicator_type = Some(value);
        self
    }

    pub fn last_seen(mut self, value: chrono::DateTime<chrono::Utc>) -> Self {
        self.last_seen = Some(value);
        self
    }

    pub fn log_matches(mut self, value: i64) -> Self {
        self.log_matches = Some(value);
        self
    }

    pub fn log_sources(mut self, value: Vec<String>) -> Self {
        self.log_sources = Some(value);
        self
    }

    pub fn m_as_type(mut self, value: crate::datadogV2::model::IoCScoreEffect) -> Self {
        self.m_as_type = Some(value);
        self
    }

    pub fn m_persistence(mut self, value: crate::datadogV2::model::IoCScoreEffect) -> Self {
        self.m_persistence = Some(value);
        self
    }

    pub fn m_signal(mut self, value: crate::datadogV2::model::IoCScoreEffect) -> Self {
        self.m_signal = Some(value);
        self
    }

    pub fn m_sources(mut self, value: crate::datadogV2::model::IoCScoreEffect) -> Self {
        self.m_sources = Some(value);
        self
    }

    pub fn malicious_sources(
        mut self,
        value: Option<Vec<crate::datadogV2::model::IoCSource>>,
    ) -> Self {
        self.malicious_sources = Some(value);
        self
    }

    pub fn max_trust_score(mut self, value: crate::datadogV2::model::IoCScoreEffect) -> Self {
        self.max_trust_score = Some(value);
        self
    }

    pub fn score(mut self, value: f64) -> Self {
        self.score = Some(value);
        self
    }

    pub fn services(mut self, value: Vec<String>) -> Self {
        self.services = Some(value);
        self
    }

    pub fn signal_matches(mut self, value: i64) -> Self {
        self.signal_matches = Some(value);
        self
    }

    pub fn signal_severity(
        mut self,
        value: Vec<crate::datadogV2::model::IoCSignalSeverityCount>,
    ) -> Self {
        self.signal_severity = Some(value);
        self
    }

    pub fn signal_tier(mut self, value: i64) -> Self {
        self.signal_tier = Some(value);
        self
    }

    pub fn suspicious_sources(
        mut self,
        value: Option<Vec<crate::datadogV2::model::IoCSource>>,
    ) -> Self {
        self.suspicious_sources = Some(value);
        self
    }

    pub fn tags(mut self, value: Vec<String>) -> Self {
        self.tags = Some(value);
        self
    }

    pub fn users(mut self, value: std::collections::BTreeMap<String, Vec<String>>) -> Self {
        self.users = Some(value);
        self
    }

    pub fn additional_properties(
        mut self,
        value: std::collections::BTreeMap<String, serde_json::Value>,
    ) -> Self {
        self.additional_properties = value;
        self
    }
}

impl Default for IoCIndicatorDetailed {
    fn default() -> Self {
        Self::new()
    }
}

impl<'de> Deserialize<'de> for IoCIndicatorDetailed {
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where
        D: Deserializer<'de>,
    {
        struct IoCIndicatorDetailedVisitor;
        impl<'a> Visitor<'a> for IoCIndicatorDetailedVisitor {
            type Value = IoCIndicatorDetailed;

            fn expecting(&self, f: &mut Formatter<'_>) -> fmt::Result {
                f.write_str("a mapping")
            }

            fn visit_map<M>(self, mut map: M) -> Result<Self::Value, M::Error>
            where
                M: MapAccess<'a>,
            {
                let mut additional_data: Option<
                    std::collections::BTreeMap<String, serde_json::Value>,
                > = None;
                let mut as_cidr_block: Option<String> = None;
                let mut as_geo: Option<crate::datadogV2::model::IoCGeoLocation> = None;
                let mut as_number: Option<String> = None;
                let mut as_organization: Option<String> = None;
                let mut as_type: Option<String> = None;
                let mut benign_sources: Option<Option<Vec<crate::datadogV2::model::IoCSource>>> =
                    None;
                let mut categories: Option<Vec<String>> = None;
                let mut critical_assets: Option<Vec<String>> = None;
                let mut first_seen: Option<chrono::DateTime<chrono::Utc>> = None;
                let mut hosts: Option<Vec<String>> = None;
                let mut id: Option<String> = None;
                let mut indicator: Option<String> = None;
                let mut indicator_type: Option<String> = None;
                let mut last_seen: Option<chrono::DateTime<chrono::Utc>> = None;
                let mut log_matches: Option<i64> = None;
                let mut log_sources: Option<Vec<String>> = None;
                let mut m_as_type: Option<crate::datadogV2::model::IoCScoreEffect> = None;
                let mut m_persistence: Option<crate::datadogV2::model::IoCScoreEffect> = None;
                let mut m_signal: Option<crate::datadogV2::model::IoCScoreEffect> = None;
                let mut m_sources: Option<crate::datadogV2::model::IoCScoreEffect> = None;
                let mut malicious_sources: Option<Option<Vec<crate::datadogV2::model::IoCSource>>> =
                    None;
                let mut max_trust_score: Option<crate::datadogV2::model::IoCScoreEffect> = None;
                let mut score: Option<f64> = None;
                let mut services: Option<Vec<String>> = None;
                let mut signal_matches: Option<i64> = None;
                let mut signal_severity: Option<
                    Vec<crate::datadogV2::model::IoCSignalSeverityCount>,
                > = None;
                let mut signal_tier: Option<i64> = None;
                let mut suspicious_sources: Option<
                    Option<Vec<crate::datadogV2::model::IoCSource>>,
                > = None;
                let mut tags: Option<Vec<String>> = None;
                let mut users: Option<std::collections::BTreeMap<String, Vec<String>>> = None;
                let mut additional_properties: std::collections::BTreeMap<
                    String,
                    serde_json::Value,
                > = std::collections::BTreeMap::new();
                let mut _unparsed = false;

                while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
                    match k.as_str() {
                        "additional_data" => {
                            if v.is_null() {
                                continue;
                            }
                            additional_data =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "as_cidr_block" => {
                            if v.is_null() {
                                continue;
                            }
                            as_cidr_block =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "as_geo" => {
                            if v.is_null() {
                                continue;
                            }
                            as_geo = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "as_number" => {
                            if v.is_null() {
                                continue;
                            }
                            as_number = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "as_organization" => {
                            if v.is_null() {
                                continue;
                            }
                            as_organization =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "as_type" => {
                            if v.is_null() {
                                continue;
                            }
                            as_type = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "benign_sources" => {
                            benign_sources =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "categories" => {
                            if v.is_null() {
                                continue;
                            }
                            categories = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "critical_assets" => {
                            if v.is_null() {
                                continue;
                            }
                            critical_assets =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "first_seen" => {
                            if v.is_null() {
                                continue;
                            }
                            first_seen = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "hosts" => {
                            if v.is_null() {
                                continue;
                            }
                            hosts = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "id" => {
                            if v.is_null() {
                                continue;
                            }
                            id = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "indicator" => {
                            if v.is_null() {
                                continue;
                            }
                            indicator = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "indicator_type" => {
                            if v.is_null() {
                                continue;
                            }
                            indicator_type =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "last_seen" => {
                            if v.is_null() {
                                continue;
                            }
                            last_seen = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "log_matches" => {
                            if v.is_null() {
                                continue;
                            }
                            log_matches =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "log_sources" => {
                            if v.is_null() {
                                continue;
                            }
                            log_sources =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "m_as_type" => {
                            if v.is_null() {
                                continue;
                            }
                            m_as_type = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                            if let Some(ref _m_as_type) = m_as_type {
                                match _m_as_type {
                                    crate::datadogV2::model::IoCScoreEffect::UnparsedObject(
                                        _m_as_type,
                                    ) => {
                                        _unparsed = true;
                                    }
                                    _ => {}
                                }
                            }
                        }
                        "m_persistence" => {
                            if v.is_null() {
                                continue;
                            }
                            m_persistence =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                            if let Some(ref _m_persistence) = m_persistence {
                                match _m_persistence {
                                    crate::datadogV2::model::IoCScoreEffect::UnparsedObject(
                                        _m_persistence,
                                    ) => {
                                        _unparsed = true;
                                    }
                                    _ => {}
                                }
                            }
                        }
                        "m_signal" => {
                            if v.is_null() {
                                continue;
                            }
                            m_signal = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                            if let Some(ref _m_signal) = m_signal {
                                match _m_signal {
                                    crate::datadogV2::model::IoCScoreEffect::UnparsedObject(
                                        _m_signal,
                                    ) => {
                                        _unparsed = true;
                                    }
                                    _ => {}
                                }
                            }
                        }
                        "m_sources" => {
                            if v.is_null() {
                                continue;
                            }
                            m_sources = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                            if let Some(ref _m_sources) = m_sources {
                                match _m_sources {
                                    crate::datadogV2::model::IoCScoreEffect::UnparsedObject(
                                        _m_sources,
                                    ) => {
                                        _unparsed = true;
                                    }
                                    _ => {}
                                }
                            }
                        }
                        "malicious_sources" => {
                            malicious_sources =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "max_trust_score" => {
                            if v.is_null() {
                                continue;
                            }
                            max_trust_score =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                            if let Some(ref _max_trust_score) = max_trust_score {
                                match _max_trust_score {
                                    crate::datadogV2::model::IoCScoreEffect::UnparsedObject(
                                        _max_trust_score,
                                    ) => {
                                        _unparsed = true;
                                    }
                                    _ => {}
                                }
                            }
                        }
                        "score" => {
                            if v.is_null() || v.as_str() == Some("") {
                                continue;
                            }
                            score = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "services" => {
                            if v.is_null() {
                                continue;
                            }
                            services = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "signal_matches" => {
                            if v.is_null() {
                                continue;
                            }
                            signal_matches =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "signal_severity" => {
                            if v.is_null() {
                                continue;
                            }
                            signal_severity =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "signal_tier" => {
                            if v.is_null() {
                                continue;
                            }
                            signal_tier =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "suspicious_sources" => {
                            suspicious_sources =
                                Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "tags" => {
                            if v.is_null() {
                                continue;
                            }
                            tags = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        "users" => {
                            if v.is_null() {
                                continue;
                            }
                            users = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
                        }
                        &_ => {
                            if let Ok(value) = serde_json::from_value(v.clone()) {
                                additional_properties.insert(k, value);
                            }
                        }
                    }
                }

                let content = IoCIndicatorDetailed {
                    additional_data,
                    as_cidr_block,
                    as_geo,
                    as_number,
                    as_organization,
                    as_type,
                    benign_sources,
                    categories,
                    critical_assets,
                    first_seen,
                    hosts,
                    id,
                    indicator,
                    indicator_type,
                    last_seen,
                    log_matches,
                    log_sources,
                    m_as_type,
                    m_persistence,
                    m_signal,
                    m_sources,
                    malicious_sources,
                    max_trust_score,
                    score,
                    services,
                    signal_matches,
                    signal_severity,
                    signal_tier,
                    suspicious_sources,
                    tags,
                    users,
                    additional_properties,
                    _unparsed,
                };

                Ok(content)
            }
        }

        deserializer.deserialize_any(IoCIndicatorDetailedVisitor)
    }
}