Struct dao::modules::repository::Record
source · pub struct Record {
pub current_value: Bytes,
pub next_value: Option<(Bytes, u64)>,
}
Expand description
A data struct stored in the repository.
The first value represents the current value.
The second value is an optional tuple consisting of the future value and its activation time.
Fields§
§current_value: Bytes
§next_value: Option<(Bytes, u64)>
Trait Implementations§
source§impl BorshDeserialize for Record
impl BorshDeserialize for Record
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
Auto Trait Implementations§
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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