pub struct WorkflowPauseResponse {
pub paused_at: Option<DateTime<Utc>>,
pub paused_by: Option<Uuid>,
pub workflow_name: String,
}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());JSON schema
{
"description": "Response of `POST /api/v1/workflows/:name/pause` and\n`POST /api/v1/workflows/:name/resume`.\n\n# Examples\n\n```\nuse ironflow_api::entities::WorkflowPauseResponse;\n\nlet response = WorkflowPauseResponse::resumed(\"deploy\");\nassert!(response.paused_at.is_none());\n```",
"type": "object",
"required": [
"workflow_name"
],
"properties": {
"paused_at": {
"description": "When the workflow was paused: its queued runs are not picked up until\nit is resumed. Omitted when the workflow is not paused.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"paused_by": {
"description": "User who paused the workflow, when known.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"workflow_name": {
"description": "Workflow name.",
"type": "string"
}
}
}
```ignore
</details>Fields§
§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.
workflow_name: StringWorkflow name.
Implementations§
Source§impl WorkflowPauseResponse
impl WorkflowPauseResponse
pub fn builder() -> WorkflowPauseResponse
Trait Implementations§
Source§impl Clone for WorkflowPauseResponse
impl Clone for WorkflowPauseResponse
Source§impl Debug for WorkflowPauseResponse
impl Debug for WorkflowPauseResponse
Source§impl<'de> Deserialize<'de> for WorkflowPauseResponse
impl<'de> Deserialize<'de> for WorkflowPauseResponse
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 From<WorkflowPauseResponse> for WorkflowPauseResponse
impl From<WorkflowPauseResponse> for WorkflowPauseResponse
Source§fn from(value: WorkflowPauseResponse) -> Self
fn from(value: WorkflowPauseResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for WorkflowPauseResponse
impl Serialize for WorkflowPauseResponse
Source§impl TryFrom<WorkflowPauseResponse> for WorkflowPauseResponse
impl TryFrom<WorkflowPauseResponse> for WorkflowPauseResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WorkflowPauseResponse) -> Result<Self, ConversionError>
fn try_from(value: WorkflowPauseResponse) -> Result<Self, ConversionError>
Performs the conversion.
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