pub struct Review {
pub pull: u64,
pub approvals: BTreeMap<String, String>,
pub comments: usize,
}Expand description
The review on one pull request, right now.
Folded, never stored. This is deliberately NOT the pull request: the title,
the refs, whether it is open and what it merged at all live in
crate::pulls::PullRecord, which is their one authority. What is here is
only what cannot be a stored row without losing its value — who approves
what, and how many people have spoken.
Fields§
§pull: u64The pull request this review belongs to.
approvals: BTreeMap<String, String>Who currently approves which commit.
A map and not a count: whose approval, and of what, are the two
things an auditor asks, and a count answers neither. A later Rejected
by the same actor removes their entry; a new Approved replaces it.
comments: usizeHow many comments have been made.
Implementations§
Trait Implementations§
impl Eq for Review
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 UnsafeUnpin for Review
impl UnwindSafe for Review
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