pub enum ReviewIdentity {
Range {
base: String,
head_spec: String,
},
Named(String),
Remote(Remote),
}Expand description
What a review was opened as. The id is a hash of this, so the id alone cannot answer what a review’s endpoints mean today.
Variants§
Range
A range: the resolved base sha, and the head endpoint as typed.
Named(String)
A session the reader named. The name IS the identity, so neither endpoint is in the key and rebasing either cannot strand it.
Remote(Remote)
A pull request or merge request (ADR 0029). Keyed like a name: the request is an object whose endpoints are allowed to move under it.
Trait Implementations§
Source§impl Clone for ReviewIdentity
impl Clone for ReviewIdentity
Source§impl Debug for ReviewIdentity
impl Debug for ReviewIdentity
impl Eq for ReviewIdentity
Source§impl PartialEq for ReviewIdentity
impl PartialEq for ReviewIdentity
impl StructuralPartialEq for ReviewIdentity
Auto Trait Implementations§
impl Freeze for ReviewIdentity
impl RefUnwindSafe for ReviewIdentity
impl Send for ReviewIdentity
impl Sync for ReviewIdentity
impl Unpin for ReviewIdentity
impl UnsafeUnpin for ReviewIdentity
impl UnwindSafe for ReviewIdentity
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.