pub struct InlineComment {
pub actor: String,
pub path: String,
pub line: u32,
pub blob_oid: String,
pub body: String,
pub at_unix_ms: i64,
}Expand description
One inline comment, extracted from the review log and shaped for rendering on a diff.
Deliberately carries its own blob_oid: the caller matches it against a
file’s blob in the diff it is showing, and that match — not the pull
request’s head commit — is what puts the comment on the right line.
Fields§
§actor: StringThe ACL principal who wrote it.
path: StringThe file it is on.
line: u32The one-based line within blob_oid.
blob_oid: StringThe blob the commented line lived in.
body: StringWhat was said.
at_unix_ms: i64When.
Trait Implementations§
Source§impl Clone for InlineComment
impl Clone for InlineComment
Source§impl Debug for InlineComment
impl Debug for InlineComment
impl Eq for InlineComment
Source§impl PartialEq for InlineComment
impl PartialEq for InlineComment
impl StructuralPartialEq for InlineComment
Auto Trait Implementations§
impl Freeze for InlineComment
impl RefUnwindSafe for InlineComment
impl Send for InlineComment
impl Sync for InlineComment
impl Unpin for InlineComment
impl UnsafeUnpin for InlineComment
impl UnwindSafe for InlineComment
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.