pub enum RerankDocument {
Text(String),
Object(JsonObject),
}Expand description
A document to rerank: text or a JSON object.
Variants§
Trait Implementations§
Source§impl Clone for RerankDocument
impl Clone for RerankDocument
Source§fn clone(&self) -> RerankDocument
fn clone(&self) -> RerankDocument
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 RerankDocument
impl Debug for RerankDocument
Source§impl From<&str> for RerankDocument
impl From<&str> for RerankDocument
Source§impl From<Map<String, Value>> for RerankDocument
impl From<Map<String, Value>> for RerankDocument
Source§fn from(object: JsonObject) -> Self
fn from(object: JsonObject) -> Self
Converts to this type from the input type.
Source§impl From<String> for RerankDocument
impl From<String> for RerankDocument
Source§impl PartialEq for RerankDocument
impl PartialEq for RerankDocument
impl StructuralPartialEq for RerankDocument
Auto Trait Implementations§
impl Freeze for RerankDocument
impl RefUnwindSafe for RerankDocument
impl Send for RerankDocument
impl Sync for RerankDocument
impl Unpin for RerankDocument
impl UnsafeUnpin for RerankDocument
impl UnwindSafe for RerankDocument
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