pub struct WorkflowPauseResponse {
pub workflow_name: String,
pub paused_at: Option<DateTime<Utc>>,
pub paused_by: Option<Uuid>,
}Expand description
Response of POST /api/v1/workflows/:name/pause and
POST /api/v1/workflows/:name/resume.
§Examples
use ironflow_api::entities::WorkflowPauseResponse;
let response = WorkflowPauseResponse::resumed("deploy");
assert!(response.paused_at.is_none());Fields§
§workflow_name: StringWorkflow name.
paused_at: Option<DateTime<Utc>>When the workflow was paused: its queued runs are not picked up until it is resumed. Omitted when the workflow is not paused.
paused_by: Option<Uuid>User who paused the workflow, when known.
Implementations§
Source§impl WorkflowPauseResponse
impl WorkflowPauseResponse
Sourcepub fn resumed(workflow_name: &str) -> Self
pub fn resumed(workflow_name: &str) -> Self
Response for a workflow that is no longer paused.
§Examples
use ironflow_api::entities::WorkflowPauseResponse;
let response = WorkflowPauseResponse::resumed("deploy");
assert_eq!(response.workflow_name, "deploy");
assert!(response.paused_at.is_none());Trait Implementations§
Source§impl Debug for WorkflowPauseResponse
impl Debug for WorkflowPauseResponse
Source§impl From<WorkflowPause> for WorkflowPauseResponse
impl From<WorkflowPause> for WorkflowPauseResponse
Source§fn from(pause: WorkflowPause) -> Self
fn from(pause: WorkflowPause) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkflowPauseResponse
impl RefUnwindSafe for WorkflowPauseResponse
impl Send for WorkflowPauseResponse
impl Sync for WorkflowPauseResponse
impl Unpin for WorkflowPauseResponse
impl UnsafeUnpin for WorkflowPauseResponse
impl UnwindSafe for WorkflowPauseResponse
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