#[non_exhaustive]pub struct VectorStoreFileContent {
pub type: Option<String>,
pub text: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Parsed content block returned for a vector store file. 中文:向量存储文件返回的已解析内容块。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: Option<String>EN: Content type, currently usually text.
中文:内容类型,目前通常为 text。
text: Option<String>EN: Text content, when returned. 中文:文本内容,如响应中存在。
extra: BTreeMap<String, Value>EN: Additional fields preserved for forward compatibility. 中文:为前向兼容保留的额外字段。
Trait Implementations§
Source§impl Clone for VectorStoreFileContent
impl Clone for VectorStoreFileContent
Source§fn clone(&self) -> VectorStoreFileContent
fn clone(&self) -> VectorStoreFileContent
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 VectorStoreFileContent
impl Debug for VectorStoreFileContent
Source§impl<'de> Deserialize<'de> for VectorStoreFileContent
impl<'de> Deserialize<'de> for VectorStoreFileContent
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 VectorStoreFileContent
impl PartialEq for VectorStoreFileContent
Source§fn eq(&self, other: &VectorStoreFileContent) -> bool
fn eq(&self, other: &VectorStoreFileContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VectorStoreFileContent
impl Serialize for VectorStoreFileContent
impl StructuralPartialEq for VectorStoreFileContent
Auto Trait Implementations§
impl Freeze for VectorStoreFileContent
impl RefUnwindSafe for VectorStoreFileContent
impl Send for VectorStoreFileContent
impl Sync for VectorStoreFileContent
impl Unpin for VectorStoreFileContent
impl UnsafeUnpin for VectorStoreFileContent
impl UnwindSafe for VectorStoreFileContent
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