pub struct CommentState {
pub id: String,
pub author: String,
pub body: String,
pub at: u64,
}Expand description
One comment on a review, as the fold sees it after replaying
OpKind::PostComment (D38).
There is no timestamp. A pure fold has no clock, so at counts
sequenced ops exactly as KeyBinding::bound_at does: it orders the
thread, it is monotonic, and replay reproduces it from the log alone.
Anything phrased in minutes or days needs a durable timestamp this
crate does not have.
Fields§
§id: StringThe author’s chosen id, unique within the review.
Channel that made the statement.
body: StringThe comment text.
at: u64Fold position the comment was applied at, which is the log sequence its op occupies.
Trait Implementations§
Source§impl Clone for CommentState
impl Clone for CommentState
Source§fn clone(&self) -> CommentState
fn clone(&self) -> CommentState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommentState
impl Debug for CommentState
Source§impl PartialEq for CommentState
impl PartialEq for CommentState
Source§fn eq(&self, other: &CommentState) -> bool
fn eq(&self, other: &CommentState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommentState
impl StructuralPartialEq for CommentState
Auto Trait Implementations§
impl Freeze for CommentState
impl RefUnwindSafe for CommentState
impl Send for CommentState
impl Sync for CommentState
impl Unpin for CommentState
impl UnsafeUnpin for CommentState
impl UnwindSafe for CommentState
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