#[non_exhaustive]pub struct Code {
pub body: String,
pub reply: String,
pub position: Option<Position>,
pub effective_root_comment: String,
pub resolved: bool,
pub effective_commit_sha: String,
/* private fields */
}Expand description
The comment on a code line.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: StringRequired. The comment body.
reply: StringOptional. Input only. The PullRequestComment resource name that this comment is replying to.
position: Option<Position>Optional. The position of the comment.
effective_root_comment: StringOutput only. The root comment of the conversation, derived from the reply field.
resolved: boolOutput only. Boolean indicator if the comment is resolved.
effective_commit_sha: StringOutput only. The effective commit sha this code comment is pointing to.
Implementations§
Source§impl Code
impl Code
pub fn new() -> Self
Sourcepub fn set_position<T>(self, v: T) -> Self
pub fn set_position<T>(self, v: T) -> Self
Sets the value of position.
Sourcepub fn set_or_clear_position<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_position<T>(self, v: Option<T>) -> Self
Sets or clears the value of position.
Sourcepub fn set_effective_root_comment<T: Into<String>>(self, v: T) -> Self
pub fn set_effective_root_comment<T: Into<String>>(self, v: T) -> Self
Sets the value of effective_root_comment.
Sourcepub fn set_resolved<T: Into<bool>>(self, v: T) -> Self
pub fn set_resolved<T: Into<bool>>(self, v: T) -> Self
Sets the value of resolved.
Sourcepub fn set_effective_commit_sha<T: Into<String>>(self, v: T) -> Self
pub fn set_effective_commit_sha<T: Into<String>>(self, v: T) -> Self
Sets the value of effective_commit_sha.
Trait Implementations§
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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