pub struct Entry {
pub sequence: u128,
pub timestamp: DateTime<Utc>,
pub content: EntryContent,
pub actor_sig: Ed25519Signature,
}Expand description
A complete log entry with sequencer-assigned fields.
Args:
sequence— Monotonically increasing index assigned by the sequencer.timestamp— Wall-clock time assigned by the sequencer.content— The actor-signed payload.actor_sig— Ed25519 signature over the canonicalEntryContent.
Usage:
ⓘ
let entry = Entry {
sequence: 0,
timestamp: Utc::now(),
content: entry_content,
actor_sig: sig,
};
let leaf_data = entry.leaf_data()?;Fields§
§sequence: u128§timestamp: DateTime<Utc>§content: EntryContent§actor_sig: Ed25519SignatureImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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