pub struct VectorIndexObservation {
pub status: VectorIndexStatus,
pub change_token: Option<VectorIndexChangeToken>,
}Expand description
One self-consistent observation of a vector index revision.
A change token, when present, must identify the same revision as status.
Correctness-sensitive callers should prefer VectorIndex::observe
over composing the synchronous compatibility accessors themselves.
Fields§
§status: VectorIndexStatus§change_token: Option<VectorIndexChangeToken>Implementations§
Source§impl VectorIndexObservation
impl VectorIndexObservation
Sourcepub fn verify(&self) -> VectorResult<()>
pub fn verify(&self) -> VectorResult<()>
Verify that all evidence names one valid index revision.
Trait Implementations§
Source§impl Clone for VectorIndexObservation
impl Clone for VectorIndexObservation
Source§fn clone(&self) -> VectorIndexObservation
fn clone(&self) -> VectorIndexObservation
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 VectorIndexObservation
impl Debug for VectorIndexObservation
Source§impl Default for VectorIndexObservation
impl Default for VectorIndexObservation
Source§fn default() -> VectorIndexObservation
fn default() -> VectorIndexObservation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VectorIndexObservation
impl<'de> Deserialize<'de> for VectorIndexObservation
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 Eq for VectorIndexObservation
Source§impl PartialEq for VectorIndexObservation
impl PartialEq for VectorIndexObservation
Source§impl Serialize for VectorIndexObservation
impl Serialize for VectorIndexObservation
impl StructuralPartialEq for VectorIndexObservation
Auto Trait Implementations§
impl Freeze for VectorIndexObservation
impl RefUnwindSafe for VectorIndexObservation
impl Send for VectorIndexObservation
impl Sync for VectorIndexObservation
impl Unpin for VectorIndexObservation
impl UnsafeUnpin for VectorIndexObservation
impl UnwindSafe for VectorIndexObservation
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