Struct heroku_rs::endpoints::apps::patch::AppWebhookUpdate [−][src]
pub struct AppWebhookUpdate<'a> { pub app_id: &'a str, pub webhook_id: &'a str, pub params: AppWebhookUpdateParams<'a>, }
Expand description
App Webhook Update.
Updates the details of an app webhook subscription.
See Heroku documentation for more information about this endpoint
Example:
AppWebhookUpdate takes two required parameters, app_id and webhook_id, and returns a AppWebhook
.
use heroku_rs::prelude::*; let update_app_webhook = &AppWebhookUpdate::new("APP_ID", "WEBHOOK_ID") .include(vec!["api:release"]) .level("notify") .url("https://www.bing.com") .authorization("Bearer 9266671b2767f804c9d5809c2d384ed57d8f8ce1abd1043e1fb3fbbcb8c3") .secret("dcbff0c4430a2960a2552389d587bc58d30a37a8cf3f75f8fb77abe667ad") .build(); let response = api_client.request(update_app_webhook); 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 id or app name.
webhook_id: &'a str
webhook_id is the webhook id.
params: AppWebhookUpdateParams<'a>
params are the parameters sent to the API to patch the webhook.
Implementations
impl<'a> AppWebhookUpdate<'a>
[src]
impl<'a> AppWebhookUpdate<'a>
[src]pub fn new(app_id: &'a str, webhook_id: &'a str) -> AppWebhookUpdate<'a>
[src]
pub fn authorization(&mut self, authorization: &'a str) -> &mut Self
[src]
pub fn authorization(&mut self, authorization: &'a str) -> &mut Self
[src]pub fn build(&self) -> AppWebhookUpdate<'a>
[src]
Trait Implementations
impl<'a> HerokuEndpoint<AppWebhook, (), AppWebhookUpdateParams<'a>> for AppWebhookUpdate<'a>
[src]
impl<'a> HerokuEndpoint<AppWebhook, (), AppWebhookUpdateParams<'a>> for AppWebhookUpdate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<AppWebhookUpdateParams<'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 AppWebhookUpdate<'a>
impl<'a> Send for AppWebhookUpdate<'a>
impl<'a> Sync for AppWebhookUpdate<'a>
impl<'a> Unpin for AppWebhookUpdate<'a>
impl<'a> UnwindSafe for AppWebhookUpdate<'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]