pub enum DocumentState {
StateUnspecified,
StatePending,
StateActive,
StateFailed,
}Expand description
The lifecycle state of a document.
Variants§
StateUnspecified
Unknown state
StatePending
Document chunks are being processed (embedding and indexing)
StateActive
All chunks processed and ready for querying
StateFailed
Some chunks failed processing
Trait Implementations§
Source§impl AsRef<str> for DocumentState
impl AsRef<str> for DocumentState
Source§impl Clone for DocumentState
impl Clone for DocumentState
Source§fn clone(&self) -> DocumentState
fn clone(&self) -> DocumentState
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 DocumentState
impl Debug for DocumentState
Source§impl<'de> Deserialize<'de> for DocumentState
impl<'de> Deserialize<'de> for DocumentState
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
Source§impl PartialEq for DocumentState
impl PartialEq for DocumentState
Source§impl Serialize for DocumentState
impl Serialize for DocumentState
impl Copy for DocumentState
impl Eq for DocumentState
impl StructuralPartialEq for DocumentState
Auto Trait Implementations§
impl Freeze for DocumentState
impl RefUnwindSafe for DocumentState
impl Send for DocumentState
impl Sync for DocumentState
impl Unpin for DocumentState
impl UnwindSafe for DocumentState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.