pub struct Request {
pub kind: ForgeKind,
pub project: String,
pub id: String,
pub base_ref: String,
pub base_tip: String,
pub head: String,
pub merge_base: Option<String>,
pub url: String,
}Expand description
A request as the forge describes it: the object a review is of.
Fields§
§kind: ForgeKind§project: Stringowner/repo on GitHub, the full namespaced path on GitLab.
id: StringThe number, as a string: GitLab’s iid is a number too, and neither is ever arithmetic here.
base_ref: StringThe branch the request targets, for the fetch hint.
base_tip: StringThe tip of that branch, as the forge sees it now.
head: StringThe request’s head commit, as the forge sees it now.
merge_base: Option<String>The merge base, when the forge says it (GitLab’s diff_refs.base_sha).
A GitLab position names it; the review’s range is computed from git
either way.
url: StringImplementations§
Source§impl Request
impl Request
Sourcepub fn identity(&self) -> ReviewIdentity
pub fn identity(&self) -> ReviewIdentity
The review this request opens. Keyed like a name: the request is an object, and its endpoints are attributes that are allowed to move.
Sourcepub fn fetch_hint(&self, remote_name: &str) -> String
pub fn fetch_hint(&self, remote_name: &str) -> String
The command a reader runs when the request’s commits are not local.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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.