pub struct EmbedContentConfig {
pub task_type: Option<String>,
pub title: Option<String>,
pub output_dimensionality: Option<i32>,
pub mime_type: Option<String>,
pub auto_truncate: Option<bool>,
}Expand description
EmbedContent 配置。
Fields§
§task_type: Option<String>§title: Option<String>§output_dimensionality: Option<i32>§mime_type: Option<String>§auto_truncate: Option<bool>Trait Implementations§
Source§impl Clone for EmbedContentConfig
impl Clone for EmbedContentConfig
Source§fn clone(&self) -> EmbedContentConfig
fn clone(&self) -> EmbedContentConfig
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 EmbedContentConfig
impl Debug for EmbedContentConfig
Source§impl Default for EmbedContentConfig
impl Default for EmbedContentConfig
Source§fn default() -> EmbedContentConfig
fn default() -> EmbedContentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbedContentConfig
impl<'de> Deserialize<'de> for EmbedContentConfig
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 EmbedContentConfig
impl RefUnwindSafe for EmbedContentConfig
impl Send for EmbedContentConfig
impl Sync for EmbedContentConfig
impl Unpin for EmbedContentConfig
impl UnsafeUnpin for EmbedContentConfig
impl UnwindSafe for EmbedContentConfig
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