pub struct ExportRequest {
pub top_k: usize,
pub cursor: Option<String>,
pub include_vectors: bool,
pub include_metadata: bool,
}Expand description
Request to export vectors from a namespace with pagination
Fields§
§top_k: usizeMaximum number of vectors to return per page (default: 1000, max: 10000)
cursor: Option<String>Cursor for pagination - the last vector ID from previous page
include_vectors: boolWhether to include vector values in the response (default: true)
include_metadata: boolWhether to include metadata in the response (default: true)
Implementations§
Source§impl ExportRequest
impl ExportRequest
Sourcepub fn with_top_k(self, top_k: usize) -> Self
pub fn with_top_k(self, top_k: usize) -> Self
Set the maximum number of vectors to return per page
Sourcepub fn with_cursor(self, cursor: impl Into<String>) -> Self
pub fn with_cursor(self, cursor: impl Into<String>) -> Self
Set the pagination cursor
Sourcepub fn include_vectors(self, include: bool) -> Self
pub fn include_vectors(self, include: bool) -> Self
Set whether to include vector values
Sourcepub fn include_metadata(self, include: bool) -> Self
pub fn include_metadata(self, include: bool) -> Self
Set whether to include metadata
Trait Implementations§
Source§impl Clone for ExportRequest
impl Clone for ExportRequest
Source§fn clone(&self) -> ExportRequest
fn clone(&self) -> ExportRequest
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 ExportRequest
impl Debug for ExportRequest
Source§impl Default for ExportRequest
impl Default for ExportRequest
Source§impl<'de> Deserialize<'de> for ExportRequest
impl<'de> Deserialize<'de> for ExportRequest
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 ExportRequest
impl RefUnwindSafe for ExportRequest
impl Send for ExportRequest
impl Sync for ExportRequest
impl Unpin for ExportRequest
impl UnsafeUnpin for ExportRequest
impl UnwindSafe for ExportRequest
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