antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * 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};

/// NewAccessLogEntryReadInfo : 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 NewAccessLogEntryReadInfo {
    /// 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>,
    #[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,
}

impl NewAccessLogEntryReadInfo {
    /// 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>, allowed_tags: models::TagSummary, redacted_tags: models::TagSummary, tokenized_tags: models::TagSummary, returned_records: i32, filtered_records: i32) -> NewAccessLogEntryReadInfo {
        NewAccessLogEntryReadInfo {
            parameters,
            allowed_tags: Box::new(allowed_tags),
            redacted_tags: Box::new(redacted_tags),
            tokenized_tags: Box::new(tokenized_tags),
            returned_records,
            filtered_records,
        }
    }
}