pub struct StartJobRequest {
pub app_id: String,
pub branch_name: String,
pub commit_id: Option<String>,
pub commit_message: Option<String>,
pub commit_time: Option<f64>,
pub job_id: Option<String>,
pub job_reason: Option<String>,
pub job_type: String,
}
Expand description
The request structure for the start job request.
Fields§
§app_id: String
The unique ID for an Amplify app.
branch_name: String
The branch name for the job.
commit_id: Option<String>
The commit ID from a third-party repository provider for the job.
commit_message: Option<String>
The commit message from a third-party repository provider for the job.
commit_time: Option<f64>
The commit date and time for the job.
job_id: Option<String>
The unique ID for an existing job. This is required if the value of jobType
is RETRY
.
job_reason: Option<String>
A descriptive reason for starting this job.
job_type: String
Describes the type for the job. The job type RELEASE
starts a new job with the latest change from the specified branch. This value is available only for apps that are connected to a repository. The job type RETRY
retries an existing job. If the job type value is RETRY
, the jobId
is also required.
Trait Implementations§
Source§impl Clone for StartJobRequest
impl Clone for StartJobRequest
Source§fn clone(&self) -> StartJobRequest
fn clone(&self) -> StartJobRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 StartJobRequest
impl Debug for StartJobRequest
Source§impl Default for StartJobRequest
impl Default for StartJobRequest
Source§fn default() -> StartJobRequest
fn default() -> StartJobRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for StartJobRequest
impl PartialEq for StartJobRequest
Source§impl Serialize for StartJobRequest
impl Serialize for StartJobRequest
impl StructuralPartialEq for StartJobRequest
Auto Trait Implementations§
impl Freeze for StartJobRequest
impl RefUnwindSafe for StartJobRequest
impl Send for StartJobRequest
impl Sync for StartJobRequest
impl Unpin for StartJobRequest
impl UnwindSafe for StartJobRequest
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