pub struct ScimToken {
pub id: String,
pub account: String,
pub secret_hash: String,
pub label: String,
pub created: UnixMillis,
pub created_by: String,
pub last_used: Option<UnixMillis>,
pub expires: Option<UnixMillis>,
pub read_only: bool,
}Expand description
A SCIM bearer, by the SHA-256 of its secret.
Fields§
§id: StringThe public id a listing and a revocation name.
account: StringThe account the bearer provisions.
secret_hash: StringLowercase hex SHA-256 of the secret. Never the secret.
label: StringWhat the account admin called it.
created: UnixMillisWhen it was created.
created_by: StringWho created it.
last_used: Option<UnixMillis>When it was last presented (to a minute).
expires: Option<UnixMillis>When it stops working (A34-27); None never. Not written when None,
so a row without one reads as before.
read_only: boolIt may only read the directory (A34-27). Not written when false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScimToken
impl<'de> Deserialize<'de> for ScimToken
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 Eq for ScimToken
impl StructuralPartialEq for ScimToken
Auto Trait Implementations§
impl Freeze for ScimToken
impl RefUnwindSafe for ScimToken
impl Send for ScimToken
impl Sync for ScimToken
impl Unpin for ScimToken
impl UnsafeUnpin for ScimToken
impl UnwindSafe for ScimToken
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.