pub struct EmbedContentBatch {
pub contents: Option<Vec<Content>>,
pub config: Option<EmbedContentConfig>,
}Expand description
Embeddings batch 请求体(仅用于内联)。
Fields§
§contents: Option<Vec<Content>>§config: Option<EmbedContentConfig>Trait Implementations§
Source§impl Clone for EmbedContentBatch
impl Clone for EmbedContentBatch
Source§fn clone(&self) -> EmbedContentBatch
fn clone(&self) -> EmbedContentBatch
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 Debug for EmbedContentBatch
impl Debug for EmbedContentBatch
Source§impl Default for EmbedContentBatch
impl Default for EmbedContentBatch
Source§fn default() -> EmbedContentBatch
fn default() -> EmbedContentBatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbedContentBatch
impl<'de> Deserialize<'de> for EmbedContentBatch
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
Auto Trait Implementations§
impl Freeze for EmbedContentBatch
impl RefUnwindSafe for EmbedContentBatch
impl Send for EmbedContentBatch
impl Sync for EmbedContentBatch
impl Unpin for EmbedContentBatch
impl UnsafeUnpin for EmbedContentBatch
impl UnwindSafe for EmbedContentBatch
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