pub struct GithubPullsRequest {
pub repository: Option<String>,
pub state: Option<PullRequestFilter>,
pub limit: Option<u32>,
}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.
state: Option<PullRequestFilter>Absent means PullRequestFilter::Open.
limit: Option<u32>Clamped to super::limits::MAX_PULL_REQUESTS.
Trait Implementations§
Source§impl Clone for GithubPullsRequest
impl Clone for GithubPullsRequest
Source§fn clone(&self) -> GithubPullsRequest
fn clone(&self) -> GithubPullsRequest
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 GithubPullsRequest
impl Debug for GithubPullsRequest
Source§impl<'de> Deserialize<'de> for GithubPullsRequest
impl<'de> Deserialize<'de> for GithubPullsRequest
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 GithubPullsRequest
Source§impl PartialEq for GithubPullsRequest
impl PartialEq for GithubPullsRequest
Source§impl Serialize for GithubPullsRequest
impl Serialize for GithubPullsRequest
impl StructuralPartialEq for GithubPullsRequest
Auto Trait Implementations§
impl Freeze for GithubPullsRequest
impl RefUnwindSafe for GithubPullsRequest
impl Send for GithubPullsRequest
impl Sync for GithubPullsRequest
impl Unpin for GithubPullsRequest
impl UnsafeUnpin for GithubPullsRequest
impl UnwindSafe for GithubPullsRequest
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.