pub struct AccessTokenFull {
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub date_created: DateTime<Utc>,
pub date_expires: DateTime<Utc>,
pub date_last_used: DateTime<Utc>,
pub description: String,
pub owner_link: Url,
pub revoked_by_link: Url,
pub scopes: Vec<String>,
pub target_link: Url,
}Expand description
Representation of the access_token-full resource
Fields§
§self_link: Option<Url>The canonical link to this resource.
web_link: Option<Url>The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>The link to the WADL description of this resource.
http_etag: Option<String>The value of the HTTP ETag for this resource.
date_created: DateTime<Utc>Creation date
When the token was created.
date_expires: DateTime<Utc>Expiry date
When the token should expire or was revoked.
date_last_used: DateTime<Utc>Date last used
When the token was last used.
description: StringDescription
A short description of the token.
owner_link: UrlOwner
The person who created the token.
revoked_by_link: UrlRevoked by
The person who revoked the token, if any.
scopes: Vec<String>Scopes
A list of scopes granted by the token.
target_link: UrlTarget
The target for which the token was issued.
Implementations§
Source§impl AccessTokenFull
impl AccessTokenFull
Sourcepub fn self_(&self) -> Option<AccessToken>
pub fn self_(&self) -> Option<AccessToken>
The canonical link to this resource.
Sourcepub fn set_self_(&mut self, value: Option<AccessToken>)
pub fn set_self_(&mut self, value: Option<AccessToken>)
Set the self_link value.
Sourcepub fn revoked_by(&self) -> Person
pub fn revoked_by(&self) -> Person
Revoked by
The person who revoked the token, if any.
Sourcepub fn set_revoked_by(&mut self, value: Person)
pub fn set_revoked_by(&mut self, value: Person)
Set the revoked_by_link value.
Sourcepub fn target(&self) -> AccessTokenTarget
pub fn target(&self) -> AccessTokenTarget
Target
The target for which the token was issued.
Sourcepub fn set_target(&mut self, value: AccessTokenTarget)
pub fn set_target(&mut self, value: AccessTokenTarget)
Set the target_link value.
Trait Implementations§
Source§impl Clone for AccessTokenFull
impl Clone for AccessTokenFull
Source§fn clone(&self) -> AccessTokenFull
fn clone(&self) -> AccessTokenFull
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessTokenFull
impl Debug for AccessTokenFull
Source§impl<'de> Deserialize<'de> for AccessTokenFull
impl<'de> Deserialize<'de> for AccessTokenFull
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>,
Source§impl PartialEq for AccessTokenFull
impl PartialEq for AccessTokenFull
Source§fn eq(&self, other: &AccessTokenFull) -> bool
fn eq(&self, other: &AccessTokenFull) -> bool
self and other values to be equal, and is used by ==.