Struct heroku_rs::endpoints::releases::post::ReleaseCreate [−][src]
pub struct ReleaseCreate<'a> { pub app_id: &'a str, pub params: ReleaseCreateParams<'a>, }
Expand description
Release Create
Create a new release
See Heroku documentation for more information about this endpoint
Example:
ReleaseCreate takes two required parameters, app_id and slug, and returns the new Release
.
use heroku_rs::prelude::*; let response = api_client.request(&ReleaseCreate::new("APP_ID", "SLUG_ID")); match response { Ok(success) => println!("Success: {:#?}", success), Err(e) => println!("Error: {}", e), }
See how to create the Heroku api_client
.
Fields
app_id: &'a str
app_id can be the app name or the app id
params: ReleaseCreateParams<'a>
The parameters to pass to the Heroku API
Implementations
impl<'a> ReleaseCreate<'a>
[src]
impl<'a> ReleaseCreate<'a>
[src]pub fn new(app_id: &'a str, slug: &'a str) -> ReleaseCreate<'a>
[src]
pub fn description(&mut self, description: &'a str) -> &mut Self
[src]
pub fn description(&mut self, description: &'a str) -> &mut Self
[src]pub fn build(&self) -> ReleaseCreate<'a>
[src]
Trait Implementations
impl<'a> HerokuEndpoint<Release, (), ReleaseCreateParams<'a>> for ReleaseCreate<'a>
[src]
impl<'a> HerokuEndpoint<Release, (), ReleaseCreateParams<'a>> for ReleaseCreate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<ReleaseCreateParams<'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]
impl<'a> Serialize for ReleaseCreate<'a>
[src]
impl<'a> Serialize for ReleaseCreate<'a>
[src]Auto Trait Implementations
impl<'a> RefUnwindSafe for ReleaseCreate<'a>
impl<'a> Send for ReleaseCreate<'a>
impl<'a> Sync for ReleaseCreate<'a>
impl<'a> Unpin for ReleaseCreate<'a>
impl<'a> UnwindSafe for ReleaseCreate<'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]