[−][src]Struct heroku_rs::endpoints::apps::post::AppWebhookCreate
App Webhook Create
Create an app webhook subscription.
See Heroku documentation for more information about this endpoint
Fields
app_id: String
app_id can be the app name or the app id
params: AppWebhookCreateParams
The parameters to pass to the Heroku API
Methods
impl AppWebhookCreate
[src]
pub fn new(
app_id: String,
authorization: Option<String>,
include: Vec<String>,
level: String,
secret: Option<String>,
url: String
) -> AppWebhookCreate
[src]
app_id: String,
authorization: Option<String>,
include: Vec<String>,
level: String,
secret: Option<String>,
url: String
) -> AppWebhookCreate
Create a new webhook with optional parameters
pub fn create(
app_id: String,
include: Vec<String>,
level: String,
url: String
) -> AppWebhookCreate
[src]
app_id: String,
include: Vec<String>,
level: String,
url: String
) -> AppWebhookCreate
Create a new webhook without optional parameters
Trait Implementations
impl HerokuEndpoint<AppWebhook, (), AppWebhookCreateParams> for AppWebhookCreate
[src]
fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<AppWebhookCreateParams>
[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 RefUnwindSafe for AppWebhookCreate
impl Send for AppWebhookCreate
impl Sync for AppWebhookCreate
impl Unpin for AppWebhookCreate
impl UnwindSafe for AppWebhookCreate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,