Struct heroku_rs::endpoints::pipelines::post::PipelineCouplingCreate [−][src]
pub struct PipelineCouplingCreate<'a> { pub params: PipelineCouplingCreateParams<'a>, }
Expand description
Pipeline Coupling Create
Create a new pipeline coupling.
See Heroku documentation for more information about this endpoint
Example:
PipelineCouplingCreate takes three required parameters,app_id, pipeline_id and pipeline_stage and returns the created PipelineCoupling
.
use heroku_rs::prelude::*; let app = "APP_ID"; // can be app name or app id let pipeline = "PIPELINE_ID"; // pipeline id let stage = "test"; // target pipeline stage let response = api_client.request(&PipelineCouplingCreate::new( app, pipeline, stage, )); match response { Ok(success) => println!("Success: {:#?}", success), Err(e) => println!("Error: {}", e), }
See how to create the Heroku api_client
.
Fields
params: PipelineCouplingCreateParams<'a>
The parameters to pass to the Heroku API
Implementations
impl<'a> PipelineCouplingCreate<'a>
[src]
impl<'a> PipelineCouplingCreate<'a>
[src]Trait Implementations
impl<'a> HerokuEndpoint<PipelineCoupling, (), PipelineCouplingCreateParams<'a>> for PipelineCouplingCreate<'a>
[src]
impl<'a> HerokuEndpoint<PipelineCoupling, (), PipelineCouplingCreateParams<'a>> for PipelineCouplingCreate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<PipelineCouplingCreateParams<'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 PipelineCouplingCreate<'a>
impl<'a> Send for PipelineCouplingCreate<'a>
impl<'a> Sync for PipelineCouplingCreate<'a>
impl<'a> Unpin for PipelineCouplingCreate<'a>
impl<'a> UnwindSafe for PipelineCouplingCreate<'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]