pub struct ProjectDetail {Show 16 fields
pub project_id: String,
pub tenant_id: String,
pub name: String,
pub description: Option<String>,
pub instructions: Option<String>,
pub knowledge_base_ids: Option<Vec<String>>,
pub file_ids: Option<Vec<String>>,
pub created_by: Option<String>,
pub visibility: Option<ProjectVisibility>,
pub shared_with: Option<Vec<ProjectGrant>>,
pub archived_at: Option<String>,
pub created_at: String,
pub updated_at: String,
pub sessions: Vec<ProjectDetailSession>,
pub session_count: i64,
pub access: ProjectGrantAccess,
}Expand description
A project with its chats and the caller’s own access level.
Fields§
§project_id: String§tenant_id: String§name: String§description: Option<String>§instructions: Option<String>Injected into the system prompt below the agent’s own prompt and above personal preferences.
knowledge_base_ids: Option<Vec<String>>§file_ids: Option<Vec<String>>Ids that no longer resolve to a file in this tenant are dropped on write — an attachment that lies is worse than a rejected one.
created_by: Option<String>Owns a private project outright.
visibility: Option<ProjectVisibility>tenant (the default, and what every pre-existing project is) or private.
Ignored while visibility is tenant.
archived_at: Option<String>Absent or null when the project is live. Archiving hides it from the default list and loses nothing.
created_at: String§updated_at: String§sessions: Vec<ProjectDetailSession>The chats filed under this project, most recently updated first.
session_count: i64§access: ProjectGrantAccessWhat THIS caller may do. none never reaches a client — it is answered as 404.
Trait Implementations§
Source§impl Clone for ProjectDetail
impl Clone for ProjectDetail
Source§fn clone(&self) -> ProjectDetail
fn clone(&self) -> ProjectDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectDetail
impl Debug for ProjectDetail
Source§impl Default for ProjectDetail
impl Default for ProjectDetail
Source§fn default() -> ProjectDetail
fn default() -> ProjectDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectDetail
impl<'de> Deserialize<'de> for ProjectDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectDetail
impl PartialEq for ProjectDetail
Source§impl Serialize for ProjectDetail
impl Serialize for ProjectDetail
impl StructuralPartialEq for ProjectDetail
Auto Trait Implementations§
impl Freeze for ProjectDetail
impl RefUnwindSafe for ProjectDetail
impl Send for ProjectDetail
impl Sync for ProjectDetail
impl Unpin for ProjectDetail
impl UnsafeUnpin for ProjectDetail
impl UnwindSafe for ProjectDetail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more