/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OrvantaFilePreview {
    #[serde(rename = "msg", skip_serializing_if = "Option::is_none")]
    pub msg: Option<String>,
    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[serde(rename = "content_type")]
    pub content_type: ContentType,
}

impl OrvantaFilePreview {
    pub fn new(content_type: ContentType) -> OrvantaFilePreview {
        OrvantaFilePreview {
            msg: None,
            content: None,
            content_type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ContentType {
    #[serde(rename = "RawText")]
    RawText,
    #[serde(rename = "Csv")]
    Csv,
    #[serde(rename = "Parquet")]
    Parquet,
    #[serde(rename = "Unknown")]
    Unknown,
}

impl Default for ContentType {
    fn default() -> ContentType {
        Self::RawText
    }
}

