tapis-files 0.3.0

The Tapis Files API provides for management of file resources on Tapis systems
Documentation
/*
 * Tapis Files API
 *
 * The Tapis Files API provides for management of file resources on Tapis systems
 *
 * The version of the OpenAPI document: 1.8.2
 * 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 SharedFileObject {
    /// Username who shared the file/directory
    #[serde(rename = "creator", skip_serializing_if = "Option::is_none")]
    pub creator: Option<String>,
    /// Username who was granted access
    #[serde(rename = "sharedWith", skip_serializing_if = "Option::is_none")]
    pub shared_with: Option<String>,
    /// Creation timestamp in UTC
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<String>,
    /// Number of seconds in which the share was set to expire.
    #[serde(rename = "expiresIn", skip_serializing_if = "Option::is_none")]
    pub expires_in: Option<i32>,
    /// Link to the shared file.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

impl SharedFileObject {
    pub fn new() -> SharedFileObject {
        SharedFileObject {
            creator: None,
            shared_with: None,
            created: None,
            expires_in: None,
            url: None,
        }
    }
}