pub struct GithubPullRequestRef {
pub repository: Option<String>,
pub number: u64,
}Fields§
§repository: Option<String>Which repository to answer for — an id this machine already
reported, never an owner/repo the caller invented.
This is the same constraint TerminalAttachRequest::session_id carries,
and for the same reason: naming one of the machine’s own things is not
the general-purpose GitHub client that an arbitrary owner/repo would
make of this surface. The dispatcher refuses anything the registry does
not hold.
Absent means the repository the machine has selected, which is what a phone opening the screen cold wants, and what this asked for before the field existed. It never changes that selection — the dashboard on the user’s desk is looking at it too.
number: u64Trait Implementations§
Source§impl Clone for GithubPullRequestRef
impl Clone for GithubPullRequestRef
Source§fn clone(&self) -> GithubPullRequestRef
fn clone(&self) -> GithubPullRequestRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GithubPullRequestRef
impl Debug for GithubPullRequestRef
Source§impl<'de> Deserialize<'de> for GithubPullRequestRef
impl<'de> Deserialize<'de> for GithubPullRequestRef
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
impl Eq for GithubPullRequestRef
Source§impl PartialEq for GithubPullRequestRef
impl PartialEq for GithubPullRequestRef
Source§impl Serialize for GithubPullRequestRef
impl Serialize for GithubPullRequestRef
impl StructuralPartialEq for GithubPullRequestRef
Auto Trait Implementations§
impl Freeze for GithubPullRequestRef
impl RefUnwindSafe for GithubPullRequestRef
impl Send for GithubPullRequestRef
impl Sync for GithubPullRequestRef
impl Unpin for GithubPullRequestRef
impl UnsafeUnpin for GithubPullRequestRef
impl UnwindSafe for GithubPullRequestRef
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.