#[non_exhaustive]pub struct StakeEvent {
pub time: u64,
pub hash: String,
pub delta: StakeDelta,
}Expand description
One row of delegatorHistory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time: u64When it happened, milliseconds.
hash: StringThe L1 transaction hash.
delta: StakeDeltaWhat the row did.
Implementations§
Source§impl StakeEvent
impl StakeEvent
Sourcepub fn unstaked_at(&self, network: Network) -> Option<u64>
pub fn unstaked_at(&self, network: Network) -> Option<u64>
When an initiated withdrawal reaches spot on network.
Trait Implementations§
Source§impl Clone for StakeEvent
impl Clone for StakeEvent
Source§impl Debug for StakeEvent
impl Debug for StakeEvent
Source§impl<'de> Deserialize<'de> for StakeEvent
impl<'de> Deserialize<'de> for StakeEvent
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 StakeEvent
Source§impl PartialEq for StakeEvent
impl PartialEq for StakeEvent
impl StructuralPartialEq for StakeEvent
Auto Trait Implementations§
impl Forget for StakeEvent
impl Freeze for StakeEvent
impl Move for StakeEvent
impl RefUnwindSafe for StakeEvent
impl Send for StakeEvent
impl Sync for StakeEvent
impl Unpin for StakeEvent
impl UnsafeUnpin for StakeEvent
impl UnwindSafe for StakeEvent
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
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
Compare self to
key and return true if they are equal.