pub struct AutomatedComment {
pub id: String,
pub bot_name: String,
pub body: String,
pub path: Option<String>,
pub line: Option<u32>,
pub severity: AutomatedCommentSeverity,
pub url: String,
}Expand description
A comment on a PR left by an automated bot (linter, security scanner,
review bot). Mirrors the TS AutomatedComment type.
Distinct from ReviewComment because the reaction engine wants to route
bot chatter (bugbot-comments) differently from human review threads.
Fields§
§id: String§bot_name: StringBot login (e.g. "dependabot[bot]").
body: String§path: Option<String>§line: Option<u32>§severity: AutomatedCommentSeverity§url: StringTrait Implementations§
Source§impl Clone for AutomatedComment
impl Clone for AutomatedComment
Source§fn clone(&self) -> AutomatedComment
fn clone(&self) -> AutomatedComment
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 AutomatedComment
impl Debug for AutomatedComment
Source§impl<'de> Deserialize<'de> for AutomatedComment
impl<'de> Deserialize<'de> for AutomatedComment
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
Source§impl PartialEq for AutomatedComment
impl PartialEq for AutomatedComment
Source§impl Serialize for AutomatedComment
impl Serialize for AutomatedComment
impl Eq for AutomatedComment
impl StructuralPartialEq for AutomatedComment
Auto Trait Implementations§
impl Freeze for AutomatedComment
impl RefUnwindSafe for AutomatedComment
impl Send for AutomatedComment
impl Sync for AutomatedComment
impl Unpin for AutomatedComment
impl UnsafeUnpin for AutomatedComment
impl UnwindSafe for AutomatedComment
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
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.