pub struct SessionData {
pub organization_id: Option<String>,
pub project_id: Option<String>,
pub completed_platform_onboarding: bool,
pub is_org_owner: bool,
pub chatgpt_plan_type: Option<String>,
pub chatgpt_account_id: Option<String>,
}Expand description
Session data extracted from OAuth tokens
This contains user and organization information from the id_token and access_token
Fields§
§organization_id: Option<String>Organization ID from the id_token
project_id: Option<String>Project ID from the id_token
completed_platform_onboarding: boolWhether the user has completed platform onboarding
is_org_owner: boolWhether the user is an organization owner
chatgpt_plan_type: Option<String>ChatGPT plan type (from access_token)
chatgpt_account_id: Option<String>ChatGPT account ID (from access_token)
Trait Implementations§
Source§impl Clone for SessionData
impl Clone for SessionData
Source§fn clone(&self) -> SessionData
fn clone(&self) -> SessionData
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 SessionData
impl Debug for SessionData
Source§impl<'de> Deserialize<'de> for SessionData
impl<'de> Deserialize<'de> for SessionData
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 SessionData
impl RefUnwindSafe for SessionData
impl Send for SessionData
impl Sync for SessionData
impl Unpin for SessionData
impl UnwindSafe for SessionData
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