pub struct AuthStore {
pub record: AuthStoreRecord,
pub token: String,
}Expand description
Stores authentication details for a PocketBase user.
The AuthStore struct holds the authenticated user’s record and a token
used for making authenticated requests to the PocketBase API.
Fields§
§record: AuthStoreRecordThe authenticated user’s record.
token: StringThe authentication token.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthStore
impl<'de> Deserialize<'de> for AuthStore
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
Auto Trait Implementations§
impl Freeze for AuthStore
impl RefUnwindSafe for AuthStore
impl Send for AuthStore
impl Sync for AuthStore
impl Unpin for AuthStore
impl UnwindSafe for AuthStore
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