pub struct CreateUsageTriggerParams {
pub account_sid: String,
pub callback_url: String,
pub trigger_value: String,
pub usage_category: String,
pub callback_method: Option<String>,
pub friendly_name: Option<String>,
pub recurring: Option<String>,
pub trigger_by: Option<String>,
}
Expand description
struct for passing parameters to the method create_usage_trigger
Fields§
§account_sid: String
The SID of the Account that will create the resource.
callback_url: String
The URL we should call using callback_method
when the trigger fires.
trigger_value: String
The usage value at which the trigger should fire. For convenience, you can use an offset value such as +30
to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a +
as %2B
.
usage_category: String
§callback_method: Option<String>
The HTTP method we should use to call callback_url
. Can be: GET
or POST
and the default is POST
.
friendly_name: Option<String>
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
recurring: Option<String>
§trigger_by: Option<String>
Trait Implementations§
Source§impl Clone for CreateUsageTriggerParams
impl Clone for CreateUsageTriggerParams
Source§fn clone(&self) -> CreateUsageTriggerParams
fn clone(&self) -> CreateUsageTriggerParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateUsageTriggerParams
impl RefUnwindSafe for CreateUsageTriggerParams
impl Send for CreateUsageTriggerParams
impl Sync for CreateUsageTriggerParams
impl Unpin for CreateUsageTriggerParams
impl UnwindSafe for CreateUsageTriggerParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more