pub struct HostComment {
pub id: CommentId,
pub kind: CommentKind,
pub author: String,
pub body: String,
pub url: String,
pub created_at: String,
pub updated_at: String,
pub in_reply_to: Option<CommentId>,
pub revision: u64,
}Expand description
One comment a host holds on a change request.
What review_comments answers a ReviewComment from:
everything but ours and reply_marker, which are read out of the body exactly as
the real host’s are, and with the one thing a host keeps that a read does not
show — when it last changed.
Fields§
§id: CommentIdThe host’s id for it.
kind: CommentKindWhat kind it is, and — for a thread comment — its thread’s flags.
Who wrote it.
body: StringWhat it says.
url: StringWhere a person reads it.
created_at: StringWhen it was written.
updated_at: StringWhen it last changed.
in_reply_to: Option<CommentId>The comment it replies to in its thread.
revision: u64When, in this host’s own count of changes to the change request’s feedback, it
last changed — what a read marker is compared against. A seeded comment at 0
is one every read from a marker has already seen.
Trait Implementations§
Source§impl Clone for HostComment
impl Clone for HostComment
Source§impl Debug for HostComment
impl Debug for HostComment
Source§impl<'de> Deserialize<'de> for HostComment
impl<'de> Deserialize<'de> for HostComment
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 HostComment
Source§impl PartialEq for HostComment
impl PartialEq for HostComment
Source§impl Serialize for HostComment
impl Serialize for HostComment
impl StructuralPartialEq for HostComment
Auto Trait Implementations§
impl Freeze for HostComment
impl RefUnwindSafe for HostComment
impl Send for HostComment
impl Sync for HostComment
impl Unpin for HostComment
impl UnsafeUnpin for HostComment
impl UnwindSafe for HostComment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.