pub struct PullRecord {
pub number: u64,
pub title: String,
pub description: String,
pub source_ref: String,
pub target_ref: String,
pub state: PullState,
pub author: String,
pub created_ms: UnixMillis,
pub updated_ms: UnixMillis,
pub source_oid: String,
pub merge_oid: Option<String>,
}Expand description
One pull request, as stored.
Fields§
§number: u64Per-repository, dense, never reused.
title: StringThe one line every list shows.
description: StringFree text; may be empty.
source_ref: StringFull ref names, both of them. Short names are a client convenience and a stored short name is an ambiguity someone resolves differently later.
target_ref: StringThe ref a merge moves. Full name, for the reason above it.
state: PullStateWhere in the lifecycle this record stands.
The ACL principal that opened it.
created_ms: UnixMillisWhen it was opened. Never rewritten.
updated_ms: UnixMillisWhen any field above last changed, including Self::state.
source_oid: StringThe source tip AT CREATION — informational, a review anchor, never the oid a merge moves to (the branch may advance after opening).
merge_oid: Option<String>The oid the target ref moved to. None unless PullState::Merged.
Trait Implementations§
Source§impl Clone for PullRecord
impl Clone for PullRecord
Source§impl Debug for PullRecord
impl Debug for PullRecord
Source§impl<'de> Deserialize<'de> for PullRecord
impl<'de> Deserialize<'de> for PullRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PullRecord
impl PartialEq for PullRecord
Source§impl Serialize for PullRecord
impl Serialize for PullRecord
impl StructuralPartialEq for PullRecord
Auto Trait Implementations§
impl Freeze for PullRecord
impl RefUnwindSafe for PullRecord
impl Send for PullRecord
impl Sync for PullRecord
impl Unpin for PullRecord
impl UnsafeUnpin for PullRecord
impl UnwindSafe for PullRecord
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