pub struct VectorStoreFileContentResponseDatum {
pub type: Option<String>,
pub text: Option<String>,
}
Fields§
§type: Option<String>
The content type (currently only "text"
)
text: Option<String>
The text content
Implementations§
Source§impl VectorStoreFileContentResponseDatum
impl VectorStoreFileContentResponseDatum
Sourcepub fn builder() -> VectorStoreFileContentResponseDatumBuilder<((), ())>
pub fn builder() -> VectorStoreFileContentResponseDatumBuilder<((), ())>
Create a builder for building VectorStoreFileContentResponseDatum
.
On the builder, call .r#type(...)
(optional), .text(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of VectorStoreFileContentResponseDatum
.
Trait Implementations§
Source§impl Clone for VectorStoreFileContentResponseDatum
impl Clone for VectorStoreFileContentResponseDatum
Source§fn clone(&self) -> VectorStoreFileContentResponseDatum
fn clone(&self) -> VectorStoreFileContentResponseDatum
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for VectorStoreFileContentResponseDatum
impl Default for VectorStoreFileContentResponseDatum
Source§fn default() -> VectorStoreFileContentResponseDatum
fn default() -> VectorStoreFileContentResponseDatum
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VectorStoreFileContentResponseDatum
impl<'de> Deserialize<'de> for VectorStoreFileContentResponseDatum
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 VectorStoreFileContentResponseDatum
impl PartialEq for VectorStoreFileContentResponseDatum
Source§fn eq(&self, other: &VectorStoreFileContentResponseDatum) -> bool
fn eq(&self, other: &VectorStoreFileContentResponseDatum) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for VectorStoreFileContentResponseDatum
Auto Trait Implementations§
impl Freeze for VectorStoreFileContentResponseDatum
impl RefUnwindSafe for VectorStoreFileContentResponseDatum
impl Send for VectorStoreFileContentResponseDatum
impl Sync for VectorStoreFileContentResponseDatum
impl Unpin for VectorStoreFileContentResponseDatum
impl UnwindSafe for VectorStoreFileContentResponseDatum
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