Struct heroku_rs::endpoints::apps::post::AppCreate [−][src]
pub struct AppCreate<'a> { pub params: AppCreateParams<'a>, }
Expand description
App Create
Create a new app.
See Heroku documentation for more information about this endpoint
Example:
AppCreate has no required parameters, and returns the created App
.
use heroku_rs::prelude::*; let new_app = &AppCreate::new() .name("an-example-name") .stack("heroku-18") .region("us") .build(); let response = api_client.request(new_app); match response { Ok(success) => println!("Success: {:#?}", success), Err(e) => println!("Error: {}", e), }
See how to create the Heroku api_client
.
Fields
params: AppCreateParams<'a>
The parameters to pass to the Heroku API
Implementations
impl<'a> AppCreate<'a>
[src]
impl<'a> AppCreate<'a>
[src]Trait Implementations
impl<'a> HerokuEndpoint<App, (), AppCreateParams<'a>> for AppCreate<'a>
[src]
impl<'a> HerokuEndpoint<App, (), AppCreateParams<'a>> for AppCreate<'a>
[src]Auto Trait Implementations
impl<'a> RefUnwindSafe for AppCreate<'a>
impl<'a> Send for AppCreate<'a>
impl<'a> Sync for AppCreate<'a>
impl<'a> Unpin for AppCreate<'a>
impl<'a> UnwindSafe for AppCreate<'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]