akeyless_api/models/regexp_tokenizer_info.rs
1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RegexpTokenizerInfo : RegexpTokenizerInfo represents a general Regexp tokenization template
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RegexpTokenizerInfo {
17 /// The Alphabet used for the tokenization
18 #[serde(rename = "alphabet", skip_serializing_if = "Option::is_none")]
19 pub alphabet: Option<String>,
20 /// Transformation to perform on the decrypted data
21 #[serde(rename = "decoding_template", skip_serializing_if = "Option::is_none")]
22 pub decoding_template: Option<String>,
23 /// Transformation to perform on the encrypted data, if the required output template doesn't match the input string The output Should still be valid for the Pattern, otherwise the secret would be able to be decrypted.
24 #[serde(rename = "encoding_template", skip_serializing_if = "Option::is_none")]
25 pub encoding_template: Option<String>,
26 /// Regexp pattern to extract and deposit the text/encdata
27 #[serde(rename = "pattern", skip_serializing_if = "Option::is_none")]
28 pub pattern: Option<String>,
29}
30
31impl RegexpTokenizerInfo {
32 /// RegexpTokenizerInfo represents a general Regexp tokenization template
33 pub fn new() -> RegexpTokenizerInfo {
34 RegexpTokenizerInfo {
35 alphabet: None,
36 decoding_template: None,
37 encoding_template: None,
38 pattern: None,
39 }
40 }
41}
42