pub enum StateResolutionMode {
Current,
HistoricalAt(String),
Transition {
from: String,
to: String,
},
Trajectory {
points: Vec<String>,
},
}Expand description
The resolution request, kept separate from the compatible StateView wire enum.
Variants§
Implementations§
Source§impl StateResolutionMode
impl StateResolutionMode
pub fn historical_at(as_of: impl Into<String>) -> Self
pub fn transition(from: impl Into<String>, to: impl Into<String>) -> Self
pub fn trajectory(points: Vec<String>) -> Self
Sourcepub fn state_view(&self) -> StateView
pub fn state_view(&self) -> StateView
Map a resolution request to the existing authoritative fact view.
Trait Implementations§
Source§impl Clone for StateResolutionMode
impl Clone for StateResolutionMode
Source§fn clone(&self) -> StateResolutionMode
fn clone(&self) -> StateResolutionMode
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 StateResolutionMode
impl Debug for StateResolutionMode
Source§impl<'de> Deserialize<'de> for StateResolutionMode
impl<'de> Deserialize<'de> for StateResolutionMode
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 StateResolutionMode
Source§impl PartialEq for StateResolutionMode
impl PartialEq for StateResolutionMode
Source§impl Serialize for StateResolutionMode
impl Serialize for StateResolutionMode
impl StructuralPartialEq for StateResolutionMode
Auto Trait Implementations§
impl Freeze for StateResolutionMode
impl RefUnwindSafe for StateResolutionMode
impl Send for StateResolutionMode
impl Sync for StateResolutionMode
impl Unpin for StateResolutionMode
impl UnsafeUnpin for StateResolutionMode
impl UnwindSafe for StateResolutionMode
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,
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
Compare self to
key and return true if they are equal.