pub struct ApiToken {
pub id: [u8; 10],
pub secret: [u8; 32],
}Expand description
An API token: a public id and a bearer secret. The secret never appears in Debug.
Fields§
§id: [u8; 10]10 bytes, 16 base32 characters.
secret: [u8; 32]32 bytes, 52 base32 characters.
Implementations§
Trait Implementations§
impl Eq for ApiToken
impl StructuralPartialEq for ApiToken
Auto Trait Implementations§
impl Forget for ApiToken
impl Freeze for ApiToken
impl Move for ApiToken
impl RefUnwindSafe for ApiToken
impl Send for ApiToken
impl Sync for ApiToken
impl Unpin for ApiToken
impl UnsafeUnpin for ApiToken
impl UnwindSafe for ApiToken
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