Struct heroku_rs::endpoints::pipelines::post::PipelineTransferCreate [−][src]
pub struct PipelineTransferCreate<'a> { pub params: PipelineTransferCreateParams<'a>, }
Expand description
Pipeline Transfer
A pipeline transfer is the process of changing pipeline ownership along with the contained apps.
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 owner_type = "user"; let new_owner_id = "OWNER_ID"; let response = api_client.request(&PipelineTransferCreate::new( pipeline_id, new_owner_id, owner_type, )); match response { Ok(success) => println!("Success: {:#?}", success), Err(e) => println!("Error: {}", e), }
See how to create the Heroku api_client
.
Fields
params: PipelineTransferCreateParams<'a>
Implementations
impl<'a> PipelineTransferCreate<'a>
[src]
impl<'a> PipelineTransferCreate<'a>
[src]Trait Implementations
impl<'a> HerokuEndpoint<PipelineTransfer, (), PipelineTransferCreateParams<'a>> for PipelineTransferCreate<'a>
[src]
impl<'a> HerokuEndpoint<PipelineTransfer, (), PipelineTransferCreateParams<'a>> for PipelineTransferCreate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<PipelineTransferCreateParams<'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 PipelineTransferCreate<'a>
impl<'a> Send for PipelineTransferCreate<'a>
impl<'a> Sync for PipelineTransferCreate<'a>
impl<'a> Unpin for PipelineTransferCreate<'a>
impl<'a> UnwindSafe for PipelineTransferCreate<'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]