pub struct Token {
pub tag: Option<TagTrue>,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub value: String,
pub name: Option<String>,
pub restrictions: Option<TokenRestrictions>,
}
Fields§
§tag: Option<TagTrue>
This is the tag for the token. It represents its scope.
id: String
This is the unique identifier for the token.
org_id: String
This is unique identifier for the org that this token belongs to.
created_at: String
This is the ISO 8601 date-time string of when the token was created.
updated_at: String
This is the ISO 8601 date-time string of when the token was last updated.
value: String
This is the token key.
name: Option<String>
This is the name of the token. This is just for your own reference.
restrictions: Option<TokenRestrictions>
This are the restrictions for the token.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
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
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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