pub enum LimitConditions<H = HoloHash<Action>>{
ToGenesis,
Take(u32),
UntilTimestamp(Timestamp),
UntilHash(H),
}Expand description
Specify when to stop walking down the chain from the chain_top action.
All variants walk down the chain from the chain_top action,
following the linear chain path and excluding any forked actions.
Variants§
ToGenesis
Include all actions to the start of the chain.
Take(u32)
Include exactly the specified number of actions in the chain, or all actions in the chain, whichever is fewer.
A value of 0 is considered invalid and will cause an error.
UntilTimestamp(Timestamp)
Include all actions in the chain with timestamps greater than or equal to the given timestamp.
To receive a success response, the query must retrieve an action with a timestamp older than the given timestamp, or retrieve all actions until genesis. Without this we would not know if there are additional actions after the timestamp, and so the response would not be deterministic.
A timestamp value that is greater than the chain_top timestamp is considered invalid
and will return MustGetAgentActivityResponse::UntilTimestampGreaterThanChainHead.
UntilHash(H)
Include all actions in the chain down to and including the action matching the given hash.
To receive a success response, the query must retrieve an action matching the given hash.
A hash value that maps to an action with a sequence number greater than the chain_top
sequence number is considered invalid and will return
MustGetAgentActivityResponse::UntilHashAfterChainHead.
Trait Implementations§
Source§impl<H> Clone for LimitConditions<H>
impl<H> Clone for LimitConditions<H>
Source§fn clone(&self) -> LimitConditions<H>
fn clone(&self) -> LimitConditions<H>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<H> Debug for LimitConditions<H>
impl<H> Debug for LimitConditions<H>
Source§impl<H> Default for LimitConditions<H>
impl<H> Default for LimitConditions<H>
Source§fn default() -> LimitConditions<H>
fn default() -> LimitConditions<H>
Source§impl<'de, H> Deserialize<'de> for LimitConditions<H>
impl<'de, H> Deserialize<'de> for LimitConditions<H>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LimitConditions<H>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LimitConditions<H>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl<H> Eq for LimitConditions<H>
Source§impl<H> Hash for LimitConditions<H>
Create a deterministic hash to compare LimitConditions.
impl<H> Hash for LimitConditions<H>
Create a deterministic hash to compare LimitConditions.
Source§impl<H> PartialEq for LimitConditions<H>
Implement a deterministic partial eq to compare LimitConditions.
impl<H> PartialEq for LimitConditions<H>
Implement a deterministic partial eq to compare LimitConditions.
Source§impl<H> Serialize for LimitConditions<H>
impl<H> Serialize for LimitConditions<H>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl<H> Freeze for LimitConditions<H>where
H: Freeze,
impl<H> RefUnwindSafe for LimitConditions<H>where
H: RefUnwindSafe,
impl<H> Send for LimitConditions<H>where
H: Send,
impl<H> Sync for LimitConditions<H>where
H: Sync,
impl<H> Unpin for LimitConditions<H>where
H: Unpin,
impl<H> UnsafeUnpin for LimitConditions<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for LimitConditions<H>where
H: UnwindSafe,
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
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.