pub struct RexEntry { /* private fields */ }Expand description
Represents an REX registry entry containing REX information and metadata.
This struct stores REX data along with a hash of the data for change detection and tracking information about when the entry was last modified.
Implementations§
Source§impl RexEntry
impl RexEntry
Sourcepub fn new(
rex_info: RexInfo,
data_hash: [u8; 32],
last_modified_round: u64,
) -> Self
pub fn new( rex_info: RexInfo, data_hash: [u8; 32], last_modified_round: u64, ) -> Self
Creates a new RexEntry instance.
§Arguments
data: The account data as a byte vector.data_hash: The hash of the account data.last_modified_timestamp: The round in which the account was last modified.
Sourcepub fn last_modified_timestamp(&self) -> u64
pub fn last_modified_timestamp(&self) -> u64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RexEntry
impl<'de> Deserialize<'de> for RexEntry
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 RexEntry
impl StructuralPartialEq for RexEntry
Auto Trait Implementations§
impl Freeze for RexEntry
impl RefUnwindSafe for RexEntry
impl Send for RexEntry
impl Sync for RexEntry
impl Unpin for RexEntry
impl UnsafeUnpin for RexEntry
impl UnwindSafe for RexEntry
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.