pub enum GitHubProjectValue {
SingleSelect {
option_id: String,
name: String,
},
Text {
text: String,
},
Number {
number: f64,
},
Date {
date: String,
},
Iteration {
title: String,
start_date: String,
},
}Expand description
One field’s value on one item.
PartialEq without Eq: a number field holds a float, and floats have no
total equality. Comparing two values for “did this change” is exactly what
PartialEq is for here.
Variants§
SingleSelect
The option id AND its name: the id is what a mutation needs, the name is what a person reads, and looking one up from the other on every render is how a board gets slow.
Text
Number
Date
Iteration
Trait Implementations§
Source§impl Clone for GitHubProjectValue
impl Clone for GitHubProjectValue
Source§impl Debug for GitHubProjectValue
impl Debug for GitHubProjectValue
Source§impl<'de> Deserialize<'de> for GitHubProjectValue
impl<'de> Deserialize<'de> for GitHubProjectValue
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 GitHubProjectValue
impl PartialEq for GitHubProjectValue
Source§impl Serialize for GitHubProjectValue
impl Serialize for GitHubProjectValue
impl StructuralPartialEq for GitHubProjectValue
Auto Trait Implementations§
impl Freeze for GitHubProjectValue
impl RefUnwindSafe for GitHubProjectValue
impl Send for GitHubProjectValue
impl Sync for GitHubProjectValue
impl Unpin for GitHubProjectValue
impl UnsafeUnpin for GitHubProjectValue
impl UnwindSafe for GitHubProjectValue
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