pub struct ApiClientState {
pub user_token: String,
pub user_verifier: String,
pub user_id: usize,
pub app_id: usize,
}Expand description
The state of the ApiClient.
Fields§
§user_token: StringThe token you received from an app grant request.
user_verifier: StringThe verifier you received from an app grant request.
user_id: usizeThe ID of the user this client is connecting to.
app_id: usizeThe ID of the app that is being used for user grants.
You can get this from the web dashboard.
Trait Implementations§
Source§impl Clone for ApiClientState
impl Clone for ApiClientState
Source§fn clone(&self) -> ApiClientState
fn clone(&self) -> ApiClientState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiClientState
impl Debug for ApiClientState
Source§impl Default for ApiClientState
impl Default for ApiClientState
Source§fn default() -> ApiClientState
fn default() -> ApiClientState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiClientState
impl RefUnwindSafe for ApiClientState
impl Send for ApiClientState
impl Sync for ApiClientState
impl Unpin for ApiClientState
impl UnwindSafe for ApiClientState
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