pub struct CreateTokenIn {
pub expiry: Option<i32>,
pub name: String,
}
Fields§
§expiry: Option<i32>
How long the token will be valid for, in seconds.
name: String
The name of the token.
Implementations§
Source§impl CreateTokenIn
impl CreateTokenIn
pub fn new(name: String) -> CreateTokenIn
Trait Implementations§
Source§impl Clone for CreateTokenIn
impl Clone for CreateTokenIn
Source§fn clone(&self) -> CreateTokenIn
fn clone(&self) -> CreateTokenIn
Returns a duplicate 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 moreSource§impl Debug for CreateTokenIn
impl Debug for CreateTokenIn
Source§impl Default for CreateTokenIn
impl Default for CreateTokenIn
Source§fn default() -> CreateTokenIn
fn default() -> CreateTokenIn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateTokenIn
impl<'de> Deserialize<'de> for CreateTokenIn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateTokenIn
impl PartialEq for CreateTokenIn
Source§impl Serialize for CreateTokenIn
impl Serialize for CreateTokenIn
impl StructuralPartialEq for CreateTokenIn
Auto Trait Implementations§
impl Freeze for CreateTokenIn
impl RefUnwindSafe for CreateTokenIn
impl Send for CreateTokenIn
impl Sync for CreateTokenIn
impl Unpin for CreateTokenIn
impl UnwindSafe for CreateTokenIn
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