pub struct GitHubProject {
pub id: String,
pub number: i64,
pub title: String,
pub url: String,
pub short_description: Option<String>,
pub closed: bool,
pub updated_at: String,
pub owner: String,
pub fields: Vec<GitHubProjectField>,
}Expand description
A project board.
Fields§
§id: StringThe GraphQL node id, which is what every mutation names.
number: i64§title: String§url: String§short_description: Option<String>§closed: bool§updated_at: String§owner: StringWho it belongs to, as a login. A project is an owner’s, not a repository’s — which is why the board is its own place in the workbench rather than a section of a repository’s page.
fields: Vec<GitHubProjectField>Every field the board defines. The single-select ones are its columns.
Implementations§
Source§impl GitHubProject
impl GitHubProject
Sourcepub fn column_field(&self) -> Option<&GitHubProjectField>
pub fn column_field(&self) -> Option<&GitHubProjectField>
The field a board is grouped by: its Status, or the first single-select it has.
GitHub’s own board groups by Status when it exists, and a project that
renamed it is still a board with columns. Returning None is honest:
a project with no single-select field has no columns, and inventing one
would put every item in a made-up bucket.
Trait Implementations§
Source§impl Clone for GitHubProject
impl Clone for GitHubProject
Source§impl Debug for GitHubProject
impl Debug for GitHubProject
Source§impl<'de> Deserialize<'de> for GitHubProject
impl<'de> Deserialize<'de> for GitHubProject
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 GitHubProject
Source§impl PartialEq for GitHubProject
impl PartialEq for GitHubProject
Source§impl Serialize for GitHubProject
impl Serialize for GitHubProject
impl StructuralPartialEq for GitHubProject
Auto Trait Implementations§
impl Freeze for GitHubProject
impl RefUnwindSafe for GitHubProject
impl Send for GitHubProject
impl Sync for GitHubProject
impl Unpin for GitHubProject
impl UnsafeUnpin for GitHubProject
impl UnwindSafe for GitHubProject
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§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.