Struct heroku_rs::endpoints::formations::patch::FormationUpdate [−][src]
pub struct FormationUpdate<'a> { pub app_id: &'a str, pub formation_id: &'a str, pub params: FormationUpdateParams<'a>, }
Expand description
Formation Update
Update process type
See Heroku documentation for more information about this endpoint
Example:
FormationUpdate takes two required parameters, app_id and formation_id, and returns the updated Formation
.
use heroku_rs::prelude::*; let response = api_client.request( &formations::FormationUpdate::new("APP_ID", "FORMATION_ID") .quantity(1) .size("standard-1X") .build(), ); 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
formation_id: &'a str
formation_id can be the formation id or type
params: FormationUpdateParams<'a>
params are the parameters sent to the API to patch the Formation
Implementations
impl<'a> FormationUpdate<'a>
[src]
impl<'a> FormationUpdate<'a>
[src]Trait Implementations
impl<'a> HerokuEndpoint<Formation, (), FormationUpdateParams<'a>> for FormationUpdate<'a>
[src]
impl<'a> HerokuEndpoint<Formation, (), FormationUpdateParams<'a>> for FormationUpdate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<FormationUpdateParams<'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 FormationUpdate<'a>
impl<'a> Send for FormationUpdate<'a>
impl<'a> Sync for FormationUpdate<'a>
impl<'a> Unpin for FormationUpdate<'a>
impl<'a> UnwindSafe for FormationUpdate<'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]