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
/*
* Antimatter Public API
*
* Interact with the Antimatter Cloud API
*
* The version of the OpenAPI document: 2.0.13
* Contact: support@antimatter.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// AccessLogEntryReadInfo : information available if the operation is of type \"read\". allowedTags are those that were allowed without transformation during the read. redactedTags are those that were redacted during the read. tokenizedTags are those that were tokenized during the read.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccessLogEntryReadInfo {
/// the client-specified parameters representing the user on whose behalf this read is being carried out. Valid only for operation = read
#[serde(rename = "parameters")]
pub parameters: std::collections::HashMap<String, String>,
/// A human readable name for a read context
#[serde(rename = "readContext")]
pub read_context: String,
#[serde(rename = "allowedTags")]
pub allowed_tags: Box<models::TagSummary>,
#[serde(rename = "redactedTags")]
pub redacted_tags: Box<models::TagSummary>,
#[serde(rename = "tokenizedTags")]
pub tokenized_tags: Box<models::TagSummary>,
/// the number of records returned by the read, including those with allowed, redacted or tokenized spans
#[serde(rename = "returnedRecords")]
pub returned_records: i32,
/// the number of records that were completely filtered out during the read operation
#[serde(rename = "filteredRecords")]
pub filtered_records: i32,
/// the number of spans that were allowed during the read operation
#[serde(rename = "returnedSpans")]
pub returned_spans: i32,
/// the number of spans that were redacted during the read operation
#[serde(rename = "filteredSpans")]
pub filtered_spans: i32,
}
impl AccessLogEntryReadInfo {
/// information available if the operation is of type \"read\". allowedTags are those that were allowed without transformation during the read. redactedTags are those that were redacted during the read. tokenizedTags are those that were tokenized during the read.
pub fn new(parameters: std::collections::HashMap<String, String>, read_context: String, allowed_tags: models::TagSummary, redacted_tags: models::TagSummary, tokenized_tags: models::TagSummary, returned_records: i32, filtered_records: i32, returned_spans: i32, filtered_spans: i32) -> AccessLogEntryReadInfo {
AccessLogEntryReadInfo {
parameters,
read_context,
allowed_tags: Box::new(allowed_tags),
redacted_tags: Box::new(redacted_tags),
tokenized_tags: Box::new(tokenized_tags),
returned_records,
filtered_records,
returned_spans,
filtered_spans,
}
}
}