#[non_exhaustive]pub struct WorkflowState {
pub id: WorkflowStateId,
pub name: String,
pub state_type: WorkflowStateType,
pub position: f64,
pub color: String,
pub description: Option<String>,
pub team: TeamRef,
}Expand description
One issue status of a team’s board (a board column).
§Example
use linear_api::WorkflowStateType;
let client = linear_api::LinearClient::from_env()?;
let team_id = linear_api::TeamId::new("88888888-8888-4888-8888-888888888888");
let states = client.teams().states(&team_id).await?;
let started = states
.iter()
.find(|s| s.state_type == WorkflowStateType::Started);
println!("{:?}", started.map(|s| &s.id));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: WorkflowStateIdWorkflow state ID.
name: StringDisplay name, e.g. "In Progress".
state_type: WorkflowStateTypeThe semantic category of the state
(triage | backlog | unstarted | started | completed |
canceled). Unknown future categories deserialize as
WorkflowStateType::Unrecognized.
position: f64Board position; lower comes first (leftmost column).
color: StringState color as a hex string.
description: Option<String>State description.
team: TeamRefThe team this state belongs to.
Trait Implementations§
Source§impl Clone for WorkflowState
impl Clone for WorkflowState
Source§fn clone(&self) -> WorkflowState
fn clone(&self) -> WorkflowState
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 WorkflowState
impl Debug for WorkflowState
Source§impl<'de> Deserialize<'de> for WorkflowState
impl<'de> Deserialize<'de> for WorkflowState
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
Auto Trait Implementations§
impl Freeze for WorkflowState
impl RefUnwindSafe for WorkflowState
impl Send for WorkflowState
impl Sync for WorkflowState
impl Unpin for WorkflowState
impl UnsafeUnpin for WorkflowState
impl UnwindSafe for WorkflowState
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