orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 6.5.0
 * 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 CopilotConversationShare {
    #[serde(rename = "conversation_id")]
    pub conversation_id: uuid::Uuid,
    /// The recipient — a username in this workspace.
    #[serde(rename = "shared_with")]
    pub shared_with: String,
    /// The authenticated identity that issued the grant. Recorded rather than derived from the conversation's `created_by`, which is an attribution written at save time and not a proof of authorship.
    #[serde(rename = "shared_by")]
    pub shared_by: String,
    /// When access was first handed over. A repeated grant of the same pair does not rewrite it.
    #[serde(rename = "created_at")]
    pub created_at: String,
}

impl CopilotConversationShare {
    pub fn new(conversation_id: uuid::Uuid, shared_with: String, shared_by: String, created_at: String) -> CopilotConversationShare {
        CopilotConversationShare {
            conversation_id,
            shared_with,
            shared_by,
            created_at,
        }
    }
}