/*
 * Streams API
 *
 * Manage Tapis Streams API.
 *
 * The version of the OpenAPI document: 1
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BasicResult {
    /// Name of the resource.
    #[serde(rename = "resource_name", skip_serializing_if = "Option::is_none")]
    pub resource_name: Option<String>,
    /// Id of the resource.
    #[serde(rename = "resource_id", skip_serializing_if = "Option::is_none")]
    pub resource_id: Option<String>,
    /// Owner of the resource
    #[serde(rename = "resource_owner", skip_serializing_if = "Option::is_none")]
    pub resource_owner: Option<String>,
    /// Type of the resource
    #[serde(rename = "resource_type", skip_serializing_if = "Option::is_none")]
    pub resource_type: Option<String>,
}

impl BasicResult {
    pub fn new() -> BasicResult {
        BasicResult {
            resource_name: None,
            resource_id: None,
            resource_owner: None,
            resource_type: None,
        }
    }
}
