pub struct CreateTokenParams {
pub account_sid: String,
pub ttl: Option<i32>,
}
Expand description
struct for passing parameters to the method create_token
Fields§
§account_sid: String
The SID of the Account that will create the resource.
ttl: Option<i32>
The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).
Trait Implementations§
Source§impl Clone for CreateTokenParams
impl Clone for CreateTokenParams
Source§fn clone(&self) -> CreateTokenParams
fn clone(&self) -> CreateTokenParams
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 CreateTokenParams
impl RefUnwindSafe for CreateTokenParams
impl Send for CreateTokenParams
impl Sync for CreateTokenParams
impl Unpin for CreateTokenParams
impl UnwindSafe for CreateTokenParams
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