Struct heroku_rs::endpoints::pipelines::post::PipelinePromotionCreate [−][src]
pub struct PipelinePromotionCreate<'a> { pub params: PipelinePromotionCreateParams<'a>, }
Expand description
Pipeline Promotion Create
Create a new promotion.
See Heroku documentation for more information about this endpoint
Example:
PipelinePromotionCreate takes three required parameters,pipeline_id, source_app_id and target_app_id and returns the created PipelinePromotion
.
use heroku_rs::prelude::*; let pipeline_id = "PIPELINE_ID"; let source_app_id = "SOURCE_APP_ID"; let target_app_id = "TARGET_APP_ID"; let response = api_client.request(&PipelinePromotionCreate::new( pipeline_id, source_app_id, target_app_id, )); match response { Ok(success) => println!("Success: {:#?}", success), Err(e) => println!("Error: {}", e), }
See how to create the Heroku api_client
.
Fields
params: PipelinePromotionCreateParams<'a>
The parameters to pass to the Heroku API
Implementations
impl<'a> PipelinePromotionCreate<'a>
[src]
impl<'a> PipelinePromotionCreate<'a>
[src]Trait Implementations
impl<'a> HerokuEndpoint<PipelinePromotion, (), PipelinePromotionCreateParams<'a>> for PipelinePromotionCreate<'a>
[src]
impl<'a> HerokuEndpoint<PipelinePromotion, (), PipelinePromotionCreateParams<'a>> for PipelinePromotionCreate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<PipelinePromotionCreateParams<'a>>
[src]
fn query(&self) -> Option<QueryType>
[src]
fn url(&self, environment: &ApiEnvironment) -> Url
[src]
fn content_type(&self) -> &str
[src]
fn version(&self) -> &str
[src]
fn agent(&self) -> &str
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for PipelinePromotionCreate<'a>
impl<'a> Send for PipelinePromotionCreate<'a>
impl<'a> Sync for PipelinePromotionCreate<'a>
impl<'a> Unpin for PipelinePromotionCreate<'a>
impl<'a> UnwindSafe for PipelinePromotionCreate<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]