pub struct WorkflowStatesService<'a> { /* private fields */ }Expand description
Operations on workflow states. Obtain via
LinearClient::workflow_states.
Implementations§
Source§impl WorkflowStatesService<'_>
impl WorkflowStatesService<'_>
Sourcepub async fn list(
&self,
req: ListWorkflowStatesRequest,
) -> Result<Page<WorkflowState>>
pub async fn list( &self, req: ListWorkflowStatesRequest, ) -> Result<Page<WorkflowState>>
Fetches one page of workflow states across the workspace.
§Example
use linear_api::workspace::ListWorkflowStatesRequest;
let client = linear_api::LinearClient::from_env()?;
let page = client
.workflow_states()
.list(ListWorkflowStatesRequest::builder().first(50).build())
.await?;
println!("{} states", page.nodes.len());Trait Implementations§
Source§impl<'a> Clone for WorkflowStatesService<'a>
impl<'a> Clone for WorkflowStatesService<'a>
Source§fn clone(&self) -> WorkflowStatesService<'a>
fn clone(&self) -> WorkflowStatesService<'a>
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 moreimpl<'a> Copy for WorkflowStatesService<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WorkflowStatesService<'a>
impl<'a> !UnwindSafe for WorkflowStatesService<'a>
impl<'a> Freeze for WorkflowStatesService<'a>
impl<'a> Send for WorkflowStatesService<'a>
impl<'a> Sync for WorkflowStatesService<'a>
impl<'a> Unpin for WorkflowStatesService<'a>
impl<'a> UnsafeUnpin for WorkflowStatesService<'a>
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