pub struct KnowledgebaseV2 {Show 14 fields
pub id: f64,
pub name: String,
pub description: Option<Option<String>>,
pub dbaas_id: f64,
pub status: Status,
pub last_sync: Option<Option<DateTime<FixedOffset>>>,
pub total_tokens: f64,
pub used_tokens: f64,
pub remaining_tokens: f64,
pub token_package_id: f64,
pub subscription_renewal_date: DateTime<FixedOffset>,
pub documents_count: f64,
pub agents_ids: Vec<f64>,
pub created_at: DateTime<FixedOffset>,
}Expand description
KnowledgebaseV2 : База знаний (версия API v2)
Fields§
§id: f64Уникальный идентификатор базы знаний
name: StringНазвание базы знаний
description: Option<Option<String>>Описание базы знаний
dbaas_id: f64ID базы данных opensearch
status: StatusСтатус базы знаний
last_sync: Option<Option<DateTime<FixedOffset>>>Дата последней синхронизации
total_tokens: f64Всего токенов выделено
used_tokens: f64Использовано токенов
remaining_tokens: f64Осталось токенов
token_package_id: f64ID пакета токенов
subscription_renewal_date: DateTime<FixedOffset>Дата обновления подписки
documents_count: f64Общее количество документов в базе знаний
agents_ids: Vec<f64>ID агентов, связанных с базой знаний
created_at: DateTime<FixedOffset>Дата создания базы знаний
Implementations§
Source§impl KnowledgebaseV2
impl KnowledgebaseV2
Sourcepub fn new(
id: f64,
name: String,
dbaas_id: f64,
status: Status,
total_tokens: f64,
used_tokens: f64,
remaining_tokens: f64,
token_package_id: f64,
subscription_renewal_date: DateTime<FixedOffset>,
documents_count: f64,
agents_ids: Vec<f64>,
created_at: DateTime<FixedOffset>,
) -> KnowledgebaseV2
pub fn new( id: f64, name: String, dbaas_id: f64, status: Status, total_tokens: f64, used_tokens: f64, remaining_tokens: f64, token_package_id: f64, subscription_renewal_date: DateTime<FixedOffset>, documents_count: f64, agents_ids: Vec<f64>, created_at: DateTime<FixedOffset>, ) -> KnowledgebaseV2
База знаний (версия API v2)
Trait Implementations§
Source§impl Clone for KnowledgebaseV2
impl Clone for KnowledgebaseV2
Source§fn clone(&self) -> KnowledgebaseV2
fn clone(&self) -> KnowledgebaseV2
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 KnowledgebaseV2
impl Debug for KnowledgebaseV2
Source§impl Default for KnowledgebaseV2
impl Default for KnowledgebaseV2
Source§fn default() -> KnowledgebaseV2
fn default() -> KnowledgebaseV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnowledgebaseV2
impl<'de> Deserialize<'de> for KnowledgebaseV2
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 KnowledgebaseV2
impl PartialEq for KnowledgebaseV2
Source§fn eq(&self, other: &KnowledgebaseV2) -> bool
fn eq(&self, other: &KnowledgebaseV2) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KnowledgebaseV2
impl Serialize for KnowledgebaseV2
impl StructuralPartialEq for KnowledgebaseV2
Auto Trait Implementations§
impl Freeze for KnowledgebaseV2
impl RefUnwindSafe for KnowledgebaseV2
impl Send for KnowledgebaseV2
impl Sync for KnowledgebaseV2
impl Unpin for KnowledgebaseV2
impl UnsafeUnpin for KnowledgebaseV2
impl UnwindSafe for KnowledgebaseV2
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