pub struct CommitInfo {
pub events_written: usize,
pub first_event_id: Option<u64>,
pub last_event_id: Option<u64>,
pub state_keys_written: usize,
pub state_keys_deleted: usize,
}Expand description
Information about a committed transaction
Fields§
§events_written: usizeNumber of events written in this commit
first_event_id: Option<u64>First event ID in this commit (if any)
last_event_id: Option<u64>Last event ID in this commit (if any)
state_keys_written: usizeNumber of state keys written
state_keys_deleted: usizeNumber of state keys deleted
Implementations§
Source§impl CommitInfo
impl CommitInfo
pub fn empty() -> CommitInfo
Trait Implementations§
Source§impl Clone for CommitInfo
impl Clone for CommitInfo
Source§fn clone(&self) -> CommitInfo
fn clone(&self) -> CommitInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitInfo
impl Debug for CommitInfo
Source§impl<'de> Deserialize<'de> for CommitInfo
impl<'de> Deserialize<'de> for CommitInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommitInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommitInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CommitInfo
impl Serialize for CommitInfo
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CommitInfo
impl RefUnwindSafe for CommitInfo
impl Send for CommitInfo
impl Sync for CommitInfo
impl Unpin for CommitInfo
impl UnwindSafe for CommitInfo
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