1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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,
}
}
}