pub struct GithubIssue {
pub number: i64,
pub title: String,
pub body: String,
pub url: String,
}Expand description
One issue from gh issue list --json number,title,body,url. Those four
fields are all gh documents for this command; anything else it emits is
ignored.
Fields§
§number: i64§title: String§body: String§url: StringImplementations§
Source§impl GithubIssue
impl GithubIssue
Sourcepub fn parse_list(json: &str) -> Result<Vec<GithubIssue>>
pub fn parse_list(json: &str) -> Result<Vec<GithubIssue>>
Parse the JSON array gh issue list --json ... prints on stdout.
Trait Implementations§
Source§impl Clone for GithubIssue
impl Clone for GithubIssue
Source§fn clone(&self) -> GithubIssue
fn clone(&self) -> GithubIssue
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 GithubIssue
impl Debug for GithubIssue
Source§impl<'de> Deserialize<'de> for GithubIssue
impl<'de> Deserialize<'de> for GithubIssue
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 GithubIssue
Source§impl PartialEq for GithubIssue
impl PartialEq for GithubIssue
impl StructuralPartialEq for GithubIssue
Auto Trait Implementations§
impl Freeze for GithubIssue
impl RefUnwindSafe for GithubIssue
impl Send for GithubIssue
impl Sync for GithubIssue
impl Unpin for GithubIssue
impl UnsafeUnpin for GithubIssue
impl UnwindSafe for GithubIssue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.