#[non_exhaustive]pub struct Review {
pub action_type: ActionType,
pub body: String,
pub effective_commit_sha: String,
/* private fields */
}Expand description
The review summary comment.
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.action_type: ActionTypeRequired. The review action type.
body: StringOptional. The comment body.
effective_commit_sha: StringOutput only. The effective commit sha this review is pointing to.
Implementations§
Source§impl Review
impl Review
pub fn new() -> Self
Sourcepub fn set_action_type<T: Into<ActionType>>(self, v: T) -> Self
pub fn set_action_type<T: Into<ActionType>>(self, v: T) -> Self
Sets the value of action_type.
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 Review
Auto Trait Implementations§
impl Freeze for Review
impl RefUnwindSafe for Review
impl Send for Review
impl Sync for Review
impl Unpin for Review
impl UnwindSafe for Review
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