pub enum AttributeMode {
Current,
AtTime,
Omit,
}Expand description
Attribute hydration mode for temporal traversals (§5.2).
Variants§
Current
Live attributes from concepts table. Fast. Documented as WRONG for historical text.
AtTime
Attributes as believed at ts, hydrated from transaction_log.
Omit
Topology only; concepts join is omitted.
Use TraversalBuilder::execute_ids, not TraversalBuilder::execute.
execute returns Vec<NodeAttributes>, and there are no attributes to
return under this mode, so it answers Ok(vec![]) — which a caller
cannot tell apart from a traversal that reached nothing. execute_ids
returns exactly what this mode is for, and distinguishes the two cases by
construction.
Kept rather than removed (Wave 4.5) because it is meaningful where the
mode is a parameter — hydrate_attributes and FilteredVectorSearch
both take one and are right to accept “no attributes” as a choice. It is
only execute’s return type that cannot express it.
Trait Implementations§
Source§impl Clone for AttributeMode
impl Clone for AttributeMode
Source§fn clone(&self) -> AttributeMode
fn clone(&self) -> AttributeMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AttributeMode
Source§impl Debug for AttributeMode
impl Debug for AttributeMode
Source§impl<'de> Deserialize<'de> for AttributeMode
impl<'de> Deserialize<'de> for AttributeMode
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>,
impl Eq for AttributeMode
Source§impl PartialEq for AttributeMode
impl PartialEq for AttributeMode
Source§impl Serialize for AttributeMode
impl Serialize for AttributeMode
impl StructuralPartialEq for AttributeMode
Auto Trait Implementations§
impl Freeze for AttributeMode
impl RefUnwindSafe for AttributeMode
impl Send for AttributeMode
impl Sync for AttributeMode
impl Unpin for AttributeMode
impl UnsafeUnpin for AttributeMode
impl UnwindSafe for AttributeMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request