pub struct GatewayVectorStore { /* private fields */ }Expand description
A named gateway vector store holding embedded text items.
Implementations§
Source§impl GatewayVectorStore
impl GatewayVectorStore
Sourcepub fn new(
id: impl Into<String>,
name: impl Into<String>,
created_at_ms: u64,
items: Vec<GatewayVectorStoreItem>,
) -> Self
pub fn new( id: impl Into<String>, name: impl Into<String>, created_at_ms: u64, items: Vec<GatewayVectorStoreItem>, ) -> Self
Creates a vector store with the given id, name, creation time, and items.
Sourcepub fn created_at_ms(&self) -> u64
pub fn created_at_ms(&self) -> u64
Returns the creation timestamp in milliseconds since the Unix epoch.
Sourcepub fn items(&self) -> &[GatewayVectorStoreItem]
pub fn items(&self) -> &[GatewayVectorStoreItem]
Returns the items held by this vector store.
Trait Implementations§
Source§impl Clone for GatewayVectorStore
impl Clone for GatewayVectorStore
Source§fn clone(&self) -> GatewayVectorStore
fn clone(&self) -> GatewayVectorStore
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 GatewayVectorStore
impl Debug for GatewayVectorStore
Source§impl PartialEq for GatewayVectorStore
impl PartialEq for GatewayVectorStore
Source§fn eq(&self, other: &GatewayVectorStore) -> bool
fn eq(&self, other: &GatewayVectorStore) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GatewayVectorStore
Auto Trait Implementations§
impl Freeze for GatewayVectorStore
impl RefUnwindSafe for GatewayVectorStore
impl Send for GatewayVectorStore
impl Sync for GatewayVectorStore
impl Unpin for GatewayVectorStore
impl UnsafeUnpin for GatewayVectorStore
impl UnwindSafe for GatewayVectorStore
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