#[non_exhaustive]pub struct DashscopeRerankRequestBody {
pub return_documents: Option<bool>,
pub model: String,
pub query: String,
pub documents: Vec<String>,
pub top_n: Option<i64>,
pub instruct: Option<String>,
pub rest: Rest,
}Expand description
DashScope’s request accepts text documents and an optional ranking instruction.
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.return_documents: Option<bool>Documented by DashScope under results.document: true returns input text.
model: String§query: String§documents: Vec<String>§top_n: Option<i64>§instruct: Option<String>§rest: RestImplementations§
Trait Implementations§
Source§impl Clone for DashscopeRerankRequestBody
impl Clone for DashscopeRerankRequestBody
Source§impl Debug for DashscopeRerankRequestBody
impl Debug for DashscopeRerankRequestBody
Source§impl DeclaredFields for DashscopeRerankRequestBody
impl DeclaredFields for DashscopeRerankRequestBody
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for DashscopeRerankRequestBody
impl<'de> Deserialize<'de> for DashscopeRerankRequestBody
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
impl StructuralPartialEq for DashscopeRerankRequestBody
Auto Trait Implementations§
impl Freeze for DashscopeRerankRequestBody
impl RefUnwindSafe for DashscopeRerankRequestBody
impl Send for DashscopeRerankRequestBody
impl Sync for DashscopeRerankRequestBody
impl Unpin for DashscopeRerankRequestBody
impl UnsafeUnpin for DashscopeRerankRequestBody
impl UnwindSafe for DashscopeRerankRequestBody
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